diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-27 18:45:52 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-27 18:45:52 +0000 |
commit | 822984e1ca88ec5afaa905b59e8be811dfec4e1d (patch) | |
tree | 02b70ef46605d256bb581e32b1e066729c391c75 /protocols/SkypeWeb/src/skype_contacts.cpp | |
parent | 965897721ef32f0b6150f467b8ea34c53473d749 (diff) |
SkypeWeb: Contacts blocking support.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13200 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_contacts.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index effe3aa395..d1486c09ce 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -273,4 +273,17 @@ int CSkypeProto::OnContactDeleted(MCONTACT hContact, LPARAM) if (hContact && !isChatRoom(hContact))
PushRequest(new DeleteContactRequest(TokenSecret, db_get_sa(hContact, m_szModuleName, SKYPE_SETTINGS_ID)));
return 0;
+}
+
+INT_PTR CSkypeProto::BlockContact(WPARAM hContact, LPARAM)
+{
+ if (IDYES == MessageBox(NULL, TranslateT(" Are you sure?"), TranslateT("Warning"), MB_YESNOCANCEL | MB_ICONQUESTION))
+ SendRequest(new BlockContactRequest(TokenSecret, ptrA(db_get_sa(hContact, m_szModuleName, SKYPE_SETTINGS_ID))));
+ return 0;
+}
+
+INT_PTR CSkypeProto::UnblockContact(WPARAM hContact, LPARAM)
+{
+ SendRequest(new UnblockContactRequest(TokenSecret, ptrA(db_get_sa(hContact, m_szModuleName, SKYPE_SETTINGS_ID))));
+ return 0;
}
\ No newline at end of file |