configurator/lib/Service.h

30 lines
474 B
C
Raw Normal View History

#pragma once
#include <QJsonArray>
#include <QJsonObject>
#include <QString>
#include <QUrl>
2024-09-03 13:40:08 +00:00
#include <QPixmap>
struct Service {
Service(QJsonObject const &o);
2024-09-03 16:59:36 +00:00
QPixmap const &pixmap() const;
QString title;
QUrl url;
QUrl documentationUrl;
2024-09-03 13:40:08 +00:00
QString image;
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;
};
class Services:public QList<Service> {
public:
Services():QList<Service>() {}
Services(QJsonArray const &a);
};