summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-01 19:25:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-01 19:25:45 +0000
commit4deaf28bfaf2a71686e0ef2e3b494ab5b807311b (patch)
tree38301157c3da008899a9f814b9e5c8a3949ceb88 /protocols/Skype/src/skype_proto.h
parente8d6a2e3098bf4ee06b2bcb143dda488994e4e4d (diff)
- netlib funcs moved to skype_netlib.cpp
- some minor changes git-svn-id: http://svn.miranda-ng.org/main/trunk@1753 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index c5fbda84bf..bb3a0bcebb 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -1,14 +1,13 @@
#pragma once
#include "skype.h"
-#include "skype_subclassing.h"
struct CSkypeProto;
-typedef void (__cdecl CSkypeProto::*SkypeThreadFunc) (void*);
-typedef INT_PTR (__cdecl CSkypeProto::*SkypeServiceFunc)(WPARAM, LPARAM);
-typedef int (__cdecl CSkypeProto::*SkypeEventFunc)(WPARAM, LPARAM);
-typedef INT_PTR (__cdecl CSkypeProto::*SkypeServiceFuncParam)(WPARAM, LPARAM, LPARAM);
+typedef void (__cdecl CSkypeProto::* SkypeThreadFunc) (void*);
+typedef INT_PTR (__cdecl CSkypeProto::* SkypeServiceFunc)(WPARAM, LPARAM);
+typedef int (__cdecl CSkypeProto::* SkypeEventFunc)(WPARAM, LPARAM);
+typedef INT_PTR (__cdecl CSkypeProto::* SkypeServiceFuncParam)(WPARAM, LPARAM, LPARAM);
struct CSkypeProto : public PROTO_INTERFACE, public MZeroedObject
@@ -75,22 +74,21 @@ public:
protected:
CAccount::Ref account;
-
+ CContactGroup::Ref contactGroup;
TCHAR* login;
TCHAR* password;
- HANDLE hNetlibUser;
- void Log(const char* fmt, ...);
HANDLE signin_lock;
void __cdecl SignIn(void*);
void __cdecl LoadContactList(void*);
+ void OnContactChanged(CContact* contact, int prop);
HANDLE GetContactBySkypeLogin(const char* skypeLogin);
void SetAllContactStatuses(int status);
-
+ // utils
void CreateService(const char* szService, SkypeServiceFunc serviceProc);
void CreateServiceParam(const char* szService, SkypeServiceFunc serviceProc, LPARAM lParam);
@@ -103,6 +101,12 @@ protected:
void ForkThread(SkypeThreadFunc, void*);
HANDLE ForkThreadEx(SkypeThreadFunc, void*, UINT* threadID = NULL);
+ // netlib
+ HANDLE hNetlibUser;
+ void InitNetLib();
+ void UninitNetLib();
+ void Log(const char* fmt, ...);
+
// database settings
BYTE GetSettingByte(const char *setting, BYTE errorValue = 0);
BYTE GetSettingByte(HANDLE hContact, const char *setting, BYTE errorValue = 0);
@@ -126,7 +130,7 @@ protected:
bool SetDecodeSettingString(const char *setting, TCHAR* value = NULL);
bool SetDecodeSettingString(HANDLE hContact, const char *setting, TCHAR* value = NULL);
-
+ // dialog procs
static INT_PTR CALLBACK SkypeAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
static INT_PTR CALLBACK SkypeOptionsProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
}; \ No newline at end of file