summaryrefslogtreecommitdiff
path: root/plugins/SMS/src/SMSConstans.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2012-12-24 21:30:41 +0000
committerRobert Pösel <robyer@seznam.cz>2012-12-24 21:30:41 +0000
commit367d9f6f71420e4c7ed5f273e04d280655bb3d7a (patch)
treed4bb82414145d3be020ab2b579bcd1947d8b6fa2 /plugins/SMS/src/SMSConstans.h
parent0851c3965879663c41cfe435d1b320ba68cf873a (diff)
SMS plugin adopted (32bit version only)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2831 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SMS/src/SMSConstans.h')
-rw-r--r--plugins/SMS/src/SMSConstans.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/plugins/SMS/src/SMSConstans.h b/plugins/SMS/src/SMSConstans.h
new file mode 100644
index 0000000000..2642a56c7d
--- /dev/null
+++ b/plugins/SMS/src/SMSConstans.h
@@ -0,0 +1,107 @@
+#if !defined(AFX_SMS_CONSTANS_H__F58D13FF_F6F2_476C_B8F0_7B9E9357CF48__INCLUDED_)
+#define AFX_SMS_CONSTANS_H__F58D13FF_F6F2_476C_B8F0_7B9E9357CF48__INCLUDED_
+
+
+
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+
+
+// {CF97FD5D-B911-47a8-AF03-D21968B5B894}
+#define SMS_GUID { 0xcf97fd5d, 0xb911, 0x47a8, { 0xaf, 0x3, 0xd2, 0x19, 0x68, 0xb5, 0xb8, 0x94 } }
+
+
+#define MIN_MIR_VER_VERSION_DWORD PLUGIN_MAKE_VERSION(0,8,0,0)
+
+
+#define PLUGIN_VERSION_DWORD PLUGIN_MAKE_VERSION(0,2,5,3)
+#define PROTOCOL_NAMEA "SMSPlugin"
+#define PROTOCOL_NAMEW TEXT(PROTOCOL_NAMEA)
+#define PROTOCOL_NAME_LEN (sizeof(PROTOCOL_NAMEA)-1)
+#define PROTOCOL_NAME_SIZE sizeof(PROTOCOL_NAMEA)
+#define PROTOCOL_DISPLAY_NAME_ORIG "SMS"
+#define PROTOCOL_DISPLAY_NAME_ORIGW TEXT(PROTOCOL_DISPLAY_NAME_ORIG)
+
+
+
+
+#define TIMEOUT_MSGSEND 60000 // send sms timeout
+#define MIN_SMS_DBEVENT_LEN 4 // äëÿ ôèëüòðàöèè ñîáûòèé àâòîðèçàöèè îò äæàáåð ïëàãèíà
+#define MAX_PHONE_LEN MAX_PATH
+#define PHONES_MIN_COUNT 4 //internal // êîëëè÷åñòâî ýëåìåíòîâ îáÿçàòåëüíî ïðîâåðÿåìûõ ïðè èçâëå÷åíèè email àäðåñà èç èíôû þçåðà
+
+
+
+#define SMS_DEFAULT_
+#define SMS_DEFAULT_SIGNATUREPOS FALSE
+#define SMS_DEFAULT_SHOWACK TRUE
+#define SMS_DEFAULT_USESIGNATURE TRUE
+#define SMS_DEFAULT_AUTOPOP FALSE
+#define SMS_DEFAULT_SAVEWINPOS FALSE
+
+
+
+//
+#define ICQEVENTTYPE_SMSCONFIRMATION 3001
+
+
+//Fonts defenitions
+//#define SRMMMOD "SRMM"
+#define SRMMMOD "TabSRMM_Fonts"
+
+#define FONTF_BOLD 1
+#define FONTF_ITALIC 2
+struct FontOptionsList
+{
+ COLORREF defColour;
+ TCHAR* szDefFace;
+ BYTE defStyle;
+ char defSize;
+}
+
+static fontOptionsList[] = {
+ { RGB(106, 106, 106), _T("Arial"), 0, -12},
+};
+
+
+#define MSGFONTID_MYMSG 0
+#define MSGFONTID_YOURMSG 2
+#define MSGFONTID_MESSAGEAREA 16
+
+
+#define SRMSGSET_BKGCOLOUR "BkgColour"
+#define SRMSGSET_INPBKGCOLOUR "inputbg"
+#define SRMSGDEFSET_BKGCOLOUR GetSysColor(COLOR_WINDOW)
+#define FONTF_BOLD 1
+#define FONTF_ITALIC 2
+
+
+
+//Decleration of functions that used when user hit miranda for new message/confirmation
+int ReadAckSMS(WPARAM wParam,LPARAM lParam);
+int ReadMsgSMS(WPARAM wParam,LPARAM lParam);
+int SendSMSMenuCommand(WPARAM wParam,LPARAM lParam);
+
+
+
+#define SMS_READ "/ReadSms"
+#define SMS_READ_ACK "/ReadSmsAck"
+#define SMS_SEND "/SendSMS"
+#define SMS_SEND_STR L"Send &SMS..."
+#define SMS_SEND_CM_STR L"&SMS Message"
+
+
+static const SERVICE_ITEM siPluginServices[] =
+{
+ { SMS_READ, ReadMsgSMS },
+ { SMS_READ_ACK, ReadAckSMS },
+ { SMS_SEND, SendSMSMenuCommand },
+};
+
+
+
+
+#endif // !defined(AFX_SMS_CONSTANS_H__F58D13FF_F6F2_476C_B8F0_7B9E9357CF48__INCLUDED_)