📄 testplugin_tlb.pas
字号:
unit TestPlugin_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// PASTLWTR : 1.2
// File generated on 5/24/2006 12:49:40 PM from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\source\exodus\exodus\plugins\Test\TestPlugin.tlb (1)
// LIBID: {78FCE930-6D97-4E80-A634-59897D6E8BB2}
// LCID: 0
// Helpfile:
// HelpString: TestPlugin Library
// DepndLst:
// (1) v1.0 Exodus, (C:\source\exodus\exodus\Exodus.exe)
// (2) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Exodus_TLB, Graphics, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
TestPluginMajorVersion = 1;
TestPluginMinorVersion = 0;
LIBID_TestPlugin: TGUID = '{78FCE930-6D97-4E80-A634-59897D6E8BB2}';
IID_ITesterPlugin: TGUID = '{AE5CDE9B-CFD3-4BE9-9855-C1A1BD52A089}';
CLASS_TesterPlugin: TGUID = '{DE6D1148-AC93-412F-AF4B-F26C24136D2C}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
ITesterPlugin = interface;
ITesterPluginDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
TesterPlugin = IExodusPlugin;
// *********************************************************************//
// Interface: ITesterPlugin
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {AE5CDE9B-CFD3-4BE9-9855-C1A1BD52A089}
// *********************************************************************//
ITesterPlugin = interface(IExodusPlugin)
['{AE5CDE9B-CFD3-4BE9-9855-C1A1BD52A089}']
end;
// *********************************************************************//
// DispIntf: ITesterPluginDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {AE5CDE9B-CFD3-4BE9-9855-C1A1BD52A089}
// *********************************************************************//
ITesterPluginDisp = dispinterface
['{AE5CDE9B-CFD3-4BE9-9855-C1A1BD52A089}']
procedure Startup(const ExodusController: IExodusController); dispid 1;
procedure Shutdown; dispid 2;
procedure Process(const xpath: WideString; const Event: WideString; const XML: WideString); dispid 3;
procedure NewChat(const jid: WideString; const Chat: IExodusChat); dispid 4;
procedure NewRoom(const jid: WideString; const Room: IExodusChat); dispid 5;
function NewIM(const jid: WideString; var Body: WideString; var Subject: WideString;
const XTags: WideString): WideString; dispid 8;
procedure Configure; dispid 12;
procedure MenuClick(const ID: WideString); dispid 201;
procedure MsgMenuClick(const ID: WideString; const jid: WideString; var Body: WideString;
var Subject: WideString); dispid 202;
procedure NewOutgoingIM(const jid: WideString; const InstantMsg: IExodusChat); dispid 203;
procedure OnMenuItemClick(const menuID: WideString; const XML: WideString); dispid 255;
end;
// *********************************************************************//
// The Class CoTesterPlugin provides a Create and CreateRemote method to
// create instances of the default interface IExodusPlugin exposed by
// the CoClass TesterPlugin. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoTesterPlugin = class
class function Create: IExodusPlugin;
class function CreateRemote(const MachineName: string): IExodusPlugin;
end;
implementation
uses ComObj;
class function CoTesterPlugin.Create: IExodusPlugin;
begin
Result := CreateComObject(CLASS_TesterPlugin) as IExodusPlugin;
end;
class function CoTesterPlugin.CreateRemote(const MachineName: string): IExodusPlugin;
begin
Result := CreateRemoteComObject(MachineName, CLASS_TesterPlugin) as IExodusPlugin;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -