-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
44 lines (40 loc) · 998 Bytes
/
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
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QObject>
#include <QSettings>
#include <QFile>
#include <QDebug>
#define COMMAND "mount_command"
#define OPTIONS "mount_options"
#define DEVICE "device_ip"
#define REMOTEPATH "remote_path"
#define MOUNTPOINT "mount_point"
#define SSHUSER "ssh_user_name"
#define SSHPASS "ssh_password"
#define AUTOMOUNT "auto_mount"
#define AUTOUNMOUNT "auto_unmount"
#define REBOOTSCRIPT "reboot_script"
#define SHUTDOWNSCRIPT "shutdown_script"
#define SSHARGS "sshargs"
class mSettings : public QSettings
{
Q_OBJECT
public:
struct Options
{
QString mount_command;
QString mount_options;
QString device_ip;
QString remote_path;
QString mount_point;
QString username;
QString password;
QString shutdown_script;
QString reboot_script;
QString args;
};
Options options;
mSettings(QObject *parent = Q_NULLPTR);
Options &getOptions();
};
#endif // SETTINGS_H