1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 04:37:46 +00:00
astra/include/headline.h

31 lines
435 B
C
Raw Normal View History

2022-03-10 09:19:52 -05:00
#pragma once
#include <QUrl>
#include <QDateTime>
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;
void getHeadline(LauncherCore& core, std::function<void(Headline)> return_func);