diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-30 18:57:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-30 18:57:14 +0300 |
commit | b362935f54084acecfe8f8a1f60a1fa18ac46d66 (patch) | |
tree | 8d292423e4731bf271074cb2ae5f5b9b65a722eb /include/m_icq.h | |
parent | ec516b756030446b0a6b11604e102f3ec7b03031 (diff) |
obsolete ICQ trash removed from headers
Diffstat (limited to 'include/m_icq.h')
-rw-r--r-- | include/m_icq.h | 101 |
1 files changed, 12 insertions, 89 deletions
diff --git a/include/m_icq.h b/include/m_icq.h index c3a42007d6..0311a93e5a 100644 --- a/include/m_icq.h +++ b/include/m_icq.h @@ -58,85 +58,8 @@ typedef struct { // wParam = (WPARAM)hContact;
#define MS_XSTATUS_SHOWDETAILS "/ShowXStatusDetails"
-//Send an SMS via the ICQ network
-//wParam = (WPARAM)(const char*)szPhoneNumber
-//lParam = (LPARAM)(const char*)szMessage
-//Returns a HANDLE to the send on success, or NULL on failure
-//szPhoneNumber should be the full number with international code and preceeded
-//by a +
-
-//When the server acks the send, an ack will be broadcast:
-// type = ICQACKTYPE_SMS, result = ACKRESULT_SENTREQUEST, lParam = (LPARAM)(char*)szInfo
-//At this point the message is queued to be delivered. szInfo contains the raw
-//XML data of the ack. Here's what I got when I tried:
-//"<sms_response><source>airbornww.com</source><deliverable>Yes</deliverable><network>BT Cellnet, United Kingdom</network><message_id>[my uin]-1-1955988055-[destination phone#, without +]</message_id><messages_left>0</messages_left></sms_response>\r\n"
-
-//Now the hProcess has been deleted. The only way to track which receipt
-//corresponds with which response is to parse the <message_id> field.
-
-//At a (possibly much) later time the SMS will have been delivered. An ack will
-//be broadcast:
-// type = ICQACKTYPE_SMS, result = ACKRESULT_SUCCESS, hProcess = NULL, lParam = (LPARAM)(char*)szInfo
-//Note that the result will always be success even if the send failed, just to
-//save needing to have an attempt at an XML parser in the ICQ module.
-//Here's the szInfo for a success:
-//"<sms_delivery_receipt><message_id>[my uin]-1--1461632229-[dest phone#, without +]</message_id><destination>[dest phone#, without +]</destination><delivered>Yes</delivered><text>[first 20 bytes of message]</text><submition_time>Tue, 30 Oct 2001 22:35:16 GMT</submition_time><delivery_time>Tue, 30 Oct 2001 22:34:00 GMT</delivery_time></sms_delivery_receipt>"
-//And here's a failure:
-//"<sms_delivery_receipt><message_id>[my uin]-1-1955988055-[destination phone#, without leading +]</message_id><destination>[destination phone#, without leading +]</destination><delivered>No</delivered><submition_time>Tue, 23 Oct 2001 23:17:02 GMT</submition_time><error_code>999999</error_code><error><id>15</id><params><param>0</param><param>Multiple message submittion failed</param></params></error></sms_delivery_receipt>"
-
-//SMSes received from phones come through this same ack, again to avoid having
-//an XML parser in the protocol module. Here's one I got:
-//"<sms_message><source>MTN</source><destination_UIN>[UIN of recipient, ie this account]</destination_UIN><sender>[sending phone number, without +]</sender><senders_network>[contains one space, because I sent from ICQ]</senders_network><text>[body of the message]</text><time>Fri, 16 Nov 2001 03:12:33 GMT</time></sms_message>"
-#define ICQACKTYPE_SMS 1001
-#define ICQEVENTTYPE_SMS 2001 //database event type
-#define MS_ICQ_SENDSMS "/SendSMS"
-
-//e-mail express
-//db event added to NULL contact
-//blob format is:
-//ASCIIZ text, usually of the form "Subject: %s\r\n%s"
-//ASCIIZ from name
-//ASCIIZ from e-mail
-#define ICQEVENTTYPE_EMAILEXPRESS 2002 //database event type
-
-//www pager
-//db event added to NULL contact
-//blob format is:
-//ASCIIZ text, usually "Sender IP: xxx.xxx.xxx.xxx\r\n%s"
-//ASCIIZ from name
-//ASCIIZ from e-mail
-#define ICQEVENTTYPE_WEBPAGER 2003 //database event type
-
-//missed message notification
-//db event added to contact's history
-//blob format is:
-//WORD error code
-#define ICQEVENTTYPE_MISSEDMESSAGE 2004 //database event type
-
-
-//for server-side lists, used internally only
-//hProcess = dwSequence
-//lParam = server's error code, 0 for success
-#define ICQACKTYPE_SERVERCLIST 1003
-
-//for rate warning distribution (mainly upload dlg)
-//hProcess = Rate class ID
-//lParam = server's status code
-#define ICQACKTYPE_RATEWARNING 1004
-
-//received Xtraz Notify response
-//hProcess = dwSequence
-//lParam = contents of RES node
-#define ICQACKTYPE_XTRAZNOTIFY_RESPONSE 1005
-
-//received Custom Status details response
-//hProcess = dwSequence
-//lParam = 0
-#define ICQACKTYPE_XSTATUS_RESPONSE 1006
-
-
-//Update user details on server
-//Permited operation types:
+// Update user details on server
+// Permited operation types:
#define CIXT_BASIC 0x0001
#define CIXT_MORE 0x0002
#define CIXT_WORK 0x0004
@@ -147,21 +70,21 @@ typedef struct { #define CIXT_EXTRA 0x0080
#define CIXT_FULL 0x00FF
-//wParam = operationType
+// wParam = operationType
#define PS_CHANGEINFOEX "/ChangeInfoEx"
-//miranda/icqoscar/statusmsgreq event
-//called when our status message is requested
-//wParam = (BYTE)msgType
-//lParam = (DWORD)uin
-//msgType is one of the ICQ_MSGTYPE_GET###MSG constants in icq_constants.h
-//uin is the UIN of the contact requesting our status message
+// miranda/icqoscar/statusmsgreq event
+// called when our status message is requested
+// wParam = (BYTE)msgType
+// lParam = (DWORD)uin
+// msgType is one of the ICQ_MSGTYPE_GET###MSG constants in icq_constants.h
+// uin is the UIN of the contact requesting our status message
#define ME_ICQ_STATUSMSGREQ "/StatusMsgReq"
// Request Custom status details (messages) for specified contact
-//wParam = hContact // request custom status details for this contact
-//lParam = 0
-//return = (int)dwSequence // if successful it is sequence for ICQACKTYPE_XSTATUS_RESPONSE
+// wParam = hContact // request custom status details for this contact
+// lParam = 0
+// return = (int)dwSequence // if successful it is sequence for ICQACKTYPE_XSTATUS_RESPONSE
// 0 failed to request (e.g. auto-request enabled)
// -1 delayed (rate control) - sequence unknown
#define PS_ICQ_REQUESTCUSTOMSTATUS "/RequestXStatusDetails"
|