+ arguments.clear();
+ }
+}
+
+void VPNControl::collectArguments () {
+ arguments.clear();
+
+ addArgument("config", "/home/nemo/Documents/Configure/OpenVPN/config.ovpn");
+ addArgument("remote", server);
+ addArgument("port", QString::number(port));
+ addOption("comp-lzo", compressed);
+ if (useTLS) {
+ addArgument("tls-auth", "/home/nemo/Documents/Configure/OpenVPN/ta.key");
+ addValue(QString::number(tlsDirection));
+ }
+ addArgument("ca", "/home/nemo/Documents/Configure/OpenVPN/ca.crt");
+ addArgument("cert", "/home/nemo/Documents/Configure/OpenVPN/Jolla.crt");
+ addArgument("key", "/home/nemo/Documents/Configure/OpenVPN/Jolla.key");
+}
+
+void VPNControl::addArgument (QString key, QString value) {
+ QString argument;
+
+ argument = "--" + key;
+ arguments.append(argument);
+ if (value != "") {
+ arguments.append(value);