diff options
Diffstat (limited to 'protocols/Icq10/src/proto.cpp')
-rw-r--r-- | protocols/Icq10/src/proto.cpp | 55 |
1 files changed, 11 insertions, 44 deletions
diff --git a/protocols/Icq10/src/proto.cpp b/protocols/Icq10/src/proto.cpp index 5f47b960e4..afff41cd90 100644 --- a/protocols/Icq10/src/proto.cpp +++ b/protocols/Icq10/src/proto.cpp @@ -80,6 +80,15 @@ void CIcqProto::OnShutdown() { } +void CIcqProto::OnContactDeleted(MCONTACT hContact) +{ + auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, ICQ_API_SERVER "/buddylist/removeBuddy"); + pReq << CHAR_PARAM("f", "json") << CHAR_PARAM("aimsid", m_aimsid) << INT_PARAM("buddy", getDword(hContact, "UIN")) + << CHAR_PARAM("r", pReq->m_reqId) << INT_PARAM("allGroups", 1); + pReq->flags |= NLHRF_NODUMPSEND; + Push(pReq); +} + //////////////////////////////////////////////////////////////////////////////////////// // PS_AddToList - adds a contact to the contact list @@ -225,7 +234,8 @@ INT_PTR CIcqProto::GetCaps(int type, MCONTACT hContact) int CIcqProto::GetInfo(MCONTACT hContact, int infoType) { - return 1; // Failure + RetrieveUserInfo(hContact); + return 0; } //////////////////////////////////////////////////////////////////////////////////////// @@ -245,49 +255,6 @@ HANDLE CIcqProto::SearchBasic(const wchar_t *pszSearch) } //////////////////////////////////////////////////////////////////////////////////////// -// SearchByEmail - searches the contact by its e-mail - -HANDLE CIcqProto::SearchByEmail(const wchar_t *email) -{ - return nullptr; // Failure -} - -//////////////////////////////////////////////////////////////////////////////////////// -// PS_SearchByName - searches the contact by its first or last name, or by a nickname - -HANDLE CIcqProto::SearchByName(const wchar_t *nick, const wchar_t *firstName, const wchar_t *lastName) -{ - return nullptr; // Failure -} - -HWND CIcqProto::CreateExtendedSearchUI(HWND parent) -{ - return nullptr; // Failure -} - -HWND CIcqProto::SearchAdvanced(HWND hwndDlg) -{ - return nullptr; // Failure -} - -//////////////////////////////////////////////////////////////////////////////////////// -// RecvContacts - -int CIcqProto::RecvContacts(MCONTACT hContact, PROTORECVEVENT* pre) -{ - return 0; -} - -//////////////////////////////////////////////////////////////////////////////////////// -// SendContacts - -int CIcqProto::SendContacts(MCONTACT hContact, int, int nContacts, MCONTACT *hContactsList) -{ - // Exit with Failure - return 0; -} - -//////////////////////////////////////////////////////////////////////////////////////// // SendFile - sends a file HANDLE CIcqProto::SendFile(MCONTACT hContact, const wchar_t* szDescription, wchar_t** ppszFiles) |