From 89f3cf8bbb9dc1fa0fe72f6af6638ac086c7e011 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 29 Nov 2017 09:33:41 +0300 Subject: libevent, telegram, whatsapp moved to deprecated coz doesn't work --- .../WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h | 73 ---------------------- 1 file changed, 73 deletions(-) delete mode 100644 protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h') diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h deleted file mode 100644 index 7a2d43454d..0000000000 --- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * BinTreeNodeReader.h - * - * Created on: 26/06/2012 - * Author: Antonio - */ -#ifndef BINTREENODEREADER_H_ -#define BINTREENODEREADER_H_ - -#include "ProtocolTreeNode.h" -#include "ISocketConnection.h" -#include "ByteArray.h" -#include "WAConnection.h" -#include -#include -#include - -#define BUFFER_SIZE 512 - -class WAConnection; - -enum ReadType {STRING, ARRAY}; - -class ReadData { -public: - ReadData() {}; - virtual ~ReadData() {}; - - ReadType type; - void * data; -}; - -class BinTreeNodeReader { -private: - ISocketConnection *rawIn; - ByteArrayInputStream* in; - std::vector buf; - int readSize; - WAConnection *conn; - - ProtocolTreeNode* nextTreeInternal(); - bool isListTag(int b); - void decodeStream(int flags, int offset, int length); - std::map* readAttributes(int attribCount); - std::vector* readList(int token); - int readListSize(int token); - std::vector* readList(); - ReadData* readString(); - ReadData* readString(int token); - static void fillArray(std::vector& buff, int len, ByteArrayInputStream* in); - static void fillArray(std::vector& buff, int len, ISocketConnection *in); - std::string* objectAsString(ReadData* o); - std::string* readStringAsString(); - std::string* readStringAsString(int token); - void getTopLevelStream(); - static int readInt8(ByteArrayInputStream* in); - static int readInt8(ISocketConnection *in); - static int readInt16(ByteArrayInputStream* in); - static int readInt16(ISocketConnection *in); - static int readInt24(ByteArrayInputStream* in); - static int readInt24(ISocketConnection *in); - - -public: - BinTreeNodeReader(WAConnection* conn, ISocketConnection* connection); - ~BinTreeNodeReader(); - ProtocolTreeNode* nextTree(); - void streamStart(); - -}; - -#endif /* BINTREENODEREADER_H_ */ - -- cgit v1.2.3