summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/MRA/src/MraProto.cpp1
-rw-r--r--protocols/MRA/src/MraProto.h2
-rw-r--r--protocols/MRA/src/Mra_svcs.cpp8
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