summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/entities.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-07-05 17:58:47 +0000
committerRobert Pösel <robyer@seznam.cz>2016-07-05 17:58:47 +0000
commitec473b50196a5d04bd0fbcf67f465b5703b5138a (patch)
treea0032b99de071f70fb2ba225f9275365de2c10a3 /protocols/FacebookRM/src/entities.h
parent21811cedec44836942fc07977634c868d9045cf5 (diff)
Facebook: Prepare for showing reaction icons for notifications (needs support in Popup+ and YAPP)
git-svn-id: http://svn.miranda-ng.org/main/trunk@17061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/entities.h')
-rw-r--r--protocols/FacebookRM/src/entities.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/entities.h b/protocols/FacebookRM/src/entities.h
index 8cd50f590b..a12404de74 100644
--- a/protocols/FacebookRM/src/entities.h
+++ b/protocols/FacebookRM/src/entities.h
@@ -110,6 +110,7 @@ struct facebook_notification
std::string text;
std::string link;
std::string id;
+ const char *icon;
time_t time;
bool seen;
HWND hWndPopup;
@@ -120,6 +121,24 @@ struct facebook_notification
this->seen = false;
this->hWndPopup = NULL;
}
+
+ void setIcon(std::string iconUrl)
+ {
+ if (iconUrl == "https://www.facebook.com/rsrc.php/v2/yj/r/6WffvhOaXGY.png")
+ icon = "like";
+ else if (iconUrl == "https://www.facebook.com/rsrc.php/v2/y1/r/RvGKklgAefT.png")
+ icon = "love";
+ else if (iconUrl == "https://www.facebook.com/rsrc.php/v2/yV/r/McJA2ZjdJmf.png")
+ icon = "haha";
+ else if (iconUrl == "https://www.facebook.com/rsrc.php/v2/yL/r/IfsimazVjj4.png")
+ icon = "wow";
+ else if (iconUrl == "https://www.facebook.com/rsrc.php/v2/yH/r/jOeSrGlcPLG.png")
+ icon = "sad";
+ else if (iconUrl == "https://www.facebook.com/rsrc.php/v2/yL/r/IfsimazVjj4.png")
+ icon = "angry";
+ else
+ icon = NULL;
+ }
};
struct facebook_newsfeed