summaryrefslogtreecommitdiff
path: root/gatosocket.h
diff options
context:
space:
mode:
authorJavier <maemo@javispedro.com>2014-07-26 18:36:49 +0200
committerJavier <maemo@javispedro.com>2014-07-26 18:36:49 +0200
commitab80ac3b2fbfe04e43282eb505e10d12b3085a07 (patch)
tree1fb7369bdd762a8323cefafdb0b7969835f4522a /gatosocket.h
parent21b56895cb60e4d68b9e79b44b18cdb79b747e8c (diff)
downloadlibgato-ab80ac3b2fbfe04e43282eb505e10d12b3085a07.tar.gz
libgato-ab80ac3b2fbfe04e43282eb505e10d12b3085a07.zip
add security level getter to gatosocket
Diffstat (limited to 'gatosocket.h')
-rw-r--r--gatosocket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gatosocket.h b/gatosocket.h
index 4b4afbf..c1c025f 100644
--- a/gatosocket.h
+++ b/gatosocket.h
@@ -28,6 +28,13 @@ public:
UnknownError
};
+ enum SecurityLevel {
+ SecurityNone,
+ SecurityLow,
+ SecurityMedium,
+ SecurityHigh
+ };
+
State state() const;
bool connectTo(const GatoAddress &addr, unsigned short cid);
@@ -39,6 +46,8 @@ public:
/** Adds a message to the tx queue. */
void send(const QByteArray &pkt);
+ SecurityLevel securityLevel() const;
+
signals:
void connected();
void disconnected();