From 1825a479de6272b60a139d0675162469d8ee1d03 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 10 Mar 2014 10:10:21 +0000 Subject: MRA Add: support PS_GETUNREADEMAILCOUNT service git-svn-id: http://svn.miranda-ng.org/main/trunk@8542 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/src/MraProto.cpp | 1 + protocols/MRA/src/MraProto.h | 2 ++ protocols/MRA/src/Mra_svcs.cpp | 8 ++++++++ 3 files changed, 11 insertions(+) (limited to 'protocols/MRA') diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp index 49a418df6f..6491f7e6a7 100644 --- a/protocols/MRA/src/MraProto.cpp +++ b/protocols/MRA/src/MraProto.cpp @@ -31,6 +31,7 @@ CMraProto::CMraProto(const char* _module, const TCHAR* _displayName) : CreateProtoService(MS_ICQ_SENDSMS, &CMraProto::MraSendSMS); CreateProtoService(PS_SEND_NUDGE, &CMraProto::MraSendNudge); + CreateProtoService(PS_GETUNREADEMAILCOUNT, &CMraProto::GetUnreadEmailCount); if ( ServiceExists(MS_NUDGE_SEND)) m_heNudgeReceived = CreateProtoEvent(PE_NUDGE); diff --git a/protocols/MRA/src/MraProto.h b/protocols/MRA/src/MraProto.h index 7bb9cc97f0..7ef6c92490 100644 --- a/protocols/MRA/src/MraProto.h +++ b/protocols/MRA/src/MraProto.h @@ -124,6 +124,8 @@ struct CMraProto : public PROTO INT_PTR __cdecl MraSendNudge(WPARAM, LPARAM); + INT_PTR __cdecl GetUnreadEmailCount(WPARAM, LPARAM); + INT_PTR __cdecl MraGetAvatarCaps(WPARAM, LPARAM); INT_PTR __cdecl MraGetAvatarInfo(WPARAM, LPARAM); INT_PTR __cdecl MraGetMyAvatar(WPARAM, LPARAM); diff --git a/protocols/MRA/src/Mra_svcs.cpp b/protocols/MRA/src/Mra_svcs.cpp index fdfeb52429..bf3c6912ff 100644 --- a/protocols/MRA/src/Mra_svcs.cpp +++ b/protocols/MRA/src/Mra_svcs.cpp @@ -577,6 +577,14 @@ INT_PTR CMraProto::MraSendNudge(WPARAM hContact, LPARAM lParam) return 1; } +INT_PTR CMraProto::GetUnreadEmailCount(WPARAM wParam, LPARAM lParam) +{ + if ( !m_bLoggedIn ) + return 0; + return m_dwEmailMessagesUnread; +} + + ///////////////////////////////////////////////////////////////////////////////////////// // Avatars -- cgit v1.2.3