mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
29 lines
410 B
C
29 lines
410 B
C
|
#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);
|