X-Git-Url: https://www.flypig.org.uk/git/?p=openvpnui.git;a=blobdiff_plain;f=src%2Fvpncontrol.h;fp=src%2Fvpncontrol.h;h=909f3b204dfc9a3424d95fdc020fbcd987f80ee0;hp=e994b83d9db7454f58be26c016d54f8b77e0c20a;hb=23fb3768d515e0e901298d2b030561b9a98ffb33;hpb=2e0816fb79e6c696ada4fe098ba006fca2741a1f diff --git a/src/vpncontrol.h b/src/vpncontrol.h index e994b83..909f3b2 100644 --- a/src/vpncontrol.h +++ b/src/vpncontrol.h @@ -29,12 +29,18 @@ class VPNControl : public QObject private: QProcess * vpnProcess; VPNSTATUS vpnStatus; - void setStatus (VPNSTATUS newStatus); + QStringList arguments; 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); public: explicit VPNControl(QObject *parent = 0);