configurator/lib/Service.h

30 lines
460 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 13:40:08 +00:00
QPixmap const &pixmap();
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:
QPixmap _image;
};
class Services:public QList<Service> {
public:
Services():QList<Service>() {}
Services(QJsonArray const &a);
};