summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-12 17:23:41 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-12 17:23:41 +0000
commitc1fdf24779e15d5a1063340b35a4f7b2e3bf9d6a (patch)
tree533ad0b608c12d5d68019bc1f5a40be6522e4b95 /protocols/Tox/src/tox_proto.h
parent5a5db63d2250396ea17b194e4dc7b455cdd521fd (diff)
Tox: added message receiving
git-svn-id: http://svn.miranda-ng.org/main/trunk@10166 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r--protocols/Tox/src/tox_proto.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h
index 81ee596e7f..f443528421 100644
--- a/protocols/Tox/src/tox_proto.h
+++ b/protocols/Tox/src/tox_proto.h
@@ -77,6 +77,7 @@ private:
HANDLE poolingThread;
bool isTerminated;
bool isConnected;
+ ULONG hMessageProcess;
// instances
static LIST<CToxProto> instanceList;
@@ -97,7 +98,7 @@ private:
static int __cdecl OnOptionsInit(void *obj, WPARAM wParam, LPARAM lParam);
static void OnFriendRequest(Tox *tox, const uint8_t *userId, const uint8_t *message, const uint16_t messageSize, void *arg);
- static void OnFriendMessage(Tox *tox, const int friendId, const uint8_t *message, const uint16_t messageSize, void *arg);
+ static void OnFriendMessage(Tox *tox, const int friendnumber, const uint8_t *message, const uint16_t messageSize, void *arg);
static void OnFriendNameChange(Tox *tox, const int friendId, const uint8_t *name, const uint16_t nameSize, void *arg);
static void OnStatusMessageChanged(Tox *tox, const int friendId, const uint8_t* message, const uint16_t messageSize, void *arg);
static void OnUserStatusChanged(Tox *tox, int32_t friendnumber, uint8_t TOX_USERSTATUS, void *userdata);
@@ -107,7 +108,7 @@ private:
// contacts
bool IsProtoContact(MCONTACT hContact);
- MCONTACT GetContactByClientId(const char *clientId);
+ MCONTACT FindContact(const char *clientId);
MCONTACT AddContact(const char *clientId, const char *nick, bool isHidden = false);
void LoadContactList();
@@ -120,6 +121,8 @@ private:
// utils
TOX_USERSTATUS MirandaToToxStatus(int status);
+
+ HANDLE AddDbEvent(MCONTACT hContact, WORD type, DWORD timestamp, DWORD flags, DWORD cbBlob, PBYTE pBlob);
std::vector<uint8_t> HexStringToData(std::string hex);
std::string DataToHexString(std::vector<uint8_t>);