summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/constants.h
diff options
context:
space:
mode:
authorFishbone <fishbone@miranda-ng.org>2013-06-02 16:19:21 +0000
committerFishbone <fishbone@miranda-ng.org>2013-06-02 16:19:21 +0000
commitab7e0b08fa8c31cf1d468ab4b3c660e2b1836811 (patch)
tree52977603ea0f431adff16573d3d5b46a95843c7f /protocols/WhatsApp/src/constants.h
parent8320783f99419db1e40346fdb292c19ee008948b (diff)
Added WhatsApp-protocol
git-svn-id: http://svn.miranda-ng.org/main/trunk@4861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/constants.h')
-rw-r--r--protocols/WhatsApp/src/constants.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/constants.h b/protocols/WhatsApp/src/constants.h
new file mode 100644
index 0000000000..5ef23bb98b
--- /dev/null
+++ b/protocols/WhatsApp/src/constants.h
@@ -0,0 +1,62 @@
+#if !defined(CONSTANTS_H)
+#define CONSTANTS_H
+
+// Version management
+#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0, 0, 2, 0)
+#define __PRODUCT_DWORD PLUGIN_MAKE_VERSION(0, 9, 14, 0)
+#define __VERSION_STRING "0.0.2.0"
+#define __PRODUCT_STRING "0.9.14.0"
+#define __VERSION_VS_FILE 0,0,2,
+#define __VERSION_VS_PROD 0,9,14,0
+#define __VERSION_VS_FILE_STRING "0, 0, 2, 0"
+#define __VERSION_VS_PROD_STRING "0, 9, 14, 0"
+
+#define PRODUCT_NAME _T("WhatsApp Protocol")
+
+// Limits
+#define WHATSAPP_GROUP_NAME_LIMIT 420
+
+// Defaults
+#define DEFAULT_MAP_STATUSES 0
+#define DEFAULT_SYSTRAY_NOTIFY 0
+
+#define DEFAULT_EVENT_NOTIFICATIONS_ENABLE 1
+#define DEFAULT_EVENT_FEEDS_ENABLE 1
+#define DEFAULT_EVENT_OTHER_ENABLE 1
+#define DEFAULT_EVENT_CLIENT_ENABLE 1
+#define DEFAULT_EVENT_COLBACK 0x00ffffff
+#define DEFAULT_EVENT_COLTEXT 0x00000000
+#define DEFAULT_EVENT_TIMEOUT_TYPE 0
+#define DEFAULT_EVENT_TIMEOUT -1
+
+// #TODO Move constants below to WhatsAPI++
+
+// WhatsApp
+#define WHATSAPP_LOGIN_SERVER "c.whatsapp.net"
+#define ACCOUNT_USER_AGENT "WhatsApp/2.8.3 iPhone_OS/5.0.1 Device/Unknown_(iPhone4,1)"
+#define ACCOUNT_URL_CODEREQUEST "https://r.whatsapp.net/v1/code.php"
+#define ACCOUNT_URL_CODEREQUESTV2 "https://v.whatsapp.net/v2/code"
+#define ACCOUNT_URL_REGISTERREQUEST "https://r.whatsapp.net/v1/register.php"
+#define ACCOUNT_URL_REGISTERREQUESTV2 "https://v.whatsapp.net/v2/register"
+#define ACCOUNT_URL_UPLOADREQUEST "https://mms.whatsapp.net/client/iphone/upload.php"
+#define ACCOUNT_URL_EXISTSV2 "https://v.whatsapp.net/v2/exist"
+
+// WhatsApp Nokia 302 S40
+#define ACCOUNT_RESOURCE "S40-2.3.53"
+#define ACCOUNT_USER_AGENT_REGISTRATION "WhatsApp/2.3.53 S40Version/14.26 Device/Nokia302"
+#define ACCOUNT_TOKEN_PREFIX1 "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk"
+#define ACCOUNT_TOKEN_PREFIX2 "1354754753509"
+
+#define WHATSAPP_RECV_MESSAGE 1
+#define WHATSAPP_SEND_MESSAGE 2
+
+#define MAX_SILENT_INTERVAL 210
+
+// Event flags
+#define WHATSAPP_EVENT_CLIENT 0x10000000 // WhatsApp error or info message
+#define WHATSAPP_EVENT_NOTIFICATION 0x40000000 // WhatsApp notification
+#define WHATSAPP_EVENT_OTHER 0x80000000 // WhatsApp other event - friend requests/new messages
+
+#define IS_CHAT 1
+
+#endif \ No newline at end of file