You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
247 lines
8.4 KiB
PHTML
247 lines
8.4 KiB
PHTML
const
|
|
APIversion = 4;
|
|
|
|
// whatlist
|
|
PL_ROSTER =1;
|
|
PL_VISIBLELIST =2;
|
|
PL_INVISIBLELIST =3;
|
|
PL_TEMPVISIBLELIST =4;
|
|
PL_IGNORELIST =5;
|
|
PL_DB =6;
|
|
PL_NIL =7; // not in list
|
|
|
|
// connection state
|
|
PCS_DISCONNECTED =1;
|
|
PCS_CONNECTED =2;
|
|
PCS_CONNECTING =3;
|
|
|
|
// whatwindow
|
|
PW_ROSTER =1;
|
|
PW_CHAT =2;
|
|
PW_PREFERENCES =3;
|
|
|
|
// status
|
|
PS_ONLINE =0;
|
|
PS_OCCUPIED =1;
|
|
PS_DND =2;
|
|
PS_NA =3;
|
|
PS_AWAY =4;
|
|
PS_F4C =5; // free for chat
|
|
PS_OFFLINE =6;
|
|
PS_UNKNOWN =7;
|
|
PS_EVIL =8;
|
|
PS_DEPRESSION =9;
|
|
|
|
// visibility
|
|
PV_INVISIBLE =0;
|
|
PV_PRIVACY =1;
|
|
PV_NORMAL =2;
|
|
PV_ALL =3;
|
|
PV_CL =4;
|
|
|
|
|
|
// messages
|
|
PM_GET =1; // asking data
|
|
PM_DATA =2; // posting datas (reply)
|
|
PM_EVENT =3; // event notification
|
|
PM_ABORT =4; // abort event (reply)
|
|
PM_CMD =5; // exec command
|
|
PM_ACK =6; // ack to request (reply)
|
|
PM_ERROR =7; // error (reply)
|
|
|
|
// events
|
|
PE_INITIALIZE =01;
|
|
PE_FINALIZE =02;
|
|
PE_PREFERENCES =03;
|
|
PE_CONNECTED =04;
|
|
PE_DISCONNECTED =05;
|
|
PE_MSG_GOT =06;
|
|
PE_MSG_SENT =07;
|
|
PE_CONTACTS_GOT =08;
|
|
PE_CONTACTS_SENT =09;
|
|
PE_URL_GOT =10;
|
|
PE_URL_SENT =11;
|
|
PE_ADDEDYOU_GOT =12;
|
|
PE_ADDEDYOU_SENT =13;
|
|
PE_AUTHREQ_GOT =14;
|
|
PE_AUTHREQ_SENT =15;
|
|
PE_AUTH_GOT =16;
|
|
PE_AUTH_SENT =17;
|
|
PE_AUTHDENIED_GOT =18;
|
|
PE_AUTHDENIED_SENT =19;
|
|
PE_GCARD_GOT =20;
|
|
PE_GCARD_SENT =21;
|
|
PE_AUTOMSG_GOT =22;
|
|
PE_AUTOMSG_SENT =23;
|
|
PE_AUTOMSG_REQ_GOT =24;
|
|
PE_AUTOMSG_REQ_SENT =25;
|
|
PE_EMAILEXP_GOT =26;
|
|
PE_EMAILEXP_SENT =27;
|
|
PE_LIST_ADD =28;
|
|
PE_LIST_REMOVE =29;
|
|
PE_STATUS_CHANGED =30;
|
|
PE_USERINFO_CHANGED =31;
|
|
PE_VISIBILITY_CHANGED =32;
|
|
PE_WEBPAGER_GOT =33;
|
|
PE_WEBPAGER_SENT =34;
|
|
PE_FROM_MIRABILIS =35;
|
|
PE_UPDATE_INFO =36;
|
|
PE_XSTATUSMSG_SENDING = 223;
|
|
PE_XSTATUS_REQ_GOT = 224;
|
|
|
|
PE_SELECTTAB =50;
|
|
PE_DESELECTTAB =51;
|
|
PE_CLOSETAB =52;
|
|
PE_SELECTPAGE =53;
|
|
PE_DESELECTPAGE =54;
|
|
PE_CLOSEPAGE =55;
|
|
|
|
PE_CONTACTMENUCLICK = 201;
|
|
|
|
PE_PROPERTIES_CHANGED = 230;
|
|
|
|
|
|
PE_QUIT =255;
|
|
// get
|
|
PG_USER =01;
|
|
PG_CONTACTINFO =02;
|
|
PG_DISPLAYED_NAME =03;
|
|
PG_TIME =04;
|
|
PG_LIST =05;
|
|
PG_NOF_UINLISTS =06;
|
|
PG_UINLIST =07;
|
|
PG_AWAYTIME =08;
|
|
PG_ANDRQ_PATH =09;
|
|
PG_USER_PATH =10;
|
|
PG_ANDRQ_VER =11;
|
|
PG_ANDRQ_VER_STR =12;
|
|
PG_USERTIME =13;
|
|
PG_CONNECTIONSTATE =14;
|
|
PG_WINDOW =15;
|
|
PG_AUTOMSG =16;
|
|
// Rapid D
|
|
PG_TRANSLATE = 101;
|
|
PG_THEME_PIC = 102;
|
|
PG_PREF_VALUE = 103;
|
|
|
|
PG_STATUS = 110; // Out - 1) byte - status 2) byte - visibility 3) byte - Xstatus 4) string - StatusStr 5) string - statusDesc
|
|
PG_XSTATUS = 111; // In - byte - number of XStatus (if $FF - current); Out - 1)byte- number 2)string - StatusStr 3) string - statusDesc
|
|
|
|
//\\
|
|
{ Shyr }
|
|
PG_CHAT_UIN =201;
|
|
PG_CHAT_XYZ =202;
|
|
{ / Shyr }
|
|
PG_RNQ_BUILD =211; // Out - 1) int - Build num 2) dt - BuildTime
|
|
|
|
// acks
|
|
PA_OK =01;
|
|
|
|
// errors
|
|
PERR_ERROR =01;
|
|
PERR_BAD_REQ =02;
|
|
PERR_NOUSER =03;
|
|
PERR_UNEXISTENT =04;
|
|
PERR_FAILED_FOR =05;
|
|
PERR_UNK_REQ =06;
|
|
|
|
// commands
|
|
PC_SEND_MSG =01;
|
|
PC_SEND_CONTACTS =02;
|
|
PC_SEND_ADDEDYOU =03;
|
|
PC_LIST_ADD =04;
|
|
PC_LIST_REMOVE =05;
|
|
PC_SET_STATUS =06;
|
|
PC_SET_VISIBILITY =07;
|
|
PC_QUIT =08;
|
|
PC_CONNECT =09;
|
|
PC_DISCONNECT =10;
|
|
PC_SET_AUTOMSG =11;
|
|
PC_SEND_AUTOMSG_REQ =12;
|
|
|
|
PC_TAB_ADD =20;
|
|
PC_TAB_MODIFY =21;
|
|
PC_TAB_DELETE =22;
|
|
// Rapid D
|
|
PC_PLAYSOUND = 101;
|
|
PC_PLAYSOUNDFN = 102;
|
|
PC_RELOAD_THEME = 107;
|
|
PC_RELOAD_LANG = 108;
|
|
|
|
PC_ADD_MSG = 111; // (uin : Integer, time: TDateTime, msg : String)
|
|
PC_ADD_TO_INPUT = 112; // (msg : String)
|
|
PC_POPUP_ADD = 114; // (bitmap : HBITMAP; secondsToShow : Integer)
|
|
PC_SHOWINFO = 115; // Open Info about... (uid : String)
|
|
PC_OPENCHAT = 116; // Open chat with... (uid : String)
|
|
|
|
PC_SET_XSTATUS = 206;
|
|
//\\
|
|
|
|
PC_ADDBUTTON = 201;
|
|
PC_MODIFY_BUTTON = 202;
|
|
PC_DELBUTTON = 203;
|
|
|
|
PC_ADDCONTACTMENU = 213;
|
|
PC_MODIFYCONTACTMENU= 214;
|
|
PC_DELETECONTACTMENU= 215;
|
|
|
|
type
|
|
TpluginFun=function(data:pointer):pointer; stdcall;
|
|
TpluginFunC=function(data:pointer):pointer; cdecl;
|
|
|
|
const
|
|
RQFM_DISABLED = 0001;
|
|
RQFM_HIDDEN = 0002;
|
|
RQFM_UPD_CAPTION = $0100;
|
|
RQFM_UPD_HINT = $0200;
|
|
RQFM_UPD_ICON = $0400;
|
|
RQFM_UPD_ENABLE = $0800;
|
|
RQFM_UPD_VISIBLE = $1000;
|
|
|
|
type
|
|
PCLISTMENUITEM = ^TCLISTMENUITEM;
|
|
{ TCLISTMENUITEM = record
|
|
cbSize: Integer; // size in bytes of this structure
|
|
pszName: PChar; // text of the menu item
|
|
pszHint: PChar; // text of the menu item hint
|
|
flags: DWORD;
|
|
position: Integer; // approx position on the menu, lower numbers go nearer the top
|
|
hIcon: HICON; // icon to put by the item, if this was *not* loaded from
|
|
// a resource, you can delete it straight after the call
|
|
// pszService: PChar; // name of the service to call when the service is clicked
|
|
pszPopupName: PChar;// name of the popup menu that this item is on, if this
|
|
// is NULL the iteem is on the root of the menu
|
|
popupPosition: Integer; // position of the popup menu on the root menu, ignored
|
|
// if pszPopupName is NULL(0) or if the popup menu already exists
|
|
hotKey: DWORD; // keyboard accelerator, same as lParam of WM_HOTKEY, 0 for none
|
|
// pszContactOwner: PChar; // contact menus only, the protocol module that owns
|
|
// the contacts to which this to which this menu item
|
|
// applies, NULL(0) if it applies to all contacts.
|
|
// if it applies to multiple but not all protocols
|
|
// add multiple menu items or use ME_CLIST_PREBUILDCONTACTMENU
|
|
end;
|
|
}
|
|
TCLISTMENUITEM = record
|
|
cbSize: Integer; // size in bytes of this structure
|
|
pszName: PAnsiChar; // text of the menu item
|
|
pszHint: PAnsiChar; // text of the menu item hint
|
|
flags: DWORD;
|
|
position: Integer; // approx position on the menu, lower numbers go nearer the top
|
|
hIcon: HICON; // icon to put by the item, if this was *not* loaded from
|
|
// a resource, you can delete it straight after the call
|
|
Proc : Pointer; // Event
|
|
// pszService: PChar; // name of the service to call when the service is clicked
|
|
pszPopupName: PAnsiChar;// name of the popup menu that this item is on, if this
|
|
// is NULL the iteem is on the root of the menu
|
|
popupPosition: Integer; // position of the popup menu on the root menu, ignored
|
|
// if pszPopupName is NULL(0) or if the popup menu already exists
|
|
hotKey: DWORD; // keyboard accelerator, same as lParam of WM_HOTKEY, 0 for none
|
|
// pszContactOwner: PChar; // contact menus only, the protocol module that owns
|
|
// the contacts to which this to which this menu item
|
|
// applies, NULL(0) if it applies to all contacts.
|
|
// if it applies to multiple but not all protocols
|
|
// add multiple menu items or use ME_CLIST_PREBUILDCONTACTMENU
|
|
pszPic: PAnsiChar; // PicName
|
|
end;
|
|
|