⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfclientproj1_tlb.~pas

📁 一个用Delpi写的视频聊天的SDK
💻 ~PAS
📖 第 1 页 / 共 2 页
字号:
unit rfClientProj1_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 2006-2-8 13:52:46 from Type Library described below.

// ************************************************************************  //
// Type Lib: F:\project\avcSDK\test\rfClientProj1.tlb (1)
// LIBID: {C0F33244-DAD4-4148-82FF-BC5CAF09CF52}
// LCID: 0
// Helpfile: 
// HelpString: rfClientProj1 Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINNT\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, Graphics, OleCtrls, 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
  rfClientProj1MajorVersion = 1;
  rfClientProj1MinorVersion = 0;

  LIBID_rfClientProj1: TGUID = '{C0F33244-DAD4-4148-82FF-BC5CAF09CF52}';

  IID_IrfClient: TGUID = '{36C7CE5D-C51B-434B-B666-03FE35AA16E4}';
  DIID_IrfClientEvents: TGUID = '{2A172E40-673C-4D84-ADC9-13E1EA4BB72A}';
  CLASS_rfClient: TGUID = '{7F7B111E-BC44-47A4-BDC0-BA86E4106296}';

// *********************************************************************//
// Declaration of Enumerations defined in Type Library                    
// *********************************************************************//
// Constants for enum TxActiveFormBorderStyle
type
  TxActiveFormBorderStyle = TOleEnum;
const
  afbNone = $00000000;
  afbSingle = $00000001;
  afbSunken = $00000002;
  afbRaised = $00000003;

// Constants for enum TxPrintScale
type
  TxPrintScale = TOleEnum;
const
  poNone = $00000000;
  poProportional = $00000001;
  poPrintToFit = $00000002;

// Constants for enum TxMouseButton
type
  TxMouseButton = TOleEnum;
const
  mbLeft = $00000000;
  mbRight = $00000001;
  mbMiddle = $00000002;

// Constants for enum TMngCommand
type
  TMngCommand = TOleEnum;
const
  mcxDropUser = $00000000;
  mcxSetTempMng = $00000001;
  mcxUnsetTempMng = $00000002;
  mcxCancelMic = $00000003;
  mcxPrepareMic = $00000004;
  mcxAddMic = $00000005;
  mcxAddMicTick = $00000006;

// Constants for enum TRecMode
type
  TRecMode = TOleEnum;
const
  rmMic = $00000000;
  rmSong = $00000001;
  rmMix = $00000002;

type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IrfClient = interface;
  IrfClientDisp = dispinterface;
  IrfClientEvents = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  rfClient = IrfClient;


// *********************************************************************//
// Declaration of structures, unions and aliases.                         
// *********************************************************************//
  PPUserType1 = ^IFontDisp; {*}


// *********************************************************************//
// Interface: IrfClient
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {36C7CE5D-C51B-434B-B666-03FE35AA16E4}
// *********************************************************************//
  IrfClient = interface(IDispatch)
    ['{36C7CE5D-C51B-434B-B666-03FE35AA16E4}']
    function Get_Visible: WordBool; safecall;
    procedure Set_Visible(Value: WordBool); safecall;
    function Get_AxBorderStyle: TxActiveFormBorderStyle; safecall;
    procedure Set_AxBorderStyle(Value: TxActiveFormBorderStyle); safecall;
    function Get_Color: OLE_COLOR; safecall;
    procedure Set_Color(Value: OLE_COLOR); safecall;
    function Get_Font: IFontDisp; safecall;
    procedure Set_Font(const Value: IFontDisp); safecall;
    procedure _Set_Font(var Value: IFontDisp); safecall;
    function Get_Active: WordBool; safecall;
    function Get_AlignDisabled: WordBool; safecall;
    function Get_VisibleDockClientCount: Integer; safecall;
    function Get_Enabled: WordBool; safecall;
    procedure Set_Enabled(Value: WordBool); safecall;
    procedure AboutBox; safecall;
    procedure InitChannel(AChannelID: Integer; AParentHandle: Integer; AScale: Single; 
                          AVisiBle: WordBool); safecall;
    function Chat(AUserID: LongWord; const AMsg: WideString; ASilent: WordBool): Integer; safecall;
    procedure Command(AmngCommand: Integer; ATargertUserID: LongWord; Param1: Integer; 
                      Param2: Integer); safecall;
    procedure CreateRoom(const ARoomName: WideString; const ARoomMemo: WideString; 
                         const ARoomPassWord: WideString; const AMngPassWord: WideString); safecall;
    procedure GetRoomList(AIndex: Integer); safecall;
    function GetVoiceVolume(AChannelID: Integer): Integer; safecall;
    procedure Init; safecall;
    procedure Login(ARoomID: Integer; AUserID: LongWord; const ANickName: WideString; 
                    const ASex: WideString; const APassWord: WideString; 
                    const ARoomPassWord: WideString; const AMngPassWord: WideString; 
                    const AUserData: WideString); safecall;
    procedure LogOut; safecall;
    procedure MicCancel; safecall;
    function MicReq: Integer; safecall;
    procedure ModifyRoom(ARoomID: Integer; const AMngPassWord: WideString; const AData: WideString); safecall;
    procedure SetChannelState(AChannelID: Integer; AEnable: WordBool); safecall;
    procedure ShowLocalVideo; safecall;
    procedure ShowScaleForm(AChannelID: Integer; AShow: WordBool); safecall;
    function Get_ServerIP: WideString; safecall;
    procedure Set_ServerIP(const Value: WideString); safecall;
    function Get_ServerPort: Integer; safecall;
    procedure Set_ServerPort(Value: Integer); safecall;
    function MakeChatStr(AUserID: LongWord; ATargetUserID: LongWord; const AContent: WideString; 
                         ASilent: WordBool): WideString; safecall;
    function Get_HtmlChatHeader: WideString; safecall;
    procedure Set_HtmlChatHeader(const Value: WideString); safecall;
    function Get_HtmlChatSilent: WideString; safecall;
    procedure Set_HtmlChatSilent(const Value: WideString); safecall;
    procedure TransPack(ATagertUserID: LongWord; const AMsg: WideString); safecall;
    function Get_RecMode: TRecMode; safecall;
    procedure Set_RecMode(Value: TRecMode); safecall;
    function GetUserInfo(AUserID: LongWord; var ANickName: WideString): WideString; safecall;
    procedure SendPlugMsg(APlugID: LongWord; const AMsg: WideString); safecall;
    function Get_SendVideoEnable: WordBool; safecall;
    procedure Set_SendVideoEnable(Value: WordBool); safecall;
    function Get_SendAudioEnable: WordBool; safecall;
    procedure Set_SendAudioEnable(Value: WordBool); safecall;
    function GetChannelByUserID(AUserID: LongWord): Integer; safecall;
    function GetUserIDByChannel(AChannelID: Integer): LongWord; safecall;
    procedure SetPlayAudioEnable(AChannelID: Integer; AEnable: WordBool); safecall;
    procedure SetPlayVideoEnable(AChannelID: Integer; AEnable: WordBool); safecall;
    function GetPlayAudioEnable(AChannelID: Integer): WordBool; safecall;
    function GetPlayVideoEnable(AChannelID: Integer): WordBool; safecall;
    procedure DeleteRoom(ARoomID: Integer; const AMngPassWord: WideString); safecall;
    property Visible: WordBool read Get_Visible write Set_Visible;
    property AxBorderStyle: TxActiveFormBorderStyle read Get_AxBorderStyle write Set_AxBorderStyle;
    property Color: OLE_COLOR read Get_Color write Set_Color;
    property Font: IFontDisp read Get_Font write Set_Font;
    property Active: WordBool read Get_Active;
    property AlignDisabled: WordBool read Get_AlignDisabled;
    property VisibleDockClientCount: Integer read Get_VisibleDockClientCount;
    property Enabled: WordBool read Get_Enabled write Set_Enabled;
    property ServerIP: WideString read Get_ServerIP write Set_ServerIP;
    property ServerPort: Integer read Get_ServerPort write Set_ServerPort;
    property HtmlChatHeader: WideString read Get_HtmlChatHeader write Set_HtmlChatHeader;
    property HtmlChatSilent: WideString read Get_HtmlChatSilent write Set_HtmlChatSilent;
    property RecMode: TRecMode read Get_RecMode write Set_RecMode;
    property SendVideoEnable: WordBool read Get_SendVideoEnable write Set_SendVideoEnable;
    property SendAudioEnable: WordBool read Get_SendAudioEnable write Set_SendAudioEnable;
  end;

// *********************************************************************//
// DispIntf:  IrfClientDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {36C7CE5D-C51B-434B-B666-03FE35AA16E4}
// *********************************************************************//
  IrfClientDisp = dispinterface
    ['{36C7CE5D-C51B-434B-B666-03FE35AA16E4}']
    property Visible: WordBool dispid 201;
    property AxBorderStyle: TxActiveFormBorderStyle dispid 204;
    property Color: OLE_COLOR dispid -501;
    property Font: IFontDisp dispid -512;
    property Active: WordBool readonly dispid 209;
    property AlignDisabled: WordBool readonly dispid 215;
    property VisibleDockClientCount: Integer readonly dispid 216;
    property Enabled: WordBool dispid -514;
    procedure AboutBox; dispid -552;
    procedure InitChannel(AChannelID: Integer; AParentHandle: Integer; AScale: Single; 
                          AVisiBle: WordBool); dispid 202;
    function Chat(AUserID: LongWord; const AMsg: WideString; ASilent: WordBool): Integer; dispid 203;
    procedure Command(AmngCommand: Integer; ATargertUserID: LongWord; Param1: Integer; 
                      Param2: Integer); dispid 205;
    procedure CreateRoom(const ARoomName: WideString; const ARoomMemo: WideString; 
                         const ARoomPassWord: WideString; const AMngPassWord: WideString); dispid 206;
    procedure GetRoomList(AIndex: Integer); dispid 207;
    function GetVoiceVolume(AChannelID: Integer): Integer; dispid 208;
    procedure Init; dispid 210;
    procedure Login(ARoomID: Integer; AUserID: LongWord; const ANickName: WideString; 
                    const ASex: WideString; const APassWord: WideString; 
                    const ARoomPassWord: WideString; const AMngPassWord: WideString; 
                    const AUserData: WideString); dispid 211;
    procedure LogOut; dispid 212;
    procedure MicCancel; dispid 213;
    function MicReq: Integer; dispid 214;
    procedure ModifyRoom(ARoomID: Integer; const AMngPassWord: WideString; const AData: WideString); dispid 217;
    procedure SetChannelState(AChannelID: Integer; AEnable: WordBool); dispid 218;
    procedure ShowLocalVideo; dispid 219;
    procedure ShowScaleForm(AChannelID: Integer; AShow: WordBool); dispid 220;
    property ServerIP: WideString dispid 221;
    property ServerPort: Integer dispid 222;
    function MakeChatStr(AUserID: LongWord; ATargetUserID: LongWord; const AContent: WideString; 
                         ASilent: WordBool): WideString; dispid 223;
    property HtmlChatHeader: WideString dispid 224;
    property HtmlChatSilent: WideString dispid 225;
    procedure TransPack(ATagertUserID: LongWord; const AMsg: WideString); dispid 226;
    property RecMode: TRecMode dispid 227;
    function GetUserInfo(AUserID: LongWord; var ANickName: WideString): WideString; dispid 228;
    procedure SendPlugMsg(APlugID: LongWord; const AMsg: WideString); dispid 229;
    property SendVideoEnable: WordBool dispid 230;
    property SendAudioEnable: WordBool dispid 231;
    function GetChannelByUserID(AUserID: LongWord): Integer; dispid 232;
    function GetUserIDByChannel(AChannelID: Integer): LongWord; dispid 233;
    procedure SetPlayAudioEnable(AChannelID: Integer; AEnable: WordBool); dispid 234;
    procedure SetPlayVideoEnable(AChannelID: Integer; AEnable: WordBool); dispid 235;
    function GetPlayAudioEnable(AChannelID: Integer): WordBool; dispid 236;
    function GetPlayVideoEnable(AChannelID: Integer): WordBool; dispid 237;
    procedure DeleteRoom(ARoomID: Integer; const AMngPassWord: WideString); dispid 238;
  end;

// *********************************************************************//
// DispIntf:  IrfClientEvents
// Flags:     (4096) Dispatchable
// GUID:      {2A172E40-673C-4D84-ADC9-13E1EA4BB72A}
// *********************************************************************//
  IrfClientEvents = dispinterface
    ['{2A172E40-673C-4D84-ADC9-13E1EA4BB72A}']
    procedure OnActivate; dispid 201;
    procedure OnClick; dispid 202;
    procedure OnCreate; dispid 203;
    procedure OnDblClick; dispid 204;
    procedure OnDestroy; dispid 205;
    procedure OnDeactivate; dispid 206;
    procedure OnKeyPress(var Key: Smallint); dispid 207;
    procedure OnPaint; dispid 208;
    procedure OnMSG(const AMsg: WideString); dispid 209;
    procedure OnError(const AErroMsg: WideString); dispid 210;
    procedure OnLog(const ALogMsg: WideString); dispid 211;
  end;


// *********************************************************************//
// OLE Control Proxy class declaration
// Control Name     : TrfClient
// Help String      : rfClient Control
// Default Interface: IrfClient
// Def. Intf. DISP? : No
// Event   Interface: IrfClientEvents
// TypeFlags        : (34) CanCreate Control
// *********************************************************************//
  TrfClientOnKeyPress = procedure(ASender: TObject; var Key: Smallint) of object;
  TrfClientOnMSG = procedure(ASender: TObject; const AMsg: WideString) of object;
  TrfClientOnError = procedure(ASender: TObject; const AErroMsg: WideString) of object;
  TrfClientOnLog = procedure(ASender: TObject; const ALogMsg: WideString) of object;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -