X-Git-Url: https://www.flypig.org.uk/git/?p=openvpnui.git;a=blobdiff_plain;f=src%2Fvpncontrol.h;fp=src%2Fvpncontrol.h;h=542ec95b250ff1a1d1514b2db77a4171306c7b6a;hp=909f3b204dfc9a3424d95fdc020fbcd987f80ee0;hb=ee3968ffa08d4e0fcbad87765efa3aeb32ff0554;hpb=23fb3768d515e0e901298d2b030561b9a98ffb33 diff --git a/src/vpncontrol.h b/src/vpncontrol.h index 909f3b2..542ec95 100644 --- a/src/vpncontrol.h +++ b/src/vpncontrol.h @@ -30,17 +30,22 @@ private: QProcess * vpnProcess; VPNSTATUS vpnStatus; 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);