diff options
author | Javier <maemo@javispedro.com> | 2014-07-26 18:36:49 +0200 |
---|---|---|
committer | Javier <maemo@javispedro.com> | 2014-07-26 18:36:49 +0200 |
commit | ab80ac3b2fbfe04e43282eb505e10d12b3085a07 (patch) | |
tree | 1fb7369bdd762a8323cefafdb0b7969835f4522a /gatosocket.h | |
parent | 21b56895cb60e4d68b9e79b44b18cdb79b747e8c (diff) | |
download | libgato-ab80ac3b2fbfe04e43282eb505e10d12b3085a07.tar.gz libgato-ab80ac3b2fbfe04e43282eb505e10d12b3085a07.zip |
add security level getter to gatosocket
Diffstat (limited to 'gatosocket.h')
-rw-r--r-- | gatosocket.h | 9 |
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(); |