projects
/
openvpnui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integrated file selection dialogue with the main code. Improved the
[openvpnui.git]
/
src
/
vpncontrol.h
diff --git
a/src/vpncontrol.h
b/src/vpncontrol.h
index
542ec95
..
33dbc38
100644
(file)
--- a/
src/vpncontrol.h
+++ b/
src/vpncontrol.h
@@
-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 (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;
private:
QProcess * vpnProcess;
VPNSTATUS vpnStatus;
@@
-37,6
+39,7
@@
private:
bool compressed;
bool useTLS;
int tlsDirection;
bool compressed;
bool useTLS;
int tlsDirection;
+ QString logText;
void collectArguments ();
void setStatus (VPNSTATUS newStatus);
void collectArguments ();
void setStatus (VPNSTATUS newStatus);
@@
-55,6
+58,7
@@
public:
bool getCompressed() const;
bool getUseTLS() const;
int getTlsDirection() const;
bool getCompressed() const;
bool getUseTLS() const;
int getTlsDirection() const;
+ QString getLogText() const;
signals:
void statusChanged(int status);
signals:
void statusChanged(int status);
@@
-63,6
+67,7
@@
signals:
void compressedChanged(bool compressed);
void useTLSChanged(bool useTLS);
void tlsDirectionChanged (int direction);
void compressedChanged(bool compressed);
void useTLSChanged(bool useTLS);
void tlsDirectionChanged (int direction);
+ void logTextChanged (QString logText);
public slots:
void vpnConnect ();
public slots:
void vpnConnect ();
@@
-77,6
+82,8
@@
public slots:
void setCompressed(bool value);
void setUseTLS(bool value);
void setTlsDirection(int value);
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
};
#endif // VPNCONTROL_H