Subversion Repositories svn1-original

Rev

Rev 319 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 319 Rev 324
Line 1... Line 1...
1
#ifndef QMCONFIG_H
1
#ifndef QMCONFIG_H
2
#define QMCONFIG_H
2
#define QMCONFIG_H
3
 
3
 
4
#include <QString>
4
#include <QString>
5
#include <QFile>
5
#include <QFile>
-
 
6
#include <QSettings>
6
 
7
 
7
#include    "consts.h"
8
#include    "consts.h"
8
#include    "structs.h"
9
#include    "structs.h"
9
#include    "proto.h"
10
#include    "proto.h"
10
 
11
 
-
 
12
extern QSettings   *appSettings;
-
 
13
 
11
class QmConfig
14
class QmConfig
12
{
15
{
13
public:
16
public:
14
    //QmConfig(const QString &cnfFile);
17
    //QmConfig(const QString &cnfFile);
15
    QmConfig(void){}
18
    QmConfig(void);
-
 
19
    ~QmConfig();
16
    bool open_read_config( void );
20
    bool open_read_config( void );
17
    bool read_config( QFile &configFile  );
21
    bool read_config( QFile &configFile  );
18
    bool write_config( void );
22
    bool write_config( void );
19
    int lookup_class( const char *text);
23
    int lookup_class( const char *text);
20
    void load(const QString &cnfFile);
24
    void load(const QString &cnfFile);