[go: up one dir, main page]

Menu

[e30b64]: / xml_config.h  Maximize  Restore  History

Download this file

82 lines (73 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/******************************************
** Realized by
** GeoKronos
** geokronos.homelinux.org
** geokronos@yahoo.com
** and
** Clepto
** cleptoiii@yahoo.it
** License: GPL
*******************************************/
#ifndef XML_CONFIG_H
#define XML_CONFIG_H
#include <QDomDocument>
#include <QFile>
#include <QStringList>
#include <QTextStream>
#include <iostream>
#include<QDialog>
#include<qlineedit.h>
#include<QLabel>
#include<QFont>
#include<QPushButton>
#include<QComboBox>
#include<QNetworkConfiguration>
using namespace std;
class QC_identity
{
public:
QString nick;
QString real_name;
QString password;
QString away_message;
};
class QC_server
{
public:
QString host;
int port;
};
class xml_config : public QObject
{
Q_OBJECT
private:
QDomDocument doc;
QFile *fl;
QString err;
int err_row,err_col;
QDialog *dialog;
QLineEdit *nedit;
QLineEdit *sedit;
QComboBox *accesslist;
QPushButton *button_save;
public:
xml_config(QString);
~xml_config();
bool open(QIODevice::OpenMode);
void close();
QStringList get_notify_list();
QC_identity get_identity(int);
QString get_browser();
int identity_count();
QC_server get_server(int);
bool user_in_notify_list(QString user);
bool save();
void settingsmenu(void);
QNetworkConfiguration getNetworkConfiguration(void);
int get_accesspoint(void);
public slots:
bool add_notify_user(QString user);
void del_notify_user(QString user);
void savesettings(void);
};
#endif