summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
index c87b58f32b..e4a771f231 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
+++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
@@ -40,6 +40,7 @@ private:
ByteArrayOutputStream *out;
IMutex* mutex;
int dataBegin;
+ bool bLoggedIn;
void writeListStart(int i);
void writeInt8(int v);
@@ -57,7 +58,9 @@ private:
void processBuffer();
public:
- BinTreeNodeWriter(WAConnection* conn, ISocketConnection* connection, const char** dictionary, const int dictionarysize, IMutex* mutex);
+ BinTreeNodeWriter(WAConnection* conn, ISocketConnection* connection, IMutex* mutex);
+ virtual ~BinTreeNodeWriter();
+
void streamStart(std::string domain, std::string resource);
void flushBuffer(bool flushNetwork);
void flushBuffer(bool flushNetwork, int startingOffset);
@@ -65,7 +68,7 @@ public:
void write(const ProtocolTreeNode &node);
void write(const ProtocolTreeNode &node, bool needsFlush);
- virtual ~BinTreeNodeWriter();
+ void setLoggedIn() { bLoggedIn = true; }
};
#endif /* BINTREENODEWRITER_H_ */