summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-02-15 15:17:05 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-02-15 15:17:05 +0000
commite8f11470ac52bc89e955630d69ed8229a06acc79 (patch)
tree1922fc5a543da79dc8db3ffab647bf885f01fa87 /protocols/Tox/src/tox_proto.h
parentfd3c3c5c71590bb18372f84e18a51b07671dfa55 (diff)
Tox:
- refactoring - nodes settings in db are ansi now - added work with tox network git-svn-id: http://svn.miranda-ng.org/main/trunk@12124 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r--protocols/Tox/src/tox_proto.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h
index 03fdfa1a78..404b037350 100644
--- a/protocols/Tox/src/tox_proto.h
+++ b/protocols/Tox/src/tox_proto.h
@@ -72,39 +72,40 @@ private:
bool isTerminated, isConnected;
CTransferList *transfers;
- // tox
- bool InitToxCore();
- void UninitToxCore();
-
- // ???
- void DoBootstrap();
- void DoTox();
-
- void __cdecl PollingThread(void*);
-
// tox profile
std::tstring GetToxProfilePath();
static std::tstring CToxProto::GetToxProfilePath(const TCHAR *accountName);
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);
+ // tox core
+ bool InitToxCore();
+ void UninitToxCore();
+
+ // tox network
+ bool IsOnline();
+ void BootstrapNode(int index);
+ void TryConnect();
+ void CheckConnection(int &retriesCount);
+ void DoTox();
+
+ void __cdecl PollingThread(void*);
+
// accounts
static LIST<CToxProto> accounts;
static int CompareAccounts(const CToxProto *p1, const CToxProto *p2);
+ int __cdecl OnAccountLoaded(WPARAM, LPARAM);
+ int __cdecl OnAccountRenamed(WPARAM, LPARAM);
+
// netlib
void InitNetlib();
void UninitNetlib();
- // account
- bool IsOnline();
- int __cdecl OnAccountLoaded(WPARAM, LPARAM);
- int __cdecl OnAccountRenamed(WPARAM, LPARAM);
-
// options
static INT_PTR CALLBACK MainOptionsProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
int __cdecl OnOptionsInit(WPARAM wParam, LPARAM lParam);