direcs
2012-09-30
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
inifile.h
Go to the documentation of this file.
1
/*************************************************************************
2
* Copyright (C) Markus Knapp *
3
* www.direcs.de *
4
* *
5
* This file is part of direcs. *
6
* *
7
* direcs is free software: you can redistribute it and/or modify it *
8
* under the terms of the GNU General Public License as published *
9
* by the Free Software Foundation, version 3 of the License. *
10
* *
11
* direcs is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with direcs. If not, see <http://www.gnu.org/licenses/>. *
18
* *
19
*************************************************************************/
20
21
#ifndef INIFILE_H
22
#define INIFILE_H
23
24
//-------------------------------------------------------------------
25
#include <QObject>
26
#include <QSettings>
27
#include <QDir>
28
#include <QFile>
29
//-------------------------------------------------------------------
30
37
class
Inifile
:
public
QObject
38
{
39
Q_OBJECT
40
41
public
:
42
Inifile
();
43
~Inifile
();
44
49
QString
checkPath
();
50
55
bool
checkFiles
();
56
67
void
writeSetting
(QString group, QString name,
int
value);
68
79
void
writeSetting
(QString group, QString name, QString value);
80
91
int
readSetting
(QString group, QString name);
92
103
QString
readString
(QString group, QString name);
104
115
float
readFloat
(QString group, QString name);
116
120
void
sync
(
void
);
121
125
QString
getInifileName
();
126
131
void
setFilename
(QString filename);
132
133
134
//private slots:
135
//void commandClock();
136
137
private
:
138
//Gui *gui1;
139
QSettings*
settings
;
140
QString
programPath
;
141
QString
mainIniFilename
;
142
//QTimer* commandTimer;
143
//QString iniSection;
144
//QString lastCommand;
145
//int commandCounter;
146
};
147
148
#endif
direcs
src
inifile.h
Generated on Sat Feb 2 2013 21:41:01 for direcs by
1.8.1.1