summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/WAConnection.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-10 21:27:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-10 21:27:38 +0000
commite3506fe66886912cee16a91793d17010a87eecef (patch)
treeb06ba97cf876baa40ca4ed1bda85f9e932e435f9 /protocols/WhatsApp/src/WhatsAPI++/WAConnection.h
parent327745289de431e7e7dad6e4ce0eb8cef43eaeb5 (diff)
various rudiments & atavisms exterminated
git-svn-id: http://svn.miranda-ng.org/main/trunk@12085 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/WAConnection.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/WAConnection.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.h b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.h
index 957fcf7dfc..03637b8c3a 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.h
+++ b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.h
@@ -322,7 +322,6 @@ private:
BinTreeNodeWriter out;
WAListener *m_pEventHandler;
WAGroupListener *m_pGroupEventHandler;
- bool verbose;
int iqid;
std::map<string, IqResultHandler*> pending_server_requests;
IMutex *m_pMutex;
@@ -370,11 +369,13 @@ public:
static int tokenLookup(const std::string&);
void logData(const char *format, ...);
+ void flush() { out.flushBuffer(true); }
static std::string removeResourceFromJid(const std::string &jid);
+ void setFlush(bool _flush) { if (out.bFlush = _flush) out.flushBuffer(true); }
+
void setLogin(WALogin *login);
- void setVerboseId(bool b);
void sendMessage(FMessage* message) throw(WAException);
void sendAvailableForChat() throw(WAException);