From 8efc51aefbfcc6a41d9acabe9383a337500b0049 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 6 Oct 2014 19:23:04 +0000 Subject: Tox: - password dialog for encrypted profile git-svn-id: http://svn.miranda-ng.org/main/trunk@10713 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 c69ec385e6..c53a5d14c0 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -105,6 +105,9 @@ public: static CToxProto* InitAccount(const char* protoName, const wchar_t* userName); static int UninitAccount(CToxProto* ppro); + // tox + bool InitToxCore(); + private: Tox *tox; mir_cs toxLock; @@ -114,7 +117,6 @@ private: std::map transfers; // tox - void InitToxCore(); void UninitToxCore(); // ??? @@ -128,10 +130,11 @@ private: std::tstring GetToxProfilePath(); static std::tstring CToxProto::GetToxProfilePath(const TCHAR *accountName); - void LoadToxProfile(); + bool LoadToxProfile(); void SaveToxProfile(); - + static INT_PTR CALLBACK ToxProfileImportProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); + static INT_PTR CALLBACK ToxProfilePasswordProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // accounts static LIST accounts; -- cgit v1.2.3