TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
parser.h
Go to the documentation of this file.
1 /* This file is part of QJson
2  *
3  * Copyright (C) 2008 Flavio Castelli <flavio.castelli@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License version 2.1, as published by the Free Software Foundation.
8  *
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef QJSON_PARSER_H
22 #define QJSON_PARSER_H
23 
24 #include "ttkprivate.h"
25 
26 QT_BEGIN_NAMESPACE
27 class QIODevice;
28 class QVariant;
29 QT_END_NAMESPACE
30 
34 namespace QJson {
35 
36  class ParserPrivate;
41  {
42  public:
43  Parser();
44 
51  QVariant parse(QIODevice* io, bool* ok = 0);
52 
61  QVariant parse(const QByteArray &jsonData, bool* ok = 0);
62 
68  QString errorString() const;
69 
75  int errorLine() const;
76 
83  void allowSpecialNumbers(bool allowSpecialNumbers);
84 
89  bool specialNumbersAllowed() const;
90 
91  private:
93 
94  };
95 }
96 
97 #endif // QJSON_PARSER_H
#define TTK_MODULE_EXPORT
Main class used to convert JSON data to QVariant objects private.
Definition: parser_p.h:41
#define TTK_DECLARE_PRIVATE(Class)
Definition: ttkprivate.h:26
Namespace used by QJson.
Definition: parser.h:34
Main class used to convert JSON data to QVariant objects.
Definition: parser.h:40