21 lines
434 B
C
21 lines
434 B
C
|
#ifndef TARIFF_EDITOR_H_INCLUDED
|
||
|
#define TARIFF_EDITOR_H_INCLUDED
|
||
|
|
||
|
#include <QByteArray>
|
||
|
#include <QString>
|
||
|
|
||
|
#include <QJsonDocument>
|
||
|
#include <QJsonArray>
|
||
|
|
||
|
class TariffEditor {
|
||
|
QJsonArray m_a;
|
||
|
QJsonDocument m_jsonDoc;
|
||
|
void createJsonValue(QString const &key, QString const &value = "");
|
||
|
public:
|
||
|
explicit TariffEditor();
|
||
|
|
||
|
static QByteArray readJson(QString const &filename);
|
||
|
};
|
||
|
|
||
|
#endif // TARIFF_EDITOR_H_INCLUDED
|