Integrated file selection dialogue with the main code. Improved the
[openvpnui.git] / src / vpncontrol.h
index 542ec95..33dbc38 100644 (file)
@@ -26,6 +26,8 @@ class VPNControl : public QObject
     Q_PROPERTY (bool useTLS READ getUseTLS WRITE setUseTLS NOTIFY useTLSChanged)
     Q_PROPERTY (int tlsDirection READ getTlsDirection WRITE setTlsDirection NOTIFY tlsDirectionChanged)
 
+    Q_PROPERTY (QString logText READ getLogText WRITE setLogText NOTIFY logTextChanged)
+
 private:
     QProcess * vpnProcess;
     VPNSTATUS vpnStatus;
@@ -37,6 +39,7 @@ private:
     bool compressed;
     bool useTLS;
     int tlsDirection;
+    QString logText;
 
     void collectArguments ();
     void setStatus (VPNSTATUS newStatus);
@@ -55,6 +58,7 @@ public:
     bool getCompressed() const;
     bool getUseTLS() const;
     int getTlsDirection() const;
+    QString getLogText() const;
 
 signals:
     void statusChanged(int status);
@@ -63,6 +67,7 @@ signals:
     void compressedChanged(bool compressed);
     void useTLSChanged(bool useTLS);
     void tlsDirectionChanged (int direction);
+    void logTextChanged (QString logText);
 
 public slots:
     void vpnConnect ();
@@ -77,6 +82,8 @@ public slots:
     void setCompressed(bool value);
     void setUseTLS(bool value);
     void setTlsDirection(int value);
+    void setLogText(const QString &value);
+    void logAppend(const QString &text);
 };
 
 #endif // VPNCONTROL_H