9f17d59e
陈明泉
no message
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#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 int getIntValue(const char *key) ;(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
|