summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/events.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:46 +0000
committerRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:46 +0000
commit510e81b5dcee4b7655f350bc8fdcb7539d65b7a4 (patch)
tree36ee8fc5a1302225ce0d66e1f2bc772070c891ca /protocols/FacebookRM/src/events.cpp
parent18dd9c187ce62463f30e4009450dd643c65e2514 (diff)
Facebook: Separate (add new type) "Friendship changes" notifications from "Other notifications"
git-svn-id: http://svn.miranda-ng.org/main/trunk@12034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/events.cpp')
-rw-r--r--protocols/FacebookRM/src/events.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/events.cpp b/protocols/FacebookRM/src/events.cpp
index ab8c0a8b71..db5f0fef22 100644
--- a/protocols/FacebookRM/src/events.cpp
+++ b/protocols/FacebookRM/src/events.cpp
@@ -61,6 +61,14 @@ HWND FacebookProto::NotifyEvent(TCHAR* title, TCHAR* info, MCONTACT contact, DWO
SkinPlaySound("OtherEvent");
flags |= NIIF_INFO;
break;
+
+ case FACEBOOK_EVENT_FRIENDSHIP:
+ if (!getByte(FACEBOOK_KEY_EVENT_FRIENDSHIP_ENABLE, DEFAULT_EVENT_FRIENDSHIP_ENABLE))
+ return NULL;
+ mir_snprintf(name, SIZEOF(name), "%s_%s", m_szModuleName, "Friendship");
+ SkinPlaySound("Friendship");
+ flags |= NIIF_INFO;
+ break;
}
if (!getByte(FACEBOOK_KEY_SYSTRAY_NOTIFY, DEFAULT_SYSTRAY_NOTIFY))
@@ -100,7 +108,8 @@ HWND FacebookProto::NotifyEvent(TCHAR* title, TCHAR* info, MCONTACT contact, DWO
REMOVE_FLAG(niif_flags, FACEBOOK_EVENT_CLIENT |
FACEBOOK_EVENT_NEWSFEED |
FACEBOOK_EVENT_NOTIFICATION |
- FACEBOOK_EVENT_OTHER);
+ FACEBOOK_EVENT_OTHER |
+ FACEBOOK_EVENT_FRIENDSHIP);
err.szProto = m_szModuleName;
err.cbSize = sizeof(err);
err.dwInfoFlags = NIIF_INTERN_TCHAR | niif_flags;