From aa387fa04aa096d163932d3f5f9711a2f146c6f0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 Feb 2013 19:43:21 +0000 Subject: - PROTO_INTERFACE::GetIcon removed and replaced with the standard implementation; - PS_LOADICON also replaced with the standard function; - ProtoConstructor() & ProtoDestructor() macroses are introduced to simplify protocols' code; - GetIcon() method implementation removed from all protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@3739 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/delphi/m_protoint.inc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'include/delphi') diff --git a/include/delphi/m_protoint.inc b/include/delphi/m_protoint.inc index 5031c1b3e7..0b41d5450b 100644 --- a/include/delphi/m_protoint.inc +++ b/include/delphi/m_protoint.inc @@ -30,7 +30,7 @@ type EV_PROTO_ONEXIT, EV_PROTO_ONRENAME, EV_PROTO_ONOPTIONS, - EV_PROTO_ONERASE, + EV_PROTO_ONERASE, EV_PROTO_ONMENU, EV_PROTO_ONCONTACTDELETED, EV_PROTO_DBSETTINGSCHANGED); @@ -46,17 +46,11 @@ type iDesiredStatus:int; iXStatus :int; iVersion :int; // version 2 or higher designate support of Unicode services -{ - bOldProto :Bool; - szPhysName :PAnsiChar; - szProtoName :PAnsiChar; - tszUserName :TChar; -} + tszUserName :TChar; szProtoName :PAnsiChar; szModuleName :PAnsiChar; - - reserved :array [0..39] of dword; + hProtoIcon :THandle; AddToList :function(intf:PPROTO_INTERFACE;flags:int; var psr:TPROTOSEARCHRESULT):THANDLE; cdecl; AddToListByEvent:function(intf:PPROTO_INTERFACE;flags:int; iContact:int; hDbEvent:THANDLE):THANDLE; cdecl; @@ -74,7 +68,6 @@ type FileResume:function(intf:PPROTO_INTERFACE;hTransfer:THANDLE;var action:Integer; var szFilename:PROTOCHAR):int; cdecl; GetCaps:function(intf:PPROTO_INTERFACE;_type:int):dword_ptr; cdecl; - GetIcon:function(intf:PPROTO_INTERFACE;iconIndex:int):HICON; cdecl; GetInfo:function(intf:PPROTO_INTERFACE;hContact:THANDLE;infoType:int):int; cdecl; SearchBasic :function(intf:PPROTO_INTERFACE;id:PAnsiChar):THANDLE; cdecl; -- cgit v1.2.3