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;
|
2022-03-10 10:03:17 -05:00
|
|
|
|
|
|
|
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);
|