From 41ec75629ab19e84dd25a168797afe5fe8c01594 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 11 Aug 2014 19:45:13 +0000 Subject: Tox: some of message sending git-svn-id: http://svn.miranda-ng.org/main/trunk@10158 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'protocols/Tox/src/tox_proto.h') diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 220e07d0c0..81ee596e7f 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -83,9 +83,11 @@ private: static int CompareProtos(const CToxProto *p1, const CToxProto *p2); // account + bool IsOnline(); + void DoBootstrap(); void DoTox(); - + void __cdecl ConnectionThread(void*); void __cdecl PollingThread(void*); @@ -101,10 +103,11 @@ private: static void OnUserStatusChanged(Tox *tox, int32_t friendnumber, uint8_t TOX_USERSTATUS, void *userdata); static void OnConnectionStatusChanged(Tox *tox, const int friendId, const uint8_t status, void *arg); static void OnAction(Tox *tox, const int friendId, const uint8_t *message, const uint16_t messageSize, void *arg); + static void OnReadReceipt(Tox *tox, int32_t friendnumber, uint32_t receipt, void *arg); // contacts bool IsProtoContact(MCONTACT hContact); - MCONTACT GetContactByUserId(const char *clientId); + MCONTACT GetContactByClientId(const char *clientId); MCONTACT AddContact(const char *clientId, const char *nick, bool isHidden = false); void LoadContactList(); @@ -118,8 +121,8 @@ private: // utils TOX_USERSTATUS MirandaToToxStatus(int status); - std::vector HexStringToData(const std::string hex); - std::string DataToHexString(const std::vector); + std::vector HexStringToData(std::string hex); + std::string DataToHexString(std::vector); int LoadToxData(const char *path); int SaveToxData(const char *path); -- cgit v1.2.3