forked from katropine/gmailsniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
76 lines (68 loc) · 1.86 KB
/
settings.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
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
/**
* This file is Copyright 2012
* Kristian Beres <[email protected]>
*
* Other copyrights also apply to some parts of this work. Please
* see the individual file headers for details.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version. See the file
* COPYING included with this distribution for more information.
*/
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QtCore>
class Settings
{
public:
Settings();
~Settings();
static const int salt = 254568546;
void save();
QString fetchBrowserCommand(const int browserID);
void setUserName(QString userName);
void setPassword(QString password);
void setBrowser(int browser);
void setBrowserCmd(QString browserCmd);
void setPositoinX(int x);
void setPositoinY(int y);
void setWidth(int width);
void setHeight(int height);
void setDuration(int duration);
void setSnifferPosition(QRect rect);
void setRefreshTime(int seconds);
void setSystemNotifier(bool sysNotify);
void setAlertSound(bool alertSound);
QString getUserName();
QString getPassword();
int getBrowser();
QString getBrowserCmd();
int getPositionX();
int getPositionY();
int getWidth();
int getHeight();
int getDuration();
int getRefreshTime();
QRect getSnifferPosition();
bool getSystemNotifier();
bool getAlertSound();
protected:
QString userName;
QString password;
int browser;
QString browserCmd;
int positionX;
int positionY;
int width;
int height;
int duration;
int seconds;
QRect snifferPosition;
bool sysNotify;
bool alertSound;
private:
QSettings *pSettings;
};
#endif // SETTINGS_H