summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/constants.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-09-01 21:44:45 +0000
committerRobert Pösel <robyer@seznam.cz>2016-09-01 21:44:45 +0000
commit756ce057cf3aecb1220daebadb3f728f51ef5b5e (patch)
treeecf3dab8ccdc71bbfed18452077ed2769f6a7098 /protocols/FacebookRM/src/constants.h
parent6c13e88bbfd39fe43ac732dde41672aead181819 (diff)
Facebook: Rework event notify type from defines and flags to enum
git-svn-id: http://svn.miranda-ng.org/main/trunk@17240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/constants.h')
-rw-r--r--protocols/FacebookRM/src/constants.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/protocols/FacebookRM/src/constants.h b/protocols/FacebookRM/src/constants.h
index dd389df257..058d0defec 100644
--- a/protocols/FacebookRM/src/constants.h
+++ b/protocols/FacebookRM/src/constants.h
@@ -105,15 +105,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DEFAULT_EVENT_TICKER_ENABLE 0
#define DEFAULT_EVENT_ON_THIS_DAY_ENABLE 0
-// Event flags
-#define FACEBOOK_EVENT_CLIENT 0x10000000 // Facebook client errors
-#define FACEBOOK_EVENT_NEWSFEED 0x20000000 // Facebook newsfeed (wall) message
-#define FACEBOOK_EVENT_NOTIFICATION 0x40000000 // Facebook new notification
-#define FACEBOOK_EVENT_OTHER 0x80000000 // Facebook other event (poke sent, status update, ...)
-#define FACEBOOK_EVENT_FRIENDSHIP 0x01000000 // Facebook friendship event
-#define FACEBOOK_EVENT_TICKER 0x02000000 // Facebook ticker message
-#define FACEBOOK_EVENT_ON_THIS_DAY 0x04000000 // Facebook on this day posts
-
// Send message return values
#define SEND_MESSAGE_OK 0
#define SEND_MESSAGE_ERROR 1
@@ -197,6 +188,16 @@ enum MessageType {
THREAD_IMAGE = 8,
};
+enum EventType {
+ EVENT_CLIENT = 1, // Client error
+ EVENT_NEWSFEED = 2, // Newsfeed (wall) message
+ EVENT_NOTIFICATION = 3, // New notification
+ EVENT_OTHER = 4, // Other event (poke sent, status update, ...)
+ EVENT_FRIENDSHIP = 5, // Friendship event
+ EVENT_TICKER = 6, // Ticker message
+ EVENT_ON_THIS_DAY = 7, // On this day post (memories)
+};
+
enum ParticipantRole {
ROLE_ME = 0,
ROLE_FRIEND = 1,