1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00
astra/launcher/core/include/headline.h
2022-08-15 11:14:37 -04:00

31 lines
No EOL
435 B
C++

#pragma once
#include <QDateTime>
#include <QUrl>
struct News {
QDateTime date;
QString id;
QString tag;
QString title;
QUrl url;
};
struct Banner {
QUrl link;
QUrl bannerImage;
};
struct Headline {
QList<Banner> banner;
QList<News> news;
QList<News> pinned;
QList<News> topics;
};
class LauncherCore;
void getHeadline(LauncherCore& core, std::function<void(Headline)> return_func);