From 93d2e2120e56bae6e62cf4297ea82c3dc0ab295a Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 3 May 2015 14:47:25 +0000 Subject: SkypeWeb: Updating contact list & auth requests every 10 minutes. git-svn-id: http://svn.miranda-ng.org/main/trunk@13396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocols/SkypeWeb/src/skype_proto.cpp') diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 9c7acf6922..8cc60a5e28 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -17,6 +17,8 @@ along with this program. If not, see . #include "stdafx.h" +LIST skypeInstances(1, CSkypeProto::CompareAccounts); + CSkypeProto::CSkypeProto(const char* protoName, const TCHAR* userName) : PROTO(protoName, userName), password(NULL) { @@ -67,6 +69,8 @@ PROTO(protoName, userName), password(NULL) //sounds SkinAddNewSoundEx("skype_inc_call", "SkypeWeb", LPGEN("Incoming call sound") ); SkinAddNewSoundEx("skype_call_canceled", "SkypeWeb", LPGEN("Incoming call canceled sound") ); + + skypeInstances.insert(this); } CSkypeProto::~CSkypeProto() @@ -74,6 +78,7 @@ CSkypeProto::~CSkypeProto() delete requestQueue; Netlib_CloseHandle(m_hNetlibUser); m_hNetlibUser = NULL; + skypeInstances.remove(this); } DWORD_PTR CSkypeProto::GetCaps(int type, MCONTACT) @@ -221,6 +226,8 @@ int CSkypeProto::SetStatus(int iNewStatus) } requestQueue->Stop(); + SkypeUnsetTimer(this); + ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)m_iStatus, ID_STATUS_OFFLINE); m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE; @@ -289,6 +296,8 @@ int CSkypeProto::OnPreShutdown(WPARAM, LPARAM) CallService(MS_NETLIB_SHUTDOWN, (WPARAM)m_pollingConnection, 0); if (m_TrouterConnection) CallService(MS_NETLIB_SHUTDOWN, (WPARAM)m_TrouterConnection, 0); + if (m_timer) + SkypeUnsetTimer(this); requestQueue->Stop(); -- cgit v1.2.3