Notification.h 818 Bytes
#pragma once

#include <QString>

#include "jsoncpp/json/json.h"
#if (QT_VERSION >= QT_VERSION_CHECK(5,0,0))

#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>

class Notification : public QJsonDocument
{
public:
    Notification();
    Notification(const Notification& other);
    ~Notification();

    static Notification parse(const char *data);

    QString QString getStringValue(const char *key) ;(const char *key) 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