2024-08-29 11:21:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QJsonArray>
|
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QString>
|
|
|
|
#include <QUrl>
|
2024-09-03 13:40:08 +00:00
|
|
|
#include <QPixmap>
|
2024-08-29 11:21:00 +00:00
|
|
|
|
|
|
|
struct Service {
|
|
|
|
Service(QJsonObject const &o);
|
2024-09-03 16:59:36 +00:00
|
|
|
QPixmap const &pixmap() const;
|
2024-08-29 11:21:00 +00:00
|
|
|
|
|
|
|
QString title;
|
|
|
|
QUrl url;
|
|
|
|
QUrl documentationUrl;
|
2024-09-03 13:40:08 +00:00
|
|
|
QString image;
|
2024-08-29 11:21:00 +00:00
|
|
|
QString description;
|
|
|
|
QString specialNote;
|
|
|
|
bool LDAP;
|
2024-09-03 13:40:08 +00:00
|
|
|
|
|
|
|
protected:
|
2024-09-03 16:59:36 +00:00
|
|
|
mutable QPixmap _image;
|
2024-08-29 11:21:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Services:public QList<Service> {
|
|
|
|
public:
|
|
|
|
Services():QList<Service>() {}
|
|
|
|
Services(QJsonArray const &a);
|
|
|
|
};
|