diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-11-19 19:18:00 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-11-19 19:18:00 +0000 |
commit | d9afe7697ba309f6d78b61adea474942c0b55424 (patch) | |
tree | 5f1c65957f29d0fee1d381859c21ad58b562304b /protocols/FacebookRM/src/constants.h | |
parent | 3000e4130b54028e8b10040fda3d9fc6f7302959 (diff) |
Facebook: distinguish more types of clients and don't reset old client at login/logoff
git-svn-id: http://svn.miranda-ng.org/main/trunk@6940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/constants.h')
-rw-r--r-- | protocols/FacebookRM/src/constants.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/constants.h b/protocols/FacebookRM/src/constants.h index 5d1c6f98a6..8eec0e5586 100644 --- a/protocols/FacebookRM/src/constants.h +++ b/protocols/FacebookRM/src/constants.h @@ -41,8 +41,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define FACEBOOK_SERVER_DOMAIN "facebook.com"
// Facebook clients
-#define FACEBOOK_CLIENT "Facebook"
-#define FACEBOOK_CLIENT_MOBILE "Facebook (Mobile)"
+#define FACEBOOK_CLIENT_WEB "Facebook (website)"
+#define FACEBOOK_CLIENT_MOBILE "Facebook (mobile)"
+#define FACEBOOK_CLIENT_OTHER "Facebook (other)"
+#define FACEBOOK_CLIENT_APP "Facebook App"
+#define FACEBOOK_CLIENT_MESSENGER "Facebook Messenger"
// Limits
#define FACEBOOK_MESSAGE_LIMIT 200000 // this is guessed limit, in reality it is bigger
@@ -137,6 +140,14 @@ enum ContactType { CONTACT_APPROVE = 4 // contact that is asking us for approval of friendship
};
+enum ClientType {
+ CLIENT_WEB = 1, // Facebook website
+ CLIENT_APP = 2, // Facebook mobile application
+ CLIENT_MESSENGER = 3, // Facebook Messenger application
+ CLIENT_OTHER = 4, // Facebook over XMPP
+ CLIENT_MOBILE = 5 // Facebook on unknown mobile client (can't be determined for offline contacts)
+};
+
typedef struct {
const char *name;
const char *id;
|