#pragma once #include #include "jsoncpp/json/json.h" #if (QT_VERSION >= QT_VERSION_CHECK(5,0,0)) #include #include #include class Notification : public QJsonDocument { public: Notification(); Notification(const Notification& other); ~Notification(); static Notification parse(const char *data); QString getStringValue(const char *key) ; int getIntValue(const char *key) ; Notification &operator=(const Notification &other); }; #else class Notification : public Json::Value { public: Notification(); Notification(const Notification& other); ~Notification(); static Notification parse(const char *data); QString getStringValue(const char *key) const; int getIntValue(const char *key) const; }; #endif