12345678910111213141516171819202122232425 |
- #ifndef JSONANSWER_H
- #define JSONANSWER_H
- #include <QString>
- #include <QJsonObject>
- class JsonAnswer
- {
- public:
- JsonAnswer() {}
- template <class T>
- void setValue(const QString& key, T value)
- {
- m_obj.insert(key, value);
- }
- QByteArray result() const;
- private:
- QJsonObject m_obj;
- };
- #endif // JSONANSWER_H
|