summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-11 19:45:13 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-11 19:45:13 +0000
commit41ec75629ab19e84dd25a168797afe5fe8c01594 (patch)
tree688a9f1cb8df882de08c3a199aa1bdaf467b2b8b /protocols/Tox/src/tox_proto.h
parent9f7023fdefc4bbdc888c8bb208bc79bbaa8df225 (diff)
Tox: some of message sending
git-svn-id: http://svn.miranda-ng.org/main/trunk@10158 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r--protocols/Tox/src/tox_proto.h11
1 files changed, 7 insertions, 4 deletions
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<uint8_t> HexStringToData(const std::string hex);
- std::string DataToHexString(const std::vector<uint8_t>);
+ std::vector<uint8_t> HexStringToData(std::string hex);
+ std::string DataToHexString(std::vector<uint8_t>);
int LoadToxData(const char *path);
int SaveToxData(const char *path);