29 lines
649 B
C++
29 lines
649 B
C++
#ifndef SJSON_H
|
|
#define SJSON_H
|
|
|
|
#include <QString>
|
|
|
|
enum E_FILTER_TYPE
|
|
{
|
|
E_FILTER_TYPE_DATE=0,
|
|
E_FILTER_TYPE_SEARCH,
|
|
E_FILTER_TYPE_LENGTH,
|
|
E_FILTER_TYPE_REPLACE,
|
|
};
|
|
|
|
class SJson
|
|
{
|
|
public:
|
|
SJson();
|
|
~SJson();
|
|
QString Get(QString _str,QString _strKey);
|
|
bool GetBool(QString _str,QString _strKey);
|
|
int GetNumber(QString _str,QString _strKey);
|
|
QString Set(QString _str,QString _strKey,QString _strValue);
|
|
QString Set(QString _str,QString _strKey,bool _bValue);
|
|
QString Set(QString _str,QString _strKey,int _nValue);
|
|
QString Sql(QString _str);
|
|
};
|
|
|
|
#endif // SJSON_H
|