1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 12:47:44 +00:00
astra/launcher/core/include/headline.h

31 lines
442 B
C
Raw Normal View History

2022-03-10 09:19:52 -05:00
#pragma once
#include <QDateTime>
2022-08-15 11:14:37 -04:00
#include <QUrl>
2022-03-10 09:19:52 -05:00
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;
2022-03-10 09:19:52 -05:00
};
class LauncherCore;
2022-09-05 17:26:26 -04:00
void getHeadline(LauncherCore& core, const std::function<void(Headline)>& return_func);