-
Notifications
You must be signed in to change notification settings - Fork 3
/
configview.h
46 lines (34 loc) · 841 Bytes
/
configview.h
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
#ifndef CONFIGVIEW_H
#define CONFIGVIEW_H
#include <QMacNativeWidget>
#include <QSettings>
#include "accountform.h"
#include <QTextStream>
#include <QtNetwork/QNetworkInterface>
#include <QList>
namespace Ui {
class ConfigView;
}
bool readMentoFile(QIODevice &device,QSettings::SettingsMap &map);
bool writeMentoFile(QIODevice &device,const QSettings::SettingsMap &map);
class ConfigView : public QMacNativeWidget
{
Q_OBJECT
public:
explicit ConfigView();
bool autoConnect();
bool growlStatus();
QSettings* Config();
~ConfigView();
public slots:
void saveConfig(bool reset=false);
void resetConfig();
void getAdapter();
void showVersionInputDialog();
private:
int readConfig();
Ui::ConfigView *ui;
AccountForm* accountform;
QSettings* config;
};
#endif // CONFIGVIEW_H