forked from mss/securepoint-openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configs.h
32 lines (27 loc) · 822 Bytes
/
Configs.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
#ifndef CONFIGS_H
#define CONFIGS_H
#include <QtGui>
#include <QDir>
#include <QDialog>
#include "openvpn.h"
class Configs
{
public:
static Configs *getInstance ();
void searchConfigs (QString sDir);
void clearConfigs ();
QList<QPair<int, OpenVpn*> > getConfigsObjects ();
void searchLinkedConfigs ();
bool isConfigLinked (const QString &config);
void removeConfigFromList (const QString &config);
void changeConfigNameInLinkedList (const QString &oldName, const QString &newName);
void appendConfigToList (OpenVpn *obj);
private:
Configs();
static Configs *mInst;
QList<QPair<int, OpenVpn*> > myList;
QString refreshConnectionPath;
int id;
bool isConfigInList (const QString &path);
};
#endif // CONFIGS_H