diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-25 22:07:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-25 22:07:05 +0000 |
commit | db8c860f22d93d04fbe35bcb50e812c269cb2ea7 (patch) | |
tree | 4d54d27dae4cba5fa0517f8b529abd817dffb338 /protocols/Tox/src/tox_proto.h | |
parent | 49b90802d624e53129e51dfce1d78d2ef28ed68c (diff) |
Tox: messages refactoring pt 2
git-svn-id: http://svn.miranda-ng.org/main/trunk@12268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 40b586e0ed..8ea108a01f 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -186,7 +186,8 @@ private: static INT_PTR CALLBACK ChatRoomInviteProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
// messages
- void RegisterIncomingMessage(const int friendNumber, const uint8_t *message, const uint16_t messageSize);
+ int OnReceiveMessage(MCONTACT hContact, PROTORECVEVENT *pre);
+ int OnSendMessage(MCONTACT hContact, int flags, const char *message);
static void OnFriendMessage(Tox *tox, const int friendNumber, const uint8_t *message, const uint16_t messageSize, void *arg);
static void OnFriendAction(Tox *tox, const int friendNumber, const uint8_t *action, const uint16_t actionSize, void *arg);
@@ -224,8 +225,6 @@ private: static void ShowNotification(const TCHAR *message, int flags = 0, MCONTACT hContact = NULL);
static void ShowNotification(const TCHAR *caption, const TCHAR *message, int flags = 0, MCONTACT hContact = NULL);
- MEVENT AddDbEvent(MCONTACT hContact, WORD type, DWORD timestamp, DWORD flags, DWORD cbBlob, PBYTE pBlob);
-
static bool IsFileExists(std::tstring path);
};
|