1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00
astra/include/headline.h

29 lines
410 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;
};
class LauncherCore;
void getHeadline(LauncherCore& core, std::function<void(Headline)> return_func);