summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-10-06 19:23:04 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-10-06 19:23:04 +0000
commit8efc51aefbfcc6a41d9acabe9383a337500b0049 (patch)
tree8d86530327e674d551cf61580d1daaf2a07d9262 /protocols/Tox/src/tox_proto.h
parentcea7fc1a7e6b72703914d7a92763bb4236976db6 (diff)
Tox: - password dialog for encrypted profile
git-svn-id: http://svn.miranda-ng.org/main/trunk@10713 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r--protocols/Tox/src/tox_proto.h9
1 files changed, 6 insertions, 3 deletions
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<uint8_t, FileTransferParam*> 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<CToxProto> accounts;