Options are taken from the configuration dialogue and passed through to
[openvpnui.git] / src / vpncontrol.h
index e994b83..909f3b2 100644 (file)
@@ -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);