iNotes_TLB.pas
上传用户:wxp200602
上传日期:2018-04-17
资源大小:172k
文件大小:21k
- unit iNotes_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 : $Revision: 1.88 $
- // File generated on 00-2-11 2:34:17 from Type Library described below.
- // *************************************************************************//
- // NOTE:
- // Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
- // which return objects that may need to be explicitly created via a function
- // call prior to any access via the property. These items have been disabled
- // in order to prevent accidental use from within the object inspector. You
- // may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
- // removing them from the $IFDEF blocks. However, such items must still be
- // programmatically created via a method of the appropriate CoClass before
- // they can be used.
- // ************************************************************************ //
- // Type Lib: C:InetpubwwwrootiNotesScriptiNotesMailiNotesMail.tlb (1)
- // IIDLCID: {3B996361-D2CB-11D3-9D57-0080C8E7C747}
- // Helpfile:
- // DepndLst:
- // (1) v2.0 stdole, (C:WINDOWSSYSTEMSTDOLE2.TLB)
- // (2) v4.0 StdVCL, (C:WINDOWSSYSTEMSTDVCL40.DLL)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- interface
- uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
- // *********************************************************************//
- // 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
- iNotesMajorVersion = 1;
- iNotesMinorVersion = 0;
- LIBID_iNotes: TGUID = '{3B996361-D2CB-11D3-9D57-0080C8E7C747}';
- IID_IMail: TGUID = '{3B996362-D2CB-11D3-9D57-0080C8E7C747}';
- CLASS_Mail: TGUID = '{3B996364-D2CB-11D3-9D57-0080C8E7C747}';
- type
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IMail = interface;
- IMailDisp = dispinterface;
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- Mail = IMail;
- // *********************************************************************//
- // Interface: IMail
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {3B996362-D2CB-11D3-9D57-0080C8E7C747}
- // *********************************************************************//
- IMail = interface(IDispatch)
- ['{3B996362-D2CB-11D3-9D57-0080C8E7C747}']
- procedure OnStartPage(const AScriptingContext: IUnknown); safecall;
- procedure OnEndPage; safecall;
- function SendMail: OleVariant; safecall;
- function Get_FromAddress: OleVariant; safecall;
- procedure Set_FromAddress(Value: OleVariant); safecall;
- function Get_FromName: OleVariant; safecall;
- procedure Set_FromName(Value: OleVariant); safecall;
- function Get_ToAddress: OleVariant; safecall;
- procedure Set_ToAddress(Value: OleVariant); safecall;
- function Get_ToCC: OleVariant; safecall;
- procedure Set_ToCC(Value: OleVariant); safecall;
- function Get_ToBCC: OleVariant; safecall;
- procedure Set_ToBCC(Value: OleVariant); safecall;
- function Get_Subject: OleVariant; safecall;
- procedure Set_Subject(Value: OleVariant); safecall;
- function Get_Body: OleVariant; safecall;
- procedure Set_Body(Value: OleVariant); safecall;
- function Get_Attachments: OleVariant; safecall;
- procedure Set_Attachments(Value: OleVariant); safecall;
- function Get_SMTPHost: OleVariant; safecall;
- procedure Set_SMTPHost(Value: OleVariant); safecall;
- function Get_SMTPPort: SYSINT; safecall;
- procedure Set_SMTPPort(Value: SYSINT); safecall;
- function Get_SMTPUser: OleVariant; safecall;
- procedure Set_SMTPUser(Value: OleVariant); safecall;
- function Get_SMTPTime: SYSINT; safecall;
- procedure Set_SMTPTime(Value: SYSINT); safecall;
- function Get_Message: OleVariant; safecall;
- property FromAddress: OleVariant read Get_FromAddress write Set_FromAddress;
- property FromName: OleVariant read Get_FromName write Set_FromName;
- property ToAddress: OleVariant read Get_ToAddress write Set_ToAddress;
- property ToCC: OleVariant read Get_ToCC write Set_ToCC;
- property ToBCC: OleVariant read Get_ToBCC write Set_ToBCC;
- property Subject: OleVariant read Get_Subject write Set_Subject;
- property Body: OleVariant read Get_Body write Set_Body;
- property Attachments: OleVariant read Get_Attachments write Set_Attachments;
- property SMTPHost: OleVariant read Get_SMTPHost write Set_SMTPHost;
- property SMTPPort: SYSINT read Get_SMTPPort write Set_SMTPPort;
- property SMTPUser: OleVariant read Get_SMTPUser write Set_SMTPUser;
- property SMTPTime: SYSINT read Get_SMTPTime write Set_SMTPTime;
- property Message: OleVariant read Get_Message;
- end;
- // *********************************************************************//
- // DispIntf: IMailDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {3B996362-D2CB-11D3-9D57-0080C8E7C747}
- // *********************************************************************//
- IMailDisp = dispinterface
- ['{3B996362-D2CB-11D3-9D57-0080C8E7C747}']
- procedure OnStartPage(const AScriptingContext: IUnknown); dispid 1;
- procedure OnEndPage; dispid 2;
- function SendMail: OleVariant; dispid 3;
- property FromAddress: OleVariant dispid 4;
- property FromName: OleVariant dispid 8;
- property ToAddress: OleVariant dispid 9;
- property ToCC: OleVariant dispid 10;
- property ToBCC: OleVariant dispid 11;
- property Subject: OleVariant dispid 12;
- property Body: OleVariant dispid 13;
- property Attachments: OleVariant dispid 14;
- property SMTPHost: OleVariant dispid 15;
- property SMTPPort: SYSINT dispid 16;
- property SMTPUser: OleVariant dispid 17;
- property SMTPTime: SYSINT dispid 18;
- property Message: OleVariant readonly dispid 6;
- end;
- // *********************************************************************//
- // The Class CoMail provides a Create and CreateRemote method to
- // create instances of the default interface IMail exposed by
- // the CoClass Mail. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoMail = class
- class function Create: IMail;
- class function CreateRemote(const MachineName: string): IMail;
- end;
- // *********************************************************************//
- // OLE Server Proxy class declaration
- // Server Object : TMail
- // Help String : Mail Object
- // Default Interface: IMail
- // Def. Intf. DISP? : No
- // Event Interface:
- // TypeFlags : (2) CanCreate
- // *********************************************************************//
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- TMailProperties= class;
- {$ENDIF}
- TMail = class(TOleServer)
- private
- FIntf: IMail;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps: TMailProperties;
- function GetServerProperties: TMailProperties;
- {$ENDIF}
- function GetDefaultInterface: IMail;
- protected
- procedure InitServerData; override;
- function Get_FromAddress: OleVariant;
- procedure Set_FromAddress(Value: OleVariant);
- function Get_FromName: OleVariant;
- procedure Set_FromName(Value: OleVariant);
- function Get_ToAddress: OleVariant;
- procedure Set_ToAddress(Value: OleVariant);
- function Get_ToCC: OleVariant;
- procedure Set_ToCC(Value: OleVariant);
- function Get_ToBCC: OleVariant;
- procedure Set_ToBCC(Value: OleVariant);
- function Get_Subject: OleVariant;
- procedure Set_Subject(Value: OleVariant);
- function Get_Body: OleVariant;
- procedure Set_Body(Value: OleVariant);
- function Get_Attachments: OleVariant;
- procedure Set_Attachments(Value: OleVariant);
- function Get_SMTPHost: OleVariant;
- procedure Set_SMTPHost(Value: OleVariant);
- function Get_SMTPPort: SYSINT;
- procedure Set_SMTPPort(Value: SYSINT);
- function Get_SMTPUser: OleVariant;
- procedure Set_SMTPUser(Value: OleVariant);
- function Get_SMTPTime: SYSINT;
- procedure Set_SMTPTime(Value: SYSINT);
- function Get_Message: OleVariant;
- public
- constructor Create(AOwner: TComponent); override;
- destructor Destroy; override;
- procedure Connect; override;
- procedure ConnectTo(svrIntf: IMail);
- procedure Disconnect; override;
- procedure OnStartPage(const AScriptingContext: IUnknown);
- procedure OnEndPage;
- function SendMail: OleVariant;
- property DefaultInterface: IMail read GetDefaultInterface;
- property FromAddress: OleVariant read Get_FromAddress write Set_FromAddress;
- property FromName: OleVariant read Get_FromName write Set_FromName;
- property ToAddress: OleVariant read Get_ToAddress write Set_ToAddress;
- property ToCC: OleVariant read Get_ToCC write Set_ToCC;
- property ToBCC: OleVariant read Get_ToBCC write Set_ToBCC;
- property Subject: OleVariant read Get_Subject write Set_Subject;
- property Body: OleVariant read Get_Body write Set_Body;
- property Attachments: OleVariant read Get_Attachments write Set_Attachments;
- property SMTPHost: OleVariant read Get_SMTPHost write Set_SMTPHost;
- property SMTPUser: OleVariant read Get_SMTPUser write Set_SMTPUser;
- property Message: OleVariant read Get_Message;
- property SMTPPort: SYSINT read Get_SMTPPort write Set_SMTPPort;
- property SMTPTime: SYSINT read Get_SMTPTime write Set_SMTPTime;
- published
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- property Server: TMailProperties read GetServerProperties;
- {$ENDIF}
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- // *********************************************************************//
- // OLE Server Properties Proxy Class
- // Server Object : TMail
- // (This object is used by the IDE's Property Inspector to allow editing
- // of the properties of this server)
- // *********************************************************************//
- TMailProperties = class(TPersistent)
- private
- FServer: TMail;
- function GetDefaultInterface: IMail;
- constructor Create(AServer: TMail);
- protected
- function Get_FromAddress: OleVariant;
- procedure Set_FromAddress(Value: OleVariant);
- function Get_FromName: OleVariant;
- procedure Set_FromName(Value: OleVariant);
- function Get_ToAddress: OleVariant;
- procedure Set_ToAddress(Value: OleVariant);
- function Get_ToCC: OleVariant;
- procedure Set_ToCC(Value: OleVariant);
- function Get_ToBCC: OleVariant;
- procedure Set_ToBCC(Value: OleVariant);
- function Get_Subject: OleVariant;
- procedure Set_Subject(Value: OleVariant);
- function Get_Body: OleVariant;
- procedure Set_Body(Value: OleVariant);
- function Get_Attachments: OleVariant;
- procedure Set_Attachments(Value: OleVariant);
- function Get_SMTPHost: OleVariant;
- procedure Set_SMTPHost(Value: OleVariant);
- function Get_SMTPPort: SYSINT;
- procedure Set_SMTPPort(Value: SYSINT);
- function Get_SMTPUser: OleVariant;
- procedure Set_SMTPUser(Value: OleVariant);
- function Get_SMTPTime: SYSINT;
- procedure Set_SMTPTime(Value: SYSINT);
- function Get_Message: OleVariant;
- public
- property DefaultInterface: IMail read GetDefaultInterface;
- published
- property SMTPPort: SYSINT read Get_SMTPPort write Set_SMTPPort;
- property SMTPTime: SYSINT read Get_SMTPTime write Set_SMTPTime;
- end;
- {$ENDIF}
- procedure Register;
- implementation
- uses ComObj;
- class function CoMail.Create: IMail;
- begin
- Result := CreateComObject(CLASS_Mail) as IMail;
- end;
- class function CoMail.CreateRemote(const MachineName: string): IMail;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_Mail) as IMail;
- end;
- procedure TMail.InitServerData;
- const
- CServerData: TServerData = (
- ClassID: '{3B996364-D2CB-11D3-9D57-0080C8E7C747}';
- IntfIID: '{3B996362-D2CB-11D3-9D57-0080C8E7C747}';
- EventIID: '';
- LicenseKey: nil;
- Version: 500);
- begin
- ServerData := @CServerData;
- end;
- procedure TMail.Connect;
- var
- punk: IUnknown;
- begin
- if FIntf = nil then
- begin
- punk := GetServer;
- Fintf:= punk as IMail;
- end;
- end;
- procedure TMail.ConnectTo(svrIntf: IMail);
- begin
- Disconnect;
- FIntf := svrIntf;
- end;
- procedure TMail.DisConnect;
- begin
- if Fintf <> nil then
- begin
- FIntf := nil;
- end;
- end;
- function TMail.GetDefaultInterface: IMail;
- begin
- if FIntf = nil then
- Connect;
- Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
- Result := FIntf;
- end;
- constructor TMail.Create(AOwner: TComponent);
- begin
- inherited Create(AOwner);
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps := TMailProperties.Create(Self);
- {$ENDIF}
- end;
- destructor TMail.Destroy;
- begin
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps.Free;
- {$ENDIF}
- inherited Destroy;
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- function TMail.GetServerProperties: TMailProperties;
- begin
- Result := FProps;
- end;
- {$ENDIF}
- function TMail.Get_FromAddress: OleVariant;
- begin
- Result := DefaultInterface.Get_FromAddress;
- end;
- procedure TMail.Set_FromAddress(Value: OleVariant);
- begin
- DefaultInterface.Set_FromAddress(Value);
- end;
- function TMail.Get_FromName: OleVariant;
- begin
- Result := DefaultInterface.Get_FromName;
- end;
- procedure TMail.Set_FromName(Value: OleVariant);
- begin
- DefaultInterface.Set_FromName(Value);
- end;
- function TMail.Get_ToAddress: OleVariant;
- begin
- Result := DefaultInterface.Get_ToAddress;
- end;
- procedure TMail.Set_ToAddress(Value: OleVariant);
- begin
- DefaultInterface.Set_ToAddress(Value);
- end;
- function TMail.Get_ToCC: OleVariant;
- begin
- Result := DefaultInterface.Get_ToCC;
- end;
- procedure TMail.Set_ToCC(Value: OleVariant);
- begin
- DefaultInterface.Set_ToCC(Value);
- end;
- function TMail.Get_ToBCC: OleVariant;
- begin
- Result := DefaultInterface.Get_ToBCC;
- end;
- procedure TMail.Set_ToBCC(Value: OleVariant);
- begin
- DefaultInterface.Set_ToBCC(Value);
- end;
- function TMail.Get_Subject: OleVariant;
- begin
- Result := DefaultInterface.Get_Subject;
- end;
- procedure TMail.Set_Subject(Value: OleVariant);
- begin
- DefaultInterface.Set_Subject(Value);
- end;
- function TMail.Get_Body: OleVariant;
- begin
- Result := DefaultInterface.Get_Body;
- end;
- procedure TMail.Set_Body(Value: OleVariant);
- begin
- DefaultInterface.Set_Body(Value);
- end;
- function TMail.Get_Attachments: OleVariant;
- begin
- Result := DefaultInterface.Get_Attachments;
- end;
- procedure TMail.Set_Attachments(Value: OleVariant);
- begin
- DefaultInterface.Set_Attachments(Value);
- end;
- function TMail.Get_SMTPHost: OleVariant;
- begin
- Result := DefaultInterface.Get_SMTPHost;
- end;
- procedure TMail.Set_SMTPHost(Value: OleVariant);
- begin
- DefaultInterface.Set_SMTPHost(Value);
- end;
- function TMail.Get_SMTPPort: SYSINT;
- begin
- Result := DefaultInterface.Get_SMTPPort;
- end;
- procedure TMail.Set_SMTPPort(Value: SYSINT);
- begin
- DefaultInterface.Set_SMTPPort(Value);
- end;
- function TMail.Get_SMTPUser: OleVariant;
- begin
- Result := DefaultInterface.Get_SMTPUser;
- end;
- procedure TMail.Set_SMTPUser(Value: OleVariant);
- begin
- DefaultInterface.Set_SMTPUser(Value);
- end;
- function TMail.Get_SMTPTime: SYSINT;
- begin
- Result := DefaultInterface.Get_SMTPTime;
- end;
- procedure TMail.Set_SMTPTime(Value: SYSINT);
- begin
- DefaultInterface.Set_SMTPTime(Value);
- end;
- function TMail.Get_Message: OleVariant;
- begin
- Result := DefaultInterface.Get_Message;
- end;
- procedure TMail.OnStartPage(const AScriptingContext: IUnknown);
- begin
- DefaultInterface.OnStartPage(AScriptingContext);
- end;
- procedure TMail.OnEndPage;
- begin
- DefaultInterface.OnEndPage;
- end;
- function TMail.SendMail: OleVariant;
- begin
- Result := DefaultInterface.SendMail;
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- constructor TMailProperties.Create(AServer: TMail);
- begin
- inherited Create;
- FServer := AServer;
- end;
- function TMailProperties.GetDefaultInterface: IMail;
- begin
- Result := FServer.DefaultInterface;
- end;
- function TMailProperties.Get_FromAddress: OleVariant;
- begin
- Result := DefaultInterface.Get_FromAddress;
- end;
- procedure TMailProperties.Set_FromAddress(Value: OleVariant);
- begin
- DefaultInterface.Set_FromAddress(Value);
- end;
- function TMailProperties.Get_FromName: OleVariant;
- begin
- Result := DefaultInterface.Get_FromName;
- end;
- procedure TMailProperties.Set_FromName(Value: OleVariant);
- begin
- DefaultInterface.Set_FromName(Value);
- end;
- function TMailProperties.Get_ToAddress: OleVariant;
- begin
- Result := DefaultInterface.Get_ToAddress;
- end;
- procedure TMailProperties.Set_ToAddress(Value: OleVariant);
- begin
- DefaultInterface.Set_ToAddress(Value);
- end;
- function TMailProperties.Get_ToCC: OleVariant;
- begin
- Result := DefaultInterface.Get_ToCC;
- end;
- procedure TMailProperties.Set_ToCC(Value: OleVariant);
- begin
- DefaultInterface.Set_ToCC(Value);
- end;
- function TMailProperties.Get_ToBCC: OleVariant;
- begin
- Result := DefaultInterface.Get_ToBCC;
- end;
- procedure TMailProperties.Set_ToBCC(Value: OleVariant);
- begin
- DefaultInterface.Set_ToBCC(Value);
- end;
- function TMailProperties.Get_Subject: OleVariant;
- begin
- Result := DefaultInterface.Get_Subject;
- end;
- procedure TMailProperties.Set_Subject(Value: OleVariant);
- begin
- DefaultInterface.Set_Subject(Value);
- end;
- function TMailProperties.Get_Body: OleVariant;
- begin
- Result := DefaultInterface.Get_Body;
- end;
- procedure TMailProperties.Set_Body(Value: OleVariant);
- begin
- DefaultInterface.Set_Body(Value);
- end;
- function TMailProperties.Get_Attachments: OleVariant;
- begin
- Result := DefaultInterface.Get_Attachments;
- end;
- procedure TMailProperties.Set_Attachments(Value: OleVariant);
- begin
- DefaultInterface.Set_Attachments(Value);
- end;
- function TMailProperties.Get_SMTPHost: OleVariant;
- begin
- Result := DefaultInterface.Get_SMTPHost;
- end;
- procedure TMailProperties.Set_SMTPHost(Value: OleVariant);
- begin
- DefaultInterface.Set_SMTPHost(Value);
- end;
- function TMailProperties.Get_SMTPPort: SYSINT;
- begin
- Result := DefaultInterface.Get_SMTPPort;
- end;
- procedure TMailProperties.Set_SMTPPort(Value: SYSINT);
- begin
- DefaultInterface.Set_SMTPPort(Value);
- end;
- function TMailProperties.Get_SMTPUser: OleVariant;
- begin
- Result := DefaultInterface.Get_SMTPUser;
- end;
- procedure TMailProperties.Set_SMTPUser(Value: OleVariant);
- begin
- DefaultInterface.Set_SMTPUser(Value);
- end;
- function TMailProperties.Get_SMTPTime: SYSINT;
- begin
- Result := DefaultInterface.Get_SMTPTime;
- end;
- procedure TMailProperties.Set_SMTPTime(Value: SYSINT);
- begin
- DefaultInterface.Set_SMTPTime(Value);
- end;
- function TMailProperties.Get_Message: OleVariant;
- begin
- Result := DefaultInterface.Get_Message;
- end;
- {$ENDIF}
- procedure Register;
- begin
- RegisterComponents('Servers',[TMail]);
- end;
- end.