From 56239808326cc550d0b1bd45a368e89957e7021b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Oct 2017 16:27:58 +0300 Subject: unused pascal headers removed --- plugins/ExternalAPI/delphi/m_notify.inc | 82 --------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 plugins/ExternalAPI/delphi/m_notify.inc (limited to 'plugins/ExternalAPI/delphi/m_notify.inc') diff --git a/plugins/ExternalAPI/delphi/m_notify.inc b/plugins/ExternalAPI/delphi/m_notify.inc deleted file mode 100644 index 2798ebbf31..0000000000 --- a/plugins/ExternalAPI/delphi/m_notify.inc +++ /dev/null @@ -1,82 +0,0 @@ -{$IFNDEF M_NOTIFY} -{$DEFINE M_NOTIFY} - -{** Miranda Notify Dispatcher ************************************************ -Notify Dispatcher provides common interface to different notification plugins -like osd, popup, ticker etc. -******************************************************************************} - -const -{ Options UI event and service. The same as for miranda options } - ME_NOTIFY_OPT_INITIALISE:PAnsiChar = 'Notify/Opt/Initialise'; - MS_NOTIFY_OPT_ADDPAGE:PAnsiChar = 'Notify/Opt/AddPage'; - -type - PMNOTIFYACTIONINFO = ^TMNOTIFYACTIONINFO; - TMNOTIFYACTIONINFO = record - icon :HICON; - name :array [0..MAXMODULELABELLENGTH-1] of AnsiChar; - service:array [0..MAXMODULELABELLENGTH-1] of AnsiChar; - cookie :dword; - end; - -// Just like miranda pluginLink... This should work faster then services, -// we need some reactivity in notifications. -type - PMNOTIFYLINK = ^TMNOTIFYLINK; - TMNOTIFYLINK = record - // Create a new notification type - Register:function(name:PAnsiChar;icon:HICON):THANDLE;cdecl; - - // Create a new notification object - Create:function(atype:THANDLE):THANDLE;cdecl; - - // Check is handle is a valid notification object - IsValid:function(notify:THANDLE):integer;cdecl; - - // Set/get information about object, or type defaults - _Set:function(notifyORtype:THANDLE;name:PAnsiChar;val:TDBVARIANT):integer;cdecl; - _Get:function(notifyORtype:THANDLE;name:PAnsiChar;val:PDBVARIANT):integer;cdecl; - - // Set/get actions - AddAction :function(notifyORtype:THANDLE;icon:HICON;name:PAnsiChar;service:PAnsiChar;cookie:dword):integer;cdecl; - GetActions:function(notifyORtype:THANDLE;actions:PMNOTIFYACTIONINFO):integer;cdecl; - - // Increment/decrement refer count of notification object. Unreferred objects are destroyed - AddRef :function(notify:THANDLE):integer;cdecl; - Release:function(notify:THANDLE):integer;cdecl; - - // Notify user - Show :procedure(notify:THANDLE);cdecl; - Update:procedure(notify:THANDLE);cdecl; - Remove:procedure(notify:THANDLE);cdecl; - end; - -const -// Get the MNOTIFYLINK struct -// result = (LRESULT)(MNOTIFYLINK* )notifyLink - MS_NOTIFY_GETLINK:PAnsiChar = 'Notify/GetLink'; - -// Hook this to process corresponding actions - ME_NOTIFY_SHOW :PAnsiChar = 'Notify/Show'; - ME_NOTIFY_UPDATE:PAnsiChar = 'Notify/Update'; - ME_NOTIFY_REMOVE:PAnsiChar = 'Notify/Remove'; - -var - notifyLink:PMNOTIFYLINK; - -const -// Common options for Get/Set actions - NFOPT_TYPENAME = 'General/TypeName'; - NFOPT_ICON = 'General/Icon'; - NFOPT_CONTACT = 'General/Contact'; - NFOPT_EVENT = 'General/Event'; - NFOPT_TEXT = 'General/Text'; - NFOPT_TEXTW = 'General/TextW'; - NFOPT_TITLE = 'General/Title'; - NFOPT_TITLEW = 'General/TitleW'; - NFOPT_BACKCOLOR = 'General/BackColor'; - NFOPT_TEXTCOLOR = 'General/TextColor'; - NFOPT_TIMEOUT = 'General/Timeout'; - -{$ENDIF} -- cgit v1.2.3