Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit YACSCOMLib_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 10/18/2009 12:09:26 AM from Type Library described below.
- // ************************************************************************ //
- // Type Lib: C:\Program Files\Yahoo!\Messenger\yacscom.dll (1)
- // LIBID: {2B323CCC-50E3-11D3-9466-00A0C9700498}
- // LCID: 0
- // Helpfile:
- // HelpString: yacscom 1.0 Type Library
- // DepndLst:
- // (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
- // Errors:
- // Error creating palette bitmap of (TYAcs) : Server C:\Program Files\Yahoo!\Messenger\yacscom.dll contains no icons
- // ************************************************************************ //
- // *************************************************************************//
- // 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.
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- {$WARN SYMBOL_PLATFORM OFF}
- {$WRITEABLECONST ON}
- {$VARPROPSETTER ON}
- interface
- uses Windows, ActiveX, Classes, Graphics, OleServer, 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
- YACSCOMLibMajorVersion = 1;
- YACSCOMLibMinorVersion = 0;
- LIBID_YACSCOMLib: TGUID = '{2B323CCC-50E3-11D3-9466-00A0C9700498}';
- DIID__IYAcsEvents: TGUID = '{2B323CDA-50E3-11D3-9466-00A0C9700498}';
- IID_IYAcs: TGUID = '{2B323CD8-50E3-11D3-9466-00A0C9700498}';
- CLASS_YAcs: TGUID = '{2B323CD9-50E3-11D3-9466-00A0C9700498}';
- type
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- _IYAcsEvents = dispinterface;
- IYAcs = interface;
- IYAcsDisp = dispinterface;
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- YAcs = IYAcs;
- // *********************************************************************//
- // DispIntf: _IYAcsEvents
- // Flags: (4096) Dispatchable
- // GUID: {2B323CDA-50E3-11D3-9466-00A0C9700498}
- // *********************************************************************//
- _IYAcsEvents = dispinterface
- ['{2B323CDA-50E3-11D3-9466-00A0C9700498}']
- procedure onRemoteSourceOnAir(sourceId: Integer; const sourceName: WideString); dispid 1;
- procedure onRemoteSourceOffAir(sourceId: Integer; const sourceName: WideString); dispid 2;
- procedure onConferenceReady; dispid 3;
- procedure onSourceEntry(sourceId: Integer; const sourceName: WideString); dispid 4;
- procedure onSourceExit(sourceId: Integer; const sourceName: WideString); dispid 5;
- procedure onConferenceNotReady; dispid 6;
- procedure onLocalOnAir; dispid 7;
- procedure onLocalOffAir; dispid 8;
- procedure onInputLevelChange(level: Smallint); dispid 9;
- procedure onOutputLevelChange(level: Smallint); dispid 10;
- procedure onSystemConnect; dispid 11;
- procedure onSystemDisconnect; dispid 12;
- procedure onOutputGainChange(gain: Smallint); dispid 13;
- procedure onOutputMuteChange(mute: Integer); dispid 14;
- procedure onInputGainChange(gain: Smallint); dispid 15;
- procedure onInputMuteChange(mute: Integer); dispid 16;
- procedure onMonitorGainChange(gain: Smallint); dispid 17;
- procedure onInputSourceChange(source: Smallint); dispid 18;
- procedure onMonitorMuteChange(mute: Integer); dispid 19;
- procedure onSystemConnectFailure(code: Integer; const message: WideString); dispid 20;
- procedure onAudioError(code: Integer; const message: WideString); dispid 21;
- procedure onSourceMuted(numMuting: Integer; const sourceName: WideString); dispid 22;
- procedure onSourceUnmuted(numMuting: Integer; const sourceName: WideString); dispid 23;
- procedure onTransmitReport(numReceiving: SYSINT; numTotal: SYSINT); dispid 24;
- end;
- // *********************************************************************//
- // Interface: IYAcs
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {2B323CD8-50E3-11D3-9466-00A0C9700498}
- // *********************************************************************//
- IYAcs = interface(IDispatch)
- ['{2B323CD8-50E3-11D3-9466-00A0C9700498}']
- function Get_hostName: WideString; safecall;
- procedure Set_hostName(const pVal: WideString); safecall;
- procedure joinConference; safecall;
- function Get_userName: WideString; safecall;
- procedure Set_userName(const pVal: WideString); safecall;
- function Get_confName: WideString; safecall;
- procedure Set_confName(const pVal: WideString); safecall;
- procedure startTransmit; safecall;
- procedure stopTransmit; safecall;
- procedure leaveConference; safecall;
- function Get_monitorGain: Smallint; safecall;
- procedure Set_monitorGain(pVal: Smallint); safecall;
- function Get_outputGain: Smallint; safecall;
- procedure Set_outputGain(pVal: Smallint); safecall;
- function Get_inputGain: Smallint; safecall;
- procedure Set_inputGain(pVal: Smallint); safecall;
- function Get_inputMute: Integer; safecall;
- procedure Set_inputMute(pVal: Integer); safecall;
- function Get_outputMute: Integer; safecall;
- procedure Set_outputMute(pVal: Integer); safecall;
- function Get_inputSource: Smallint; safecall;
- procedure Set_inputSource(pVal: Smallint); safecall;
- function Get_monitorMute: Integer; safecall;
- procedure Set_monitorMute(pVal: Integer); safecall;
- function Get_socksVersion: Smallint; safecall;
- procedure Set_socksVersion(pVal: Smallint); safecall;
- function Get_socksHostname: WideString; safecall;
- procedure Set_socksHostname(const pVal: WideString); safecall;
- function Get_socksPort: Smallint; safecall;
- procedure Set_socksPort(pVal: Smallint); safecall;
- function Get_socksUsername: WideString; safecall;
- procedure Set_socksUsername(const pVal: WideString); safecall;
- function Get_socksPassword: WideString; safecall;
- procedure Set_socksPassword(const pVal: WideString); safecall;
- function Get_confKey: WideString; safecall;
- procedure Set_confKey(const pVal: WideString); safecall;
- function Get_inputAGC: Integer; safecall;
- procedure Set_inputAGC(pVal: Integer); safecall;
- function Get_inputVOX: Integer; safecall;
- procedure Set_inputVOX(pVal: Integer); safecall;
- procedure createAndJoinConference; safecall;
- procedure muteSource(id: Integer; const name: WideString); safecall;
- procedure unmuteSource(id: Integer; const name: WideString); safecall;
- function Get_inputVOXSensitivity: Smallint; safecall;
- procedure Set_inputVOXSensitivity(pVal: Smallint); safecall;
- procedure setSourcePriority(id: Integer; const name: WideString; priority: Smallint); safecall;
- function Get_appInfo: WideString; safecall;
- procedure Set_appInfo(const pVal: WideString); safecall;
- function playSound(const name: WideString; level: Double): Integer; safecall;
- procedure stopSound(id: Integer); safecall;
- procedure loadSound(const name: WideString); safecall;
- function Get_soundLocation: WideString; safecall;
- procedure Set_soundLocation(const pVal: WideString); safecall;
- procedure startTest(id: Smallint); safecall;
- procedure stopTest(id: Smallint); safecall;
- property hostName: WideString read Get_hostName write Set_hostName;
- property userName: WideString read Get_userName write Set_userName;
- property confName: WideString read Get_confName write Set_confName;
- property monitorGain: Smallint read Get_monitorGain write Set_monitorGain;
- property outputGain: Smallint read Get_outputGain write Set_outputGain;
- property inputGain: Smallint read Get_inputGain write Set_inputGain;
- property inputMute: Integer read Get_inputMute write Set_inputMute;
- property outputMute: Integer read Get_outputMute write Set_outputMute;
- property inputSource: Smallint read Get_inputSource write Set_inputSource;
- property monitorMute: Integer read Get_monitorMute write Set_monitorMute;
- property socksVersion: Smallint read Get_socksVersion write Set_socksVersion;
- property socksHostname: WideString read Get_socksHostname write Set_socksHostname;
- property socksPort: Smallint read Get_socksPort write Set_socksPort;
- property socksUsername: WideString read Get_socksUsername write Set_socksUsername;
- property socksPassword: WideString read Get_socksPassword write Set_socksPassword;
- property confKey: WideString read Get_confKey write Set_confKey;
- property inputAGC: Integer read Get_inputAGC write Set_inputAGC;
- property inputVOX: Integer read Get_inputVOX write Set_inputVOX;
- property inputVOXSensitivity: Smallint read Get_inputVOXSensitivity write Set_inputVOXSensitivity;
- property appInfo: WideString read Get_appInfo write Set_appInfo;
- property soundLocation: WideString read Get_soundLocation write Set_soundLocation;
- end;
- // *********************************************************************//
- // DispIntf: IYAcsDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {2B323CD8-50E3-11D3-9466-00A0C9700498}
- // *********************************************************************//
- IYAcsDisp = dispinterface
- ['{2B323CD8-50E3-11D3-9466-00A0C9700498}']
- property hostName: WideString dispid 1;
- procedure joinConference; dispid 2;
- property userName: WideString dispid 3;
- property confName: WideString dispid 4;
- procedure startTransmit; dispid 5;
- procedure stopTransmit; dispid 6;
- procedure leaveConference; dispid 7;
- property monitorGain: Smallint dispid 8;
- property outputGain: Smallint dispid 9;
- property inputGain: Smallint dispid 10;
- property inputMute: Integer dispid 11;
- property outputMute: Integer dispid 12;
- property inputSource: Smallint dispid 13;
- property monitorMute: Integer dispid 14;
- property socksVersion: Smallint dispid 15;
- property socksHostname: WideString dispid 16;
- property socksPort: Smallint dispid 17;
- property socksUsername: WideString dispid 18;
- property socksPassword: WideString dispid 19;
- property confKey: WideString dispid 20;
- property inputAGC: Integer dispid 21;
- property inputVOX: Integer dispid 22;
- procedure createAndJoinConference; dispid 23;
- procedure muteSource(id: Integer; const name: WideString); dispid 24;
- procedure unmuteSource(id: Integer; const name: WideString); dispid 25;
- property inputVOXSensitivity: Smallint dispid 26;
- procedure setSourcePriority(id: Integer; const name: WideString; priority: Smallint); dispid 27;
- property appInfo: WideString dispid 28;
- function playSound(const name: WideString; level: Double): Integer; dispid 29;
- procedure stopSound(id: Integer); dispid 30;
- procedure loadSound(const name: WideString); dispid 31;
- property soundLocation: WideString dispid 32;
- procedure startTest(id: Smallint); dispid 33;
- procedure stopTest(id: Smallint); dispid 34;
- end;
- // *********************************************************************//
- // The Class CoYAcs provides a Create and CreateRemote method to
- // create instances of the default interface IYAcs exposed by
- // the CoClass YAcs. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoYAcs = class
- class function Create: IYAcs;
- class function CreateRemote(const MachineName: string): IYAcs;
- end;
- TYAcsonRemoteSourceOnAir = procedure(ASender: TObject; sourceId: Integer;
- const sourceName: WideString) of object;
- TYAcsonRemoteSourceOffAir = procedure(ASender: TObject; sourceId: Integer;
- const sourceName: WideString) of object;
- TYAcsonSourceEntry = procedure(ASender: TObject; sourceId: Integer; const sourceName: WideString) of object;
- TYAcsonSourceExit = procedure(ASender: TObject; sourceId: Integer; const sourceName: WideString) of object;
- TYAcsonInputLevelChange = procedure(ASender: TObject; level: Smallint) of object;
- TYAcsonOutputLevelChange = procedure(ASender: TObject; level: Smallint) of object;
- TYAcsonOutputGainChange = procedure(ASender: TObject; gain: Smallint) of object;
- TYAcsonOutputMuteChange = procedure(ASender: TObject; mute: Integer) of object;
- TYAcsonInputGainChange = procedure(ASender: TObject; gain: Smallint) of object;
- TYAcsonInputMuteChange = procedure(ASender: TObject; mute: Integer) of object;
- TYAcsonMonitorGainChange = procedure(ASender: TObject; gain: Smallint) of object;
- TYAcsonInputSourceChange = procedure(ASender: TObject; source: Smallint) of object;
- TYAcsonMonitorMuteChange = procedure(ASender: TObject; mute: Integer) of object;
- TYAcsonSystemConnectFailure = procedure(ASender: TObject; code: Integer; const message: WideString) of object;
- TYAcsonAudioError = procedure(ASender: TObject; code: Integer; const message: WideString) of object;
- TYAcsonSourceMuted = procedure(ASender: TObject; numMuting: Integer; const sourceName: WideString) of object;
- TYAcsonSourceUnmuted = procedure(ASender: TObject; numMuting: Integer;
- const sourceName: WideString) of object;
- TYAcsonTransmitReport = procedure(ASender: TObject; numReceiving: SYSINT; numTotal: SYSINT) of object;
- // *********************************************************************//
- // OLE Server Proxy class declaration
- // Server Object : TYAcs
- // Help String : Yahoo! Audio Conferencing
- // Default Interface: IYAcs
- // Def. Intf. DISP? : No
- // Event Interface: _IYAcsEvents
- // TypeFlags : (2) CanCreate
- // *********************************************************************//
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- TYAcsProperties= class;
- {$ENDIF}
- TYAcs = class(TOleServer)
- private
- FOnonRemoteSourceOnAir: TYAcsonRemoteSourceOnAir;
- FOnonRemoteSourceOffAir: TYAcsonRemoteSourceOffAir;
- FOnonConferenceReady: TNotifyEvent;
- FOnonSourceEntry: TYAcsonSourceEntry;
- FOnonSourceExit: TYAcsonSourceExit;
- FOnonConferenceNotReady: TNotifyEvent;
- FOnonLocalOnAir: TNotifyEvent;
- FOnonLocalOffAir: TNotifyEvent;
- FOnonInputLevelChange: TYAcsonInputLevelChange;
- FOnonOutputLevelChange: TYAcsonOutputLevelChange;
- FOnonSystemConnect: TNotifyEvent;
- FOnonSystemDisconnect: TNotifyEvent;
- FOnonOutputGainChange: TYAcsonOutputGainChange;
- FOnonOutputMuteChange: TYAcsonOutputMuteChange;
- FOnonInputGainChange: TYAcsonInputGainChange;
- FOnonInputMuteChange: TYAcsonInputMuteChange;
- FOnonMonitorGainChange: TYAcsonMonitorGainChange;
- FOnonInputSourceChange: TYAcsonInputSourceChange;
- FOnonMonitorMuteChange: TYAcsonMonitorMuteChange;
- FOnonSystemConnectFailure: TYAcsonSystemConnectFailure;
- FOnonAudioError: TYAcsonAudioError;
- FOnonSourceMuted: TYAcsonSourceMuted;
- FOnonSourceUnmuted: TYAcsonSourceUnmuted;
- FOnonTransmitReport: TYAcsonTransmitReport;
- FIntf: IYAcs;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps: TYAcsProperties;
- function GetServerProperties: TYAcsProperties;
- {$ENDIF}
- function GetDefaultInterface: IYAcs;
- protected
- procedure InitServerData; override;
- procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
- function Get_hostName: WideString;
- procedure Set_hostName(const pVal: WideString);
- function Get_userName: WideString;
- procedure Set_userName(const pVal: WideString);
- function Get_confName: WideString;
- procedure Set_confName(const pVal: WideString);
- function Get_monitorGain: Smallint;
- procedure Set_monitorGain(pVal: Smallint);
- function Get_outputGain: Smallint;
- procedure Set_outputGain(pVal: Smallint);
- function Get_inputGain: Smallint;
- procedure Set_inputGain(pVal: Smallint);
- function Get_inputMute: Integer;
- procedure Set_inputMute(pVal: Integer);
- function Get_outputMute: Integer;
- procedure Set_outputMute(pVal: Integer);
- function Get_inputSource: Smallint;
- procedure Set_inputSource(pVal: Smallint);
- function Get_monitorMute: Integer;
- procedure Set_monitorMute(pVal: Integer);
- function Get_socksVersion: Smallint;
- procedure Set_socksVersion(pVal: Smallint);
- function Get_socksHostname: WideString;
- procedure Set_socksHostname(const pVal: WideString);
- function Get_socksPort: Smallint;
- procedure Set_socksPort(pVal: Smallint);
- function Get_socksUsername: WideString;
- procedure Set_socksUsername(const pVal: WideString);
- function Get_socksPassword: WideString;
- procedure Set_socksPassword(const pVal: WideString);
- function Get_confKey: WideString;
- procedure Set_confKey(const pVal: WideString);
- function Get_inputAGC: Integer;
- procedure Set_inputAGC(pVal: Integer);
- function Get_inputVOX: Integer;
- procedure Set_inputVOX(pVal: Integer);
- function Get_inputVOXSensitivity: Smallint;
- procedure Set_inputVOXSensitivity(pVal: Smallint);
- function Get_appInfo: WideString;
- procedure Set_appInfo(const pVal: WideString);
- function Get_soundLocation: WideString;
- procedure Set_soundLocation(const pVal: WideString);
- public
- constructor Create(AOwner: TComponent); override;
- destructor Destroy; override;
- procedure Connect; override;
- procedure ConnectTo(svrIntf: IYAcs);
- procedure Disconnect; override;
- procedure joinConference;
- procedure startTransmit;
- procedure stopTransmit;
- procedure leaveConference;
- procedure createAndJoinConference;
- procedure muteSource(id: Integer; const name: WideString);
- procedure unmuteSource(id: Integer; const name: WideString);
- procedure setSourcePriority(id: Integer; const name: WideString; priority: Smallint);
- function playSound(const name: WideString; level: Double): Integer;
- procedure stopSound(id: Integer);
- procedure loadSound(const name: WideString);
- procedure startTest(id: Smallint);
- procedure stopTest(id: Smallint);
- property DefaultInterface: IYAcs read GetDefaultInterface;
- property hostName: WideString read Get_hostName write Set_hostName;
- property userName: WideString read Get_userName write Set_userName;
- property confName: WideString read Get_confName write Set_confName;
- property monitorGain: Smallint read Get_monitorGain write Set_monitorGain;
- property outputGain: Smallint read Get_outputGain write Set_outputGain;
- property inputGain: Smallint read Get_inputGain write Set_inputGain;
- property inputMute: Integer read Get_inputMute write Set_inputMute;
- property outputMute: Integer read Get_outputMute write Set_outputMute;
- property inputSource: Smallint read Get_inputSource write Set_inputSource;
- property monitorMute: Integer read Get_monitorMute write Set_monitorMute;
- property socksVersion: Smallint read Get_socksVersion write Set_socksVersion;
- property socksHostname: WideString read Get_socksHostname write Set_socksHostname;
- property socksPort: Smallint read Get_socksPort write Set_socksPort;
- property socksUsername: WideString read Get_socksUsername write Set_socksUsername;
- property socksPassword: WideString read Get_socksPassword write Set_socksPassword;
- property confKey: WideString read Get_confKey write Set_confKey;
- property inputAGC: Integer read Get_inputAGC write Set_inputAGC;
- property inputVOX: Integer read Get_inputVOX write Set_inputVOX;
- property inputVOXSensitivity: Smallint read Get_inputVOXSensitivity write Set_inputVOXSensitivity;
- property appInfo: WideString read Get_appInfo write Set_appInfo;
- property soundLocation: WideString read Get_soundLocation write Set_soundLocation;
- published
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- property Server: TYAcsProperties read GetServerProperties;
- {$ENDIF}
- property OnonRemoteSourceOnAir: TYAcsonRemoteSourceOnAir read FOnonRemoteSourceOnAir write FOnonRemoteSourceOnAir;
- property OnonRemoteSourceOffAir: TYAcsonRemoteSourceOffAir read FOnonRemoteSourceOffAir write FOnonRemoteSourceOffAir;
- property OnonConferenceReady: TNotifyEvent read FOnonConferenceReady write FOnonConferenceReady;
- property OnonSourceEntry: TYAcsonSourceEntry read FOnonSourceEntry write FOnonSourceEntry;
- property OnonSourceExit: TYAcsonSourceExit read FOnonSourceExit write FOnonSourceExit;
- property OnonConferenceNotReady: TNotifyEvent read FOnonConferenceNotReady write FOnonConferenceNotReady;
- property OnonLocalOnAir: TNotifyEvent read FOnonLocalOnAir write FOnonLocalOnAir;
- property OnonLocalOffAir: TNotifyEvent read FOnonLocalOffAir write FOnonLocalOffAir;
- property OnonInputLevelChange: TYAcsonInputLevelChange read FOnonInputLevelChange write FOnonInputLevelChange;
- property OnonOutputLevelChange: TYAcsonOutputLevelChange read FOnonOutputLevelChange write FOnonOutputLevelChange;
- property OnonSystemConnect: TNotifyEvent read FOnonSystemConnect write FOnonSystemConnect;
- property OnonSystemDisconnect: TNotifyEvent read FOnonSystemDisconnect write FOnonSystemDisconnect;
- property OnonOutputGainChange: TYAcsonOutputGainChange read FOnonOutputGainChange write FOnonOutputGainChange;
- property OnonOutputMuteChange: TYAcsonOutputMuteChange read FOnonOutputMuteChange write FOnonOutputMuteChange;
- property OnonInputGainChange: TYAcsonInputGainChange read FOnonInputGainChange write FOnonInputGainChange;
- property OnonInputMuteChange: TYAcsonInputMuteChange read FOnonInputMuteChange write FOnonInputMuteChange;
- property OnonMonitorGainChange: TYAcsonMonitorGainChange read FOnonMonitorGainChange write FOnonMonitorGainChange;
- property OnonInputSourceChange: TYAcsonInputSourceChange read FOnonInputSourceChange write FOnonInputSourceChange;
- property OnonMonitorMuteChange: TYAcsonMonitorMuteChange read FOnonMonitorMuteChange write FOnonMonitorMuteChange;
- property OnonSystemConnectFailure: TYAcsonSystemConnectFailure read FOnonSystemConnectFailure write FOnonSystemConnectFailure;
- property OnonAudioError: TYAcsonAudioError read FOnonAudioError write FOnonAudioError;
- property OnonSourceMuted: TYAcsonSourceMuted read FOnonSourceMuted write FOnonSourceMuted;
- property OnonSourceUnmuted: TYAcsonSourceUnmuted read FOnonSourceUnmuted write FOnonSourceUnmuted;
- property OnonTransmitReport: TYAcsonTransmitReport read FOnonTransmitReport write FOnonTransmitReport;
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- // *********************************************************************//
- // OLE Server Properties Proxy Class
- // Server Object : TYAcs
- // (This object is used by the IDE's Property Inspector to allow editing
- // of the properties of this server)
- // *********************************************************************//
- TYAcsProperties = class(TPersistent)
- private
- FServer: TYAcs;
- function GetDefaultInterface: IYAcs;
- constructor Create(AServer: TYAcs);
- protected
- function Get_hostName: WideString;
- procedure Set_hostName(const pVal: WideString);
- function Get_userName: WideString;
- procedure Set_userName(const pVal: WideString);
- function Get_confName: WideString;
- procedure Set_confName(const pVal: WideString);
- function Get_monitorGain: Smallint;
- procedure Set_monitorGain(pVal: Smallint);
- function Get_outputGain: Smallint;
- procedure Set_outputGain(pVal: Smallint);
- function Get_inputGain: Smallint;
- procedure Set_inputGain(pVal: Smallint);
- function Get_inputMute: Integer;
- procedure Set_inputMute(pVal: Integer);
- function Get_outputMute: Integer;
- procedure Set_outputMute(pVal: Integer);
- function Get_inputSource: Smallint;
- procedure Set_inputSource(pVal: Smallint);
- function Get_monitorMute: Integer;
- procedure Set_monitorMute(pVal: Integer);
- function Get_socksVersion: Smallint;
- procedure Set_socksVersion(pVal: Smallint);
- function Get_socksHostname: WideString;
- procedure Set_socksHostname(const pVal: WideString);
- function Get_socksPort: Smallint;
- procedure Set_socksPort(pVal: Smallint);
- function Get_socksUsername: WideString;
- procedure Set_socksUsername(const pVal: WideString);
- function Get_socksPassword: WideString;
- procedure Set_socksPassword(const pVal: WideString);
- function Get_confKey: WideString;
- procedure Set_confKey(const pVal: WideString);
- function Get_inputAGC: Integer;
- procedure Set_inputAGC(pVal: Integer);
- function Get_inputVOX: Integer;
- procedure Set_inputVOX(pVal: Integer);
- function Get_inputVOXSensitivity: Smallint;
- procedure Set_inputVOXSensitivity(pVal: Smallint);
- function Get_appInfo: WideString;
- procedure Set_appInfo(const pVal: WideString);
- function Get_soundLocation: WideString;
- procedure Set_soundLocation(const pVal: WideString);
- public
- property DefaultInterface: IYAcs read GetDefaultInterface;
- published
- property hostName: WideString read Get_hostName write Set_hostName;
- property userName: WideString read Get_userName write Set_userName;
- property confName: WideString read Get_confName write Set_confName;
- property monitorGain: Smallint read Get_monitorGain write Set_monitorGain;
- property outputGain: Smallint read Get_outputGain write Set_outputGain;
- property inputGain: Smallint read Get_inputGain write Set_inputGain;
- property inputMute: Integer read Get_inputMute write Set_inputMute;
- property outputMute: Integer read Get_outputMute write Set_outputMute;
- property inputSource: Smallint read Get_inputSource write Set_inputSource;
- property monitorMute: Integer read Get_monitorMute write Set_monitorMute;
- property socksVersion: Smallint read Get_socksVersion write Set_socksVersion;
- property socksHostname: WideString read Get_socksHostname write Set_socksHostname;
- property socksPort: Smallint read Get_socksPort write Set_socksPort;
- property socksUsername: WideString read Get_socksUsername write Set_socksUsername;
- property socksPassword: WideString read Get_socksPassword write Set_socksPassword;
- property confKey: WideString read Get_confKey write Set_confKey;
- property inputAGC: Integer read Get_inputAGC write Set_inputAGC;
- property inputVOX: Integer read Get_inputVOX write Set_inputVOX;
- property inputVOXSensitivity: Smallint read Get_inputVOXSensitivity write Set_inputVOXSensitivity;
- property appInfo: WideString read Get_appInfo write Set_appInfo;
- property soundLocation: WideString read Get_soundLocation write Set_soundLocation;
- end;
- {$ENDIF}
- procedure Register;
- resourcestring
- dtlServerPage = 'ActiveX';
- dtlOcxPage = 'ActiveX';
- implementation
- uses ComObj;
- class function CoYAcs.Create: IYAcs;
- begin
- Result := CreateComObject(CLASS_YAcs) as IYAcs;
- end;
- class function CoYAcs.CreateRemote(const MachineName: string): IYAcs;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_YAcs) as IYAcs;
- end;
- procedure TYAcs.InitServerData;
- const
- CServerData: TServerData = (
- ClassID: '{2B323CD9-50E3-11D3-9466-00A0C9700498}';
- IntfIID: '{2B323CD8-50E3-11D3-9466-00A0C9700498}';
- EventIID: '{2B323CDA-50E3-11D3-9466-00A0C9700498}';
- LicenseKey: nil;
- Version: 500);
- begin
- ServerData := @CServerData;
- end;
- procedure TYAcs.Connect;
- var
- punk: IUnknown;
- begin
- if FIntf = nil then
- begin
- punk := GetServer;
- ConnectEvents(punk);
- Fintf:= punk as IYAcs;
- end;
- end;
- procedure TYAcs.ConnectTo(svrIntf: IYAcs);
- begin
- Disconnect;
- FIntf := svrIntf;
- ConnectEvents(FIntf);
- end;
- procedure TYAcs.DisConnect;
- begin
- if Fintf <> nil then
- begin
- DisconnectEvents(FIntf);
- FIntf := nil;
- end;
- end;
- function TYAcs.GetDefaultInterface: IYAcs;
- 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 TYAcs.Create(AOwner: TComponent);
- begin
- inherited Create(AOwner);
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps := TYAcsProperties.Create(Self);
- {$ENDIF}
- end;
- destructor TYAcs.Destroy;
- begin
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps.Free;
- {$ENDIF}
- inherited Destroy;
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- function TYAcs.GetServerProperties: TYAcsProperties;
- begin
- Result := FProps;
- end;
- {$ENDIF}
- procedure TYAcs.InvokeEvent(DispID: TDispID; var Params: TVariantArray);
- begin
- case DispID of
- -1: Exit; // DISPID_UNKNOWN
- 1: if Assigned(FOnonRemoteSourceOnAir) then
- FOnonRemoteSourceOnAir(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 2: if Assigned(FOnonRemoteSourceOffAir) then
- FOnonRemoteSourceOffAir(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 3: if Assigned(FOnonConferenceReady) then
- FOnonConferenceReady(Self);
- 4: if Assigned(FOnonSourceEntry) then
- FOnonSourceEntry(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 5: if Assigned(FOnonSourceExit) then
- FOnonSourceExit(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 6: if Assigned(FOnonConferenceNotReady) then
- FOnonConferenceNotReady(Self);
- 7: if Assigned(FOnonLocalOnAir) then
- FOnonLocalOnAir(Self);
- 8: if Assigned(FOnonLocalOffAir) then
- FOnonLocalOffAir(Self);
- 9: if Assigned(FOnonInputLevelChange) then
- FOnonInputLevelChange(Self, Params[0] {Smallint});
- 10: if Assigned(FOnonOutputLevelChange) then
- FOnonOutputLevelChange(Self, Params[0] {Smallint});
- 11: if Assigned(FOnonSystemConnect) then
- FOnonSystemConnect(Self);
- 12: if Assigned(FOnonSystemDisconnect) then
- FOnonSystemDisconnect(Self);
- 13: if Assigned(FOnonOutputGainChange) then
- FOnonOutputGainChange(Self, Params[0] {Smallint});
- 14: if Assigned(FOnonOutputMuteChange) then
- FOnonOutputMuteChange(Self, Params[0] {Integer});
- 15: if Assigned(FOnonInputGainChange) then
- FOnonInputGainChange(Self, Params[0] {Smallint});
- 16: if Assigned(FOnonInputMuteChange) then
- FOnonInputMuteChange(Self, Params[0] {Integer});
- 17: if Assigned(FOnonMonitorGainChange) then
- FOnonMonitorGainChange(Self, Params[0] {Smallint});
- 18: if Assigned(FOnonInputSourceChange) then
- FOnonInputSourceChange(Self, Params[0] {Smallint});
- 19: if Assigned(FOnonMonitorMuteChange) then
- FOnonMonitorMuteChange(Self, Params[0] {Integer});
- 20: if Assigned(FOnonSystemConnectFailure) then
- FOnonSystemConnectFailure(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 21: if Assigned(FOnonAudioError) then
- FOnonAudioError(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 22: if Assigned(FOnonSourceMuted) then
- FOnonSourceMuted(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 23: if Assigned(FOnonSourceUnmuted) then
- FOnonSourceUnmuted(Self,
- Params[0] {Integer},
- Params[1] {const WideString});
- 24: if Assigned(FOnonTransmitReport) then
- FOnonTransmitReport(Self,
- Params[0] {SYSINT},
- Params[1] {SYSINT});
- end; {case DispID}
- end;
- function TYAcs.Get_hostName: WideString;
- begin
- Result := DefaultInterface.hostName;
- end;
- procedure TYAcs.Set_hostName(const pVal: WideString);
- { Warning: The property hostName has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.hostName := pVal;
- end;
- function TYAcs.Get_userName: WideString;
- begin
- Result := DefaultInterface.userName;
- end;
- procedure TYAcs.Set_userName(const pVal: WideString);
- { Warning: The property userName has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.userName := pVal;
- end;
- function TYAcs.Get_confName: WideString;
- begin
- Result := DefaultInterface.confName;
- end;
- procedure TYAcs.Set_confName(const pVal: WideString);
- { Warning: The property confName has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.confName := pVal;
- end;
- function TYAcs.Get_monitorGain: Smallint;
- begin
- Result := DefaultInterface.monitorGain;
- end;
- procedure TYAcs.Set_monitorGain(pVal: Smallint);
- begin
- DefaultInterface.Set_monitorGain(pVal);
- end;
- function TYAcs.Get_outputGain: Smallint;
- begin
- Result := DefaultInterface.outputGain;
- end;
- procedure TYAcs.Set_outputGain(pVal: Smallint);
- begin
- DefaultInterface.Set_outputGain(pVal);
- end;
- function TYAcs.Get_inputGain: Smallint;
- begin
- Result := DefaultInterface.inputGain;
- end;
- procedure TYAcs.Set_inputGain(pVal: Smallint);
- begin
- DefaultInterface.Set_inputGain(pVal);
- end;
- function TYAcs.Get_inputMute: Integer;
- begin
- Result := DefaultInterface.inputMute;
- end;
- procedure TYAcs.Set_inputMute(pVal: Integer);
- begin
- DefaultInterface.Set_inputMute(pVal);
- end;
- function TYAcs.Get_outputMute: Integer;
- begin
- Result := DefaultInterface.outputMute;
- end;
- procedure TYAcs.Set_outputMute(pVal: Integer);
- begin
- DefaultInterface.Set_outputMute(pVal);
- end;
- function TYAcs.Get_inputSource: Smallint;
- begin
- Result := DefaultInterface.inputSource;
- end;
- procedure TYAcs.Set_inputSource(pVal: Smallint);
- begin
- DefaultInterface.Set_inputSource(pVal);
- end;
- function TYAcs.Get_monitorMute: Integer;
- begin
- Result := DefaultInterface.monitorMute;
- end;
- procedure TYAcs.Set_monitorMute(pVal: Integer);
- begin
- DefaultInterface.Set_monitorMute(pVal);
- end;
- function TYAcs.Get_socksVersion: Smallint;
- begin
- Result := DefaultInterface.socksVersion;
- end;
- procedure TYAcs.Set_socksVersion(pVal: Smallint);
- begin
- DefaultInterface.Set_socksVersion(pVal);
- end;
- function TYAcs.Get_socksHostname: WideString;
- begin
- Result := DefaultInterface.socksHostname;
- end;
- procedure TYAcs.Set_socksHostname(const pVal: WideString);
- { Warning: The property socksHostname has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.socksHostname := pVal;
- end;
- function TYAcs.Get_socksPort: Smallint;
- begin
- Result := DefaultInterface.socksPort;
- end;
- procedure TYAcs.Set_socksPort(pVal: Smallint);
- begin
- DefaultInterface.Set_socksPort(pVal);
- end;
- function TYAcs.Get_socksUsername: WideString;
- begin
- Result := DefaultInterface.socksUsername;
- end;
- procedure TYAcs.Set_socksUsername(const pVal: WideString);
- { Warning: The property socksUsername has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.socksUsername := pVal;
- end;
- function TYAcs.Get_socksPassword: WideString;
- begin
- Result := DefaultInterface.socksPassword;
- end;
- procedure TYAcs.Set_socksPassword(const pVal: WideString);
- { Warning: The property socksPassword has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.socksPassword := pVal;
- end;
- function TYAcs.Get_confKey: WideString;
- begin
- Result := DefaultInterface.confKey;
- end;
- procedure TYAcs.Set_confKey(const pVal: WideString);
- { Warning: The property confKey has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.confKey := pVal;
- end;
- function TYAcs.Get_inputAGC: Integer;
- begin
- Result := DefaultInterface.inputAGC;
- end;
- procedure TYAcs.Set_inputAGC(pVal: Integer);
- begin
- DefaultInterface.Set_inputAGC(pVal);
- end;
- function TYAcs.Get_inputVOX: Integer;
- begin
- Result := DefaultInterface.inputVOX;
- end;
- procedure TYAcs.Set_inputVOX(pVal: Integer);
- begin
- DefaultInterface.Set_inputVOX(pVal);
- end;
- function TYAcs.Get_inputVOXSensitivity: Smallint;
- begin
- Result := DefaultInterface.inputVOXSensitivity;
- end;
- procedure TYAcs.Set_inputVOXSensitivity(pVal: Smallint);
- begin
- DefaultInterface.Set_inputVOXSensitivity(pVal);
- end;
- function TYAcs.Get_appInfo: WideString;
- begin
- Result := DefaultInterface.appInfo;
- end;
- procedure TYAcs.Set_appInfo(const pVal: WideString);
- { Warning: The property appInfo has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.appInfo := pVal;
- end;
- function TYAcs.Get_soundLocation: WideString;
- begin
- Result := DefaultInterface.soundLocation;
- end;
- procedure TYAcs.Set_soundLocation(const pVal: WideString);
- { Warning: The property soundLocation has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.soundLocation := pVal;
- end;
- procedure TYAcs.joinConference;
- begin
- DefaultInterface.joinConference;
- end;
- procedure TYAcs.startTransmit;
- begin
- DefaultInterface.startTransmit;
- end;
- procedure TYAcs.stopTransmit;
- begin
- DefaultInterface.stopTransmit;
- end;
- procedure TYAcs.leaveConference;
- begin
- DefaultInterface.leaveConference;
- end;
- procedure TYAcs.createAndJoinConference;
- begin
- DefaultInterface.createAndJoinConference;
- end;
- procedure TYAcs.muteSource(id: Integer; const name: WideString);
- begin
- DefaultInterface.muteSource(id, name);
- end;
- procedure TYAcs.unmuteSource(id: Integer; const name: WideString);
- begin
- DefaultInterface.unmuteSource(id, name);
- end;
- procedure TYAcs.setSourcePriority(id: Integer; const name: WideString; priority: Smallint);
- begin
- DefaultInterface.setSourcePriority(id, name, priority);
- end;
- function TYAcs.playSound(const name: WideString; level: Double): Integer;
- begin
- Result := DefaultInterface.playSound(name, level);
- end;
- procedure TYAcs.stopSound(id: Integer);
- begin
- DefaultInterface.stopSound(id);
- end;
- procedure TYAcs.loadSound(const name: WideString);
- begin
- DefaultInterface.loadSound(name);
- end;
- procedure TYAcs.startTest(id: Smallint);
- begin
- DefaultInterface.startTest(id);
- end;
- procedure TYAcs.stopTest(id: Smallint);
- begin
- DefaultInterface.stopTest(id);
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- constructor TYAcsProperties.Create(AServer: TYAcs);
- begin
- inherited Create;
- FServer := AServer;
- end;
- function TYAcsProperties.GetDefaultInterface: IYAcs;
- begin
- Result := FServer.DefaultInterface;
- end;
- function TYAcsProperties.Get_hostName: WideString;
- begin
- Result := DefaultInterface.hostName;
- end;
- procedure TYAcsProperties.Set_hostName(const pVal: WideString);
- { Warning: The property hostName has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.hostName := pVal;
- end;
- function TYAcsProperties.Get_userName: WideString;
- begin
- Result := DefaultInterface.userName;
- end;
- procedure TYAcsProperties.Set_userName(const pVal: WideString);
- { Warning: The property userName has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.userName := pVal;
- end;
- function TYAcsProperties.Get_confName: WideString;
- begin
- Result := DefaultInterface.confName;
- end;
- procedure TYAcsProperties.Set_confName(const pVal: WideString);
- { Warning: The property confName has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.confName := pVal;
- end;
- function TYAcsProperties.Get_monitorGain: Smallint;
- begin
- Result := DefaultInterface.monitorGain;
- end;
- procedure TYAcsProperties.Set_monitorGain(pVal: Smallint);
- begin
- DefaultInterface.Set_monitorGain(pVal);
- end;
- function TYAcsProperties.Get_outputGain: Smallint;
- begin
- Result := DefaultInterface.outputGain;
- end;
- procedure TYAcsProperties.Set_outputGain(pVal: Smallint);
- begin
- DefaultInterface.Set_outputGain(pVal);
- end;
- function TYAcsProperties.Get_inputGain: Smallint;
- begin
- Result := DefaultInterface.inputGain;
- end;
- procedure TYAcsProperties.Set_inputGain(pVal: Smallint);
- begin
- DefaultInterface.Set_inputGain(pVal);
- end;
- function TYAcsProperties.Get_inputMute: Integer;
- begin
- Result := DefaultInterface.inputMute;
- end;
- procedure TYAcsProperties.Set_inputMute(pVal: Integer);
- begin
- DefaultInterface.Set_inputMute(pVal);
- end;
- function TYAcsProperties.Get_outputMute: Integer;
- begin
- Result := DefaultInterface.outputMute;
- end;
- procedure TYAcsProperties.Set_outputMute(pVal: Integer);
- begin
- DefaultInterface.Set_outputMute(pVal);
- end;
- function TYAcsProperties.Get_inputSource: Smallint;
- begin
- Result := DefaultInterface.inputSource;
- end;
- procedure TYAcsProperties.Set_inputSource(pVal: Smallint);
- begin
- DefaultInterface.Set_inputSource(pVal);
- end;
- function TYAcsProperties.Get_monitorMute: Integer;
- begin
- Result := DefaultInterface.monitorMute;
- end;
- procedure TYAcsProperties.Set_monitorMute(pVal: Integer);
- begin
- DefaultInterface.Set_monitorMute(pVal);
- end;
- function TYAcsProperties.Get_socksVersion: Smallint;
- begin
- Result := DefaultInterface.socksVersion;
- end;
- procedure TYAcsProperties.Set_socksVersion(pVal: Smallint);
- begin
- DefaultInterface.Set_socksVersion(pVal);
- end;
- function TYAcsProperties.Get_socksHostname: WideString;
- begin
- Result := DefaultInterface.socksHostname;
- end;
- procedure TYAcsProperties.Set_socksHostname(const pVal: WideString);
- { Warning: The property socksHostname has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.socksHostname := pVal;
- end;
- function TYAcsProperties.Get_socksPort: Smallint;
- begin
- Result := DefaultInterface.socksPort;
- end;
- procedure TYAcsProperties.Set_socksPort(pVal: Smallint);
- begin
- DefaultInterface.Set_socksPort(pVal);
- end;
- function TYAcsProperties.Get_socksUsername: WideString;
- begin
- Result := DefaultInterface.socksUsername;
- end;
- procedure TYAcsProperties.Set_socksUsername(const pVal: WideString);
- { Warning: The property socksUsername has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.socksUsername := pVal;
- end;
- function TYAcsProperties.Get_socksPassword: WideString;
- begin
- Result := DefaultInterface.socksPassword;
- end;
- procedure TYAcsProperties.Set_socksPassword(const pVal: WideString);
- { Warning: The property socksPassword has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.socksPassword := pVal;
- end;
- function TYAcsProperties.Get_confKey: WideString;
- begin
- Result := DefaultInterface.confKey;
- end;
- procedure TYAcsProperties.Set_confKey(const pVal: WideString);
- { Warning: The property confKey has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.confKey := pVal;
- end;
- function TYAcsProperties.Get_inputAGC: Integer;
- begin
- Result := DefaultInterface.inputAGC;
- end;
- procedure TYAcsProperties.Set_inputAGC(pVal: Integer);
- begin
- DefaultInterface.Set_inputAGC(pVal);
- end;
- function TYAcsProperties.Get_inputVOX: Integer;
- begin
- Result := DefaultInterface.inputVOX;
- end;
- procedure TYAcsProperties.Set_inputVOX(pVal: Integer);
- begin
- DefaultInterface.Set_inputVOX(pVal);
- end;
- function TYAcsProperties.Get_inputVOXSensitivity: Smallint;
- begin
- Result := DefaultInterface.inputVOXSensitivity;
- end;
- procedure TYAcsProperties.Set_inputVOXSensitivity(pVal: Smallint);
- begin
- DefaultInterface.Set_inputVOXSensitivity(pVal);
- end;
- function TYAcsProperties.Get_appInfo: WideString;
- begin
- Result := DefaultInterface.appInfo;
- end;
- procedure TYAcsProperties.Set_appInfo(const pVal: WideString);
- { Warning: The property appInfo has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.appInfo := pVal;
- end;
- function TYAcsProperties.Get_soundLocation: WideString;
- begin
- Result := DefaultInterface.soundLocation;
- end;
- procedure TYAcsProperties.Set_soundLocation(const pVal: WideString);
- { Warning: The property soundLocation has a setter and a getter whose
- types do not match. Delphi was unable to generate a property of
- this sort and so is using a Variant as a passthrough. }
- var
- InterfaceVariant: OleVariant;
- begin
- InterfaceVariant := DefaultInterface;
- InterfaceVariant.soundLocation := pVal;
- end;
- {$ENDIF}
- procedure Register;
- begin
- RegisterComponents(dtlServerPage, [TYAcs]);
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement