diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-10-03 18:30:39 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-10-03 18:30:39 +0000 |
commit | fdae978639989c9988f16385d4cdfb32a0467ef0 (patch) | |
tree | 2eed678ad08751613ddf34a4209e934f78a6115e /protocols/Skype/src/skype_proto.h | |
parent | 8cb2a99e08a3f8fadc3b39f00228efa7d2b20050 (diff) |
- added skype_menus.cpp, skype_services.cpp
- some minor changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@1773 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r-- | protocols/Skype/src/skype_proto.h | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index d9f2a4b634..a6dbec8df5 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -4,6 +4,8 @@ struct CSkypeProto;
+extern LIST<CSkypeProto> g_Instances;
+
typedef void (__cdecl CSkypeProto::* SkypeThreadFunc) (void*);
typedef INT_PTR (__cdecl CSkypeProto::* SkypeServiceFunc)(WPARAM, LPARAM);
typedef int (__cdecl CSkypeProto::* SkypeEventFunc)(WPARAM, LPARAM);
@@ -69,8 +71,20 @@ public: int __cdecl OnOptionsInit(WPARAM, LPARAM);
int __cdecl OnAccountManagerInit(WPARAM wParam, LPARAM lParam);
- char* ModuleName();
- bool IsOffline();
+ // services
+ static void InitServiceList();
+ static void UninitServiceList();
+
+ // icons
+ static void InitIcons();
+ static void UninitIcons();
+
+ // menus
+ static void InitMenus();
+ static void UninitMenus();
+
+ static CSkypeProto* GetInstanceByHContact(HANDLE hContact);
+ static int PrebuildContactMenu(WPARAM wParam, LPARAM lParam);
protected:
CAccount::Ref account;
@@ -87,12 +101,12 @@ protected: // contacts
void OnContactChanged(CContact* contact, int prop);
- bool IsSkypeContact(HANDLE hContact);
+ bool IsProtoContact(HANDLE hContact);
HANDLE AddContactBySkypeName(wchar_t* skypeName, wchar_t* displayName, DWORD flags);
HANDLE GetContactBySkypeName(wchar_t* skypeName);
int SkypeToMirandaStatus(CContact::AVAILABILITY availability);
CContact::AVAILABILITY MirandaToSkypeStatus(int status);
- void SetAllContactStatuses(int status);
+ void SetAllContactStatus(int status);
// utils
void CreateService(const char* szService, SkypeServiceFunc serviceProc);
@@ -113,6 +127,14 @@ protected: void UninitNetLib();
void Log(const char* fmt, ...);
+ // services
+ //static LIST<HANDLE> serviceList;
+
+ // menu
+ static HANDLE hPrebuildMenuHook;
+
+ int OnPrebuildContactMenu(WPARAM wParam, LPARAM);
+
// database settings
BYTE GetSettingByte(const char *setting, BYTE errorValue = 0);
BYTE GetSettingByte(HANDLE hContact, const char *setting, BYTE errorValue = 0);
|