diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-04-26 15:19:17 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-04-26 15:19:17 +0000 |
commit | 30b3cd352057c79cf26e1ce73a8c6554cbb4b7be (patch) | |
tree | b6d9b287c6b547e68a18bba25d243b3d8c252d72 /protocols/Skype/src/skype_proto.h | |
parent | 0fdbd8fce63637a7abf746942060f858b225af7d (diff) |
cleanup project
git-svn-id: http://svn.miranda-ng.org/main/trunk@4534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r-- | protocols/Skype/src/skype_proto.h | 74 |
1 files changed, 48 insertions, 26 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index 313b231465..c57c4f0858 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -221,9 +221,6 @@ public: static CSkypeProto* InitSkypeProto(const char* protoName, const wchar_t* userName);
static int UninitSkypeProto(CSkypeProto* ppro);
- // services
- static void InitServiceList();
-
// icons
static void InitIcons();
static void UninitIcons();
@@ -234,6 +231,14 @@ public: static void InitMenus();
static void UninitMenus();
+ // services
+ static void InitServiceList();
+ static void UninitServiceList();
+
+ // hooks
+ static void InitHookList();
+ static void UninitHookList();
+
INT_PTR __cdecl InviteCommand(WPARAM, LPARAM);
static CSkypeProto* GetInstanceByHContact(HANDLE hContact);
@@ -249,32 +254,43 @@ protected: CContactGroup::Ref authWaitList;
// account
- void OnAccountChanged(int prop);
+ static wchar_t* LogoutReasons[];
+ static wchar_t* PasswordChangeReasons[];
wchar_t *login;
char *password;
- bool rememberPassword;
-
+ bool rememberPassword;
+
bool RequestPassword(PasswordRequestBoxParam ¶m);
bool ChangePassword(PasswordChangeBoxParam ¶m);
bool PrepareLogin();
bool PreparePassword();
- HANDLE signin_lock;
- bool SignIn(int status);
- void __cdecl SignInAsync(void*);
+ void InitProxy();
+ void SetAccountSettings();
+
+ bool LogIn();
+ void LogOut();
+
+ void OnLoggedIn();
+ void OnCblUpdated();
+ void OnLoggedOut(CAccount::LOGOUTREASON reason);
- void SetAccountSettings();
+ void OnAccountChanged(int prop);
+ // avatars
bool IsAvatarChanged(const SEBinary &avatar);
- static SettingItem setting[19];
+ static int DetectAvatarFormatBuffer(const char *pBuffer);
+ static int DetectAvatarFormat(const wchar_t *path);
- static wchar_t* LogoutReasons[];
- static wchar_t* ValidationReasons[];
- static wchar_t* PasswordChangeReasons[];
- static LanguagesListEntry languages[223];
+ wchar_t* GetContactAvatarFilePath(HANDLE hContact);
+
+ INT_PTR __cdecl GetAvatarInfo(WPARAM, LPARAM);
+ INT_PTR __cdecl GetAvatarCaps(WPARAM, LPARAM);
+ INT_PTR __cdecl GetMyAvatar(WPARAM, LPARAM);
+ INT_PTR __cdecl SetMyAvatar(WPARAM, LPARAM);
// messages
void OnMessage(CConversation::Ref conversation, CMessage::Ref message);
@@ -286,7 +302,7 @@ protected: void OnTransferChanged(CTransfer::Ref transfer, int prop);
// chat
- static wchar_t* Groups[];
+ static wchar_t* Roles[];
bool IsChatRoom(HANDLE hContact);
HANDLE GetChatRoomByCid(const wchar_t *cid);
@@ -350,6 +366,8 @@ protected: void __cdecl SearchByEmailAsync(void*);
// profile
+ static SettingItem setting[19];
+
void UpdateProfileAvatar(SEObject *obj, HANDLE hContact = NULL);
void UpdateProfileAboutText(SEObject *obj, HANDLE hContact = NULL);
void UpdateProfileBirthday(SEObject *obj, HANDLE hContact = NULL);
@@ -372,17 +390,14 @@ protected: void __cdecl LoadOwnInfo(void*);
// utils
+ static wchar_t* ValidationReasons[];
+
static void FakeAsync(void*);
void InitCustomFolders();
HANDLE m_hAvatarsFolder;
bool m_bInitDone;
- static int DetectAvatarFormatBuffer(const char *pBuffer);
- static int DetectAvatarFormat(const wchar_t *path);
-
- wchar_t* GetContactAvatarFilePath(HANDLE hContact);
-
int SkypeToMirandaLoginError(CAccount::LOGOUTREASON logoutReason);
static void ShowNotification(const wchar_t *message, int flags = 0, HANDLE hContact = NULL);
@@ -414,18 +429,25 @@ protected: // netlib
HANDLE hNetLibUser;
+
void InitNetLib();
void UninitNetLib();
- void InitProxy();
+
void Log(const wchar_t *fmt, ...);
// services
static LIST<void> serviceList;
- INT_PTR __cdecl GetAvatarInfo(WPARAM, LPARAM);
- INT_PTR __cdecl GetAvatarCaps(WPARAM, LPARAM);
- INT_PTR __cdecl GetMyAvatar(WPARAM, LPARAM);
- INT_PTR __cdecl SetMyAvatar(WPARAM, LPARAM);
+ LIST<void> instanceServiceList;
+ void InitInstanceServiceList();
+ void UninitInstanceServiceList();
+
+ // hooks
+ static LIST<void> hookList;
+
+ LIST<void> instanceHookList;
+ void InitInstanceHookList();
+ void UninitInstanceHookList();
// icons
static _tag_iconList IconList[];
|