git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@68 b6239004-a887-0f4b-9937-50029ccdca16
114 lines
3.5 KiB
ObjectPascal
114 lines
3.5 KiB
ObjectPascal
unit BonjourDiscoverableLibrary_Intf;
|
|
|
|
{----------------------------------------------------------------------------}
|
|
{ This unit was automatically generated by the RemObjects SDK after reading }
|
|
{ the RODL file associated with this project . }
|
|
{ }
|
|
{ Do not modify this unit manually, or your changes will be lost when this }
|
|
{ unit is regenerated the next time you compile the project. }
|
|
{----------------------------------------------------------------------------}
|
|
|
|
{$I RemObjects.inc}
|
|
|
|
interface
|
|
|
|
uses
|
|
{vcl:} Classes, TypInfo,
|
|
{RemObjects:} uROXMLIntf, uROClasses, uROClient, uROTypes, uROClientIntf;
|
|
|
|
const
|
|
{ Library ID }
|
|
LibraryUID = '{55FBCB53-0D2F-4D05-961B-8A247E408D93}';
|
|
TargetNamespace = '';
|
|
|
|
{ Service Interface ID's }
|
|
IBonjourDiscoverableService_IID : TGUID = '{55FBCB53-0D2F-4D05-961B-8A247E408D93}';
|
|
|
|
{ Event ID's }
|
|
|
|
type
|
|
{ Forward declarations }
|
|
IBonjourDiscoverableService = interface;
|
|
|
|
|
|
{ IBonjourDiscoverableService }
|
|
IBonjourDiscoverableService = interface
|
|
['{55FBCB53-0D2F-4D05-961B-8A247E408D93}']
|
|
function IntroduceMyself(const MyName: AnsiString): AnsiString;
|
|
function WhoAreYou: AnsiString;
|
|
end;
|
|
|
|
{ CoBonjourDiscoverableService }
|
|
CoBonjourDiscoverableService = class
|
|
class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IBonjourDiscoverableService;
|
|
end;
|
|
|
|
{ TBonjourDiscoverableService_Proxy }
|
|
TBonjourDiscoverableService_Proxy = class(TROProxy, IBonjourDiscoverableService)
|
|
protected
|
|
function __GetInterfaceName:string; override;
|
|
|
|
function IntroduceMyself(const MyName: AnsiString): AnsiString;
|
|
function WhoAreYou: AnsiString;
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses
|
|
{vcl:} SysUtils,
|
|
{RemObjects:} uROEventRepository, uROSerializer, uRORes;
|
|
|
|
{ CoBonjourDiscoverableService }
|
|
|
|
class function CoBonjourDiscoverableService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IBonjourDiscoverableService;
|
|
begin
|
|
result := TBonjourDiscoverableService_Proxy.Create(aMessage, aTransportChannel);
|
|
end;
|
|
|
|
{ TBonjourDiscoverableService_Proxy }
|
|
|
|
function TBonjourDiscoverableService_Proxy.__GetInterfaceName:string;
|
|
begin
|
|
result := 'BonjourDiscoverableService';
|
|
end;
|
|
|
|
function TBonjourDiscoverableService_Proxy.IntroduceMyself(const MyName: AnsiString): AnsiString;
|
|
begin
|
|
try
|
|
__Message.InitializeRequestMessage(__TransportChannel, 'BonjourDiscoverableLibrary', __InterfaceName, 'IntroduceMyself');
|
|
__Message.Write('MyName', TypeInfo(AnsiString), MyName, []);
|
|
__Message.Finalize;
|
|
|
|
__TransportChannel.Dispatch(__Message);
|
|
|
|
__Message.Read('Result', TypeInfo(AnsiString), result, []);
|
|
finally
|
|
__Message.UnsetAttributes(__TransportChannel);
|
|
__Message.FreeStream;
|
|
end
|
|
end;
|
|
|
|
function TBonjourDiscoverableService_Proxy.WhoAreYou: AnsiString;
|
|
begin
|
|
try
|
|
__Message.InitializeRequestMessage(__TransportChannel, 'BonjourDiscoverableLibrary', __InterfaceName, 'WhoAreYou');
|
|
__Message.Finalize;
|
|
|
|
__TransportChannel.Dispatch(__Message);
|
|
|
|
__Message.Read('Result', TypeInfo(AnsiString), result, []);
|
|
finally
|
|
__Message.UnsetAttributes(__TransportChannel);
|
|
__Message.FreeStream;
|
|
end
|
|
end;
|
|
|
|
initialization
|
|
RegisterProxyClass(IBonjourDiscoverableService_IID, TBonjourDiscoverableService_Proxy);
|
|
|
|
|
|
finalization
|
|
UnregisterProxyClass(IBonjourDiscoverableService_IID);
|
|
|
|
end.
|