X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=src%2Fvpncontrol.h;h=542ec95b250ff1a1d1514b2db77a4171306c7b6a;hb=ee3968ffa08d4e0fcbad87765efa3aeb32ff0554;hp=e994b83d9db7454f58be26c016d54f8b77e0c20a;hpb=2e0816fb79e6c696ada4fe098ba006fca2741a1f;p=openvpnui.git diff --git a/src/vpncontrol.h b/src/vpncontrol.h index e994b83..542ec95 100644 --- a/src/vpncontrol.h +++ b/src/vpncontrol.h @@ -29,13 +29,24 @@ class VPNControl : public QObject private: QProcess * vpnProcess; VPNSTATUS vpnStatus; - void setStatus (VPNSTATUS newStatus); + QStringList arguments; + + // Configuration options QString server; unsigned int port; bool compressed; bool useTLS; int tlsDirection; + void collectArguments (); + void setStatus (VPNSTATUS newStatus); + void addArgument (QString key, QString value); + void addArgument (QString key); + void addOption (QString key, bool add); + void addValue (QString key); + void settingsSetValue (QString key, QString value); + void settingsSetValue (QString key, int value); + public: explicit VPNControl(QObject *parent = 0); void initialise();