diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-03-10 10:10:21 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-03-10 10:10:21 +0000 |
commit | 1825a479de6272b60a139d0675162469d8ee1d03 (patch) | |
tree | 9e5e4ffac169937f3b8c22e39114c3d9bd951af3 /protocols/MRA/src | |
parent | a105d0705b4831de7212737072c8cb80f90530ff (diff) |
MRA
Add: support PS_GETUNREADEMAILCOUNT service
git-svn-id: http://svn.miranda-ng.org/main/trunk@8542 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r-- | protocols/MRA/src/MraProto.cpp | 1 | ||||
-rw-r--r-- | protocols/MRA/src/MraProto.h | 2 | ||||
-rw-r--r-- | protocols/MRA/src/Mra_svcs.cpp | 8 |
3 files changed, 11 insertions, 0 deletions
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<CMraProto> 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
|