summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-01 18:44:27 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-01 18:44:27 +0000
commit1c0ee54dedd808a106ca64edd249598def1c9ed3 (patch)
treec9d7886c50aa4dbeed72e60c979229d23cec9ab1 /protocols/SkypeWeb/src/skype_proto.h
parentc77bc8ad3240272d3c784aa79b153b3d1cab726d (diff)
SkypeWeb: More fixes & optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@14783 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.h')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h
index 01f3ec57bf..b3c2344ebb 100644
--- a/protocols/SkypeWeb/src/skype_proto.h
+++ b/protocols/SkypeWeb/src/skype_proto.h
@@ -38,7 +38,7 @@ public:
virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr);
virtual MCONTACT __cdecl AddToListByEvent(int flags, int iContact, MEVENT hDbEvent);
- virtual int __cdecl AuthRequest(MCONTACT hContact, const TCHAR* szMessage);
+ virtual int __cdecl AuthRequest(MCONTACT hContact, const TCHAR* szMessage);
virtual int __cdecl Authorize(MEVENT hDbEvent);
virtual int __cdecl AuthDeny(MEVENT hDbEvent, const TCHAR* szReason);
virtual int __cdecl AuthRecv(MCONTACT hContact, PROTORECVEVENT*);
@@ -117,6 +117,7 @@ private:
mir_cs m_InviteDialogsLock;
mir_cs m_GCCreateDialogsLock;
mir_cs messageSyncLock;
+ mir_cs m_StatusLock;
static mir_cs accountsLock;
static mir_cs timerLock;
@@ -275,13 +276,9 @@ private:
INT_PTR __cdecl OnLeaveChatRoom(WPARAM hContact, LPARAM);
void StartChatRoom(const TCHAR *tid, const TCHAR *tname);
-
void OnLoadChats(const NETLIBHTTPREQUEST *response);
-
void OnGetChatInfo(const NETLIBHTTPREQUEST *response, void *p);
-
-
void OnChatEvent(const JSONNode &node);
void OnSendChatMessage(const TCHAR *chat_id, const TCHAR * tszMessage);
char *GetChatUsers(const TCHAR *chat_id);
@@ -305,7 +302,7 @@ private:
void ProcessThreadUpdateRes(const JSONNode &node);
// utils
- void CSkypeProto::FreeCharList(LIST<char> lst);
+ static void CSkypeProto::FreeCharList(LIST<char> lst);
__forceinline bool IsOnline()
{ return (m_iStatus > ID_STATUS_OFFLINE && m_hPollingThread);
@@ -335,8 +332,8 @@ private:
CMStringA GetServerFromUrl(const char *url);
//---Timers
- void CALLBACK SkypeUnsetTimer(void*);
- void CALLBACK SkypeSetTimer(void*);
+ void CALLBACK SkypeUnsetTimer();
+ void CALLBACK SkypeSetTimer();
void ProcessTimer();
static void CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD);
//---/