30 lines
460 B
C++
30 lines
460 B
C++
#pragma once
|
|
|
|
#include <QJsonArray>
|
|
#include <QJsonObject>
|
|
#include <QString>
|
|
#include <QUrl>
|
|
#include <QPixmap>
|
|
|
|
struct Service {
|
|
Service(QJsonObject const &o);
|
|
QPixmap const &pixmap();
|
|
|
|
QString title;
|
|
QUrl url;
|
|
QUrl documentationUrl;
|
|
QString image;
|
|
QString description;
|
|
QString specialNote;
|
|
bool LDAP;
|
|
|
|
protected:
|
|
QPixmap _image;
|
|
};
|
|
|
|
class Services:public QList<Service> {
|
|
public:
|
|
Services():QList<Service>() {}
|
|
Services(QJsonArray const &a);
|
|
};
|