mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
31 lines
No EOL
435 B
C++
31 lines
No EOL
435 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;
|
|
|
|
QList<News> topics;
|
|
};
|
|
|
|
class LauncherCore;
|
|
|
|
void getHeadline(LauncherCore& core, std::function<void(Headline)> return_func); |