diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-18 20:17:45 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-18 20:17:45 +0000 |
commit | 87204c540590feeba783f40319d4a503b9f325f5 (patch) | |
tree | 60f3cee948264d9edd06958a15bb2e0b333deda1 /protocols/Tox/src/tox_proto.h | |
parent | 108d975c5775d83357c735541ee5e711c27f092a (diff) |
Tox:
- added profile manager on first run
- reworked options
git-svn-id: http://svn.miranda-ng.org/main/trunk@10231 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 537e001cdb..af596b689c 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -97,14 +97,15 @@ private: void __cdecl PollingThread(void*);
//events
- int __cdecl OnModulesLoaded(WPARAM, LPARAM);
+ int __cdecl OnAccountLoaded(WPARAM, LPARAM);
+ int __cdecl OnContactDeleted(WPARAM, LPARAM);
+ int __cdecl OnSettingsChanged(WPARAM, LPARAM);
int __cdecl OnPreShutdown(WPARAM, LPARAM);
INT_PTR __cdecl OnAccountManagerInit(WPARAM, LPARAM);
+ static int __cdecl OnAccountListChanged(void *obj, WPARAM wParam, LPARAM lParam);
static int __cdecl OnOptionsInit(void *obj, WPARAM wParam, LPARAM lParam);
- INT_PTR __cdecl OnContactDeleted(WPARAM, 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 friendnumber, const uint8_t *message, const uint16_t messageSize, void *arg);
static void OnFriendNameChange(Tox *tox, const int friendnumber, const uint8_t *name, const uint16_t nameSize, void *arg);
@@ -142,13 +143,16 @@ private: std::vector<uint8_t> HexStringToData(std::string hex);
std::string DataToHexString(std::vector<uint8_t>);
- std::string GetToxProfilePath();
+ static bool IsFileExists(std::tstring path);
+
+ std::tstring GetToxProfilePath();
int LoadToxData();
int SaveToxData();
// dialogs
static INT_PTR CALLBACK MainOptionsProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+ static INT_PTR CALLBACK ToxProfileManagerProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
};
#endif //_TOX_PROTO_H_
\ No newline at end of file |