libqutim
0.3.1.0
Main Page
Related Pages
Namespaces
Classes
Globals
Globals
File List
jsonfile.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** qutIM - instant messenger
4
**
5
** Copyright © 2011 Ruslan Nigmatullin <euroelessar@yandex.ru>
6
**
7
*****************************************************************************
8
**
9
** $QUTIM_BEGIN_LICENSE$
10
** This program is free software: you can redistribute it and/or modify
11
** it under the terms of the GNU General Public License as published by
12
** the Free Software Foundation, either version 3 of the License, or
13
** (at your option) any later version.
14
**
15
** This program is distributed in the hope that it will be useful,
16
** but WITHOUT ANY WARRANTY; without even the implied warranty of
17
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
** See the GNU General Public License for more details.
19
**
20
** You should have received a copy of the GNU General Public License
21
** along with this program. If not, see http://www.gnu.org/licenses/.
22
** $QUTIM_END_LICENSE$
23
**
24
****************************************************************************/
25
26
#ifndef JSONFILE_H
27
#define JSONFILE_H
28
29
#include "
libqutim_global.h
"
30
31
namespace
qutim_sdk_0_3
32
{
33
class
JsonFilePrivate;
34
62
class
LIBQUTIM_EXPORT
JsonFile
63
{
64
Q_DISABLE_COPY(
JsonFile
)
65
Q_DECLARE_PRIVATE(
JsonFile
)
66
public
:
67
#ifndef Q_QDOC
68
enum
OpenMode { ReadOnly, ReadWrite };
69
#endif
70
75
JsonFile
(
const
QString &name = QString());
79
virtual
~
JsonFile
();
83
void
setFileName(
const
QString &name);
89
bool
load(QVariant &variant);
95
bool
save(
const
QVariant &variant);
96
#ifndef Q_QDOC
97
private
:
98
QScopedPointer<JsonFilePrivate> d_ptr;
99
#endif
100
};
101
}
102
103
#endif // JSONFILE_H
104
Generated by Doxygen