summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-04-25 16:04:06 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-04-25 16:04:06 +0000
commit3bf8dd214686baa698ec98c16d49f320d6f4eee8 (patch)
treed3786a64c6929919225ed2086deb8e59008f6a8f /protocols/SkypeWeb/src/skype_proto.cpp
parentab53e157ddc1eddbfa072d43d62d244443f41815 (diff)
SkypeWeb: database optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16765 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index 2032ab0c6b..fbe2cfd705 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -26,7 +26,8 @@ CSkypeProto::CSkypeProto(const char* protoName, const TCHAR* userName) :
m_bThreadsTerminated(0),
m_TrouterConnection(0),
m_pollingConnection(0),
- m_opts(this)
+ m_opts(this),
+ Contacts(this)
{
InitNetwork();
@@ -156,7 +157,7 @@ int CSkypeProto::Authorize(MEVENT hDbEvent)
if (hContact == INVALID_CONTACT_ID)
return 1;
- PushRequest(new AuthAcceptRequest(li, CID(this, hContact)));
+ PushRequest(new AuthAcceptRequest(li, Contacts[hContact]));
return 0;
}
@@ -166,7 +167,7 @@ int CSkypeProto::AuthDeny(MEVENT hDbEvent, const TCHAR*)
if (hContact == INVALID_CONTACT_ID)
return 1;
- PushRequest(new AuthDeclineRequest(li, CID(this, hContact)));
+ PushRequest(new AuthDeclineRequest(li, Contacts[hContact]));
return 0;
}
@@ -180,7 +181,7 @@ int CSkypeProto::AuthRequest(MCONTACT hContact, const TCHAR *szMessage)
if (hContact == INVALID_CONTACT_ID)
return 1;
- PushRequest(new AddContactRequest(li, CID(this, hContact), T2Utf(szMessage)));
+ PushRequest(new AddContactRequest(li, Contacts[hContact], T2Utf(szMessage)));
return 0;
}
@@ -188,7 +189,7 @@ int CSkypeProto::GetInfo(MCONTACT hContact, int)
{
if (!isChatRoom(hContact))
PushRequest(
- new GetProfileRequest(li, CID(this, hContact)),
+ new GetProfileRequest(li, Contacts[hContact]),
&CSkypeProto::LoadProfile);
return 0;
}
@@ -265,7 +266,7 @@ int CSkypeProto::SetStatus(int iNewStatus)
int CSkypeProto::UserIsTyping(MCONTACT hContact, int type)
{
- SendRequest(new SendTypingRequest(CID(this, hContact), type, li));
+ SendRequest(new SendTypingRequest(Contacts[hContact], type, li));
return 0;
}