From cb4a46e7fbe62d788e66ed6121c717a2d22a4d7c Mon Sep 17 00:00:00 2001 From: watcherhd Date: Thu, 21 Apr 2011 14:14:52 +0000 Subject: svn.miranda.im is moving to a new home! git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@7 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- irc_mod/m_xstatus.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 irc_mod/m_xstatus.h (limited to 'irc_mod/m_xstatus.h') diff --git a/irc_mod/m_xstatus.h b/irc_mod/m_xstatus.h new file mode 100644 index 0000000..82237ad --- /dev/null +++ b/irc_mod/m_xstatus.h @@ -0,0 +1,39 @@ +// Display XStatus detail (internal use only) +// wParam=(WPARAM)hContact; +#define MS_XSTATUS_SHOWDETAILS "/ShowXStatusDetails" + +//received Custom Status details response +//hProcess=dwSequence +//lParam=0 +#define ACKTYPE_XSTATUS_RESPONSE 1006 + +/* Custom Status helper API * + - to set custom status message & title use PS_ICQ_GETCUSTOMSTATUS to obtain + DB settings and write values to them (UTF-8 strings best). + - custom messages for each user supported - ME_ICQ_STATUSMSGREQ with type MTYPE_SCRIPT_NOTIFY + */ +// Sets owner current custom status +//wParam = (int)N // custom status id (1-32) +//lParam = 0 +//return = N (id of status set) or 0 (failed - probably bad params) +#define PS_SETCUSTOMSTATUS "/SetXStatus" + +// Retrieves specified custom status icon +//wParam = (int)N // custom status id (1-32), 0 = my current custom status +//lParam = 0 +//return = HICON // custom status icon (use DestroyIcon to release resources) +#define PS_GETCUSTOMSTATUSICON "/GetXStatusIcon" + +// Get Custom status DB field names & current owner custom status +//wParam = (char**)szDBTitle // will receive title DB setting name (do not free) +//lParam = (char**)szDBMsg // will receive message DB setting name +//return = N // current custom status id if successful, 0 otherwise +#define PS_GETCUSTOMSTATUS "/GetXStatus" + +// 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 + // 0 failed to request (e.g. auto-request enabled) + // -1 delayed (rate control) - sequence unknown +#define PS_REQUESTCUSTOMSTATUS "/RequestXStatusDetails" -- cgit v1.2.3