diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-06-05 07:37:27 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-06-05 07:37:27 +0000 |
commit | 7cdb740b6e7599cb626deb2161aa3ab07b252e51 (patch) | |
tree | aeaf154b2c91e0070d3bf8465dec0673ffd7edb2 /protocols/FacebookRM/src/proto.cpp | |
parent | 894d04d09e39156eb2264fb49f2b24035bb16d09 (diff) |
Facebook: New feature to notify "On this day" posts at login; version bump
Right now it notify at every login, max. last 20 posts. In future I'll probably add more options to limit number of posts and do it only one per day, etc.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 4910eba167..a7184d4ff0 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -1055,6 +1055,17 @@ void FacebookProto::InitPopups() ppc.colorText = RGB(0, 0, 0); // black ppc.iSeconds = 0; popupClasses.push_back(Popup_RegisterClass(&ppc)); + + // On this day + mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("On this day posts")); + mir_snprintf(name, "%s_%s", m_szModuleName, "OnThisDay"); + ppc.ptszDescription = desc; + ppc.pszName = name; + ppc.hIcon = Skin_GetIconByHandle(GetIconHandle("newsfeed")); + ppc.colorBack = RGB(255, 255, 255); // white + ppc.colorText = RGB(0, 0, 0); // black + ppc.iSeconds = 0; + popupClasses.push_back(Popup_RegisterClass(&ppc)); } /** @@ -1092,9 +1103,11 @@ void FacebookProto::InitHotkeys() void FacebookProto::InitSounds() { SkinAddNewSoundExT("Notification", m_tszUserName, LPGENT("Notification")); - SkinAddNewSoundExT("NewsFeed", m_tszUserName, LPGENT("News Feed")); - SkinAddNewSoundExT("OtherEvent", m_tszUserName, LPGENT("Other Event")); - SkinAddNewSoundExT("Friendship", m_tszUserName, LPGENT("Friendship Event")); + SkinAddNewSoundExT("NewsFeed", m_tszUserName, LPGENT("Newsfeed event")); + SkinAddNewSoundExT("OtherEvent", m_tszUserName, LPGENT("Other event")); + SkinAddNewSoundExT("Friendship", m_tszUserName, LPGENT("Friendship event")); + SkinAddNewSoundExT("Ticker", m_tszUserName, LPGENT("Ticker event")); + SkinAddNewSoundExT("OnThisDay", m_tszUserName, LPGENT("On this day event")); } /** |