initial commit
[rofl0r-KOL.git] / units / indy / IdBaseComponent.pas
blob6fd01f843da4fec08855f5838adebb15fbc943d0
1 // 19-nov-2002
2 unit IdBaseComponent;
4 interface
6 uses KOL;
8 type
9 PIdBaseComponent=^TIdBaseComponent;
10 TIdBaseComponent = object(TObj)
11 protected
12 FAOwner:PObj;
13 FOwner:PObj;
14 public
15 procedure Init; virtual;
16 function GetVersion: string;
17 property Version: string read GetVersion;
18 end;
20 function NewIdBaseComponent(axOwner: PObj):PIdBaseComponent;
22 implementation
24 uses
25 IdGlobal;
27 function NewIdBaseComponent(axOwner: PObj):PIdBaseComponent;
28 begin
29 New( Result, Create );
30 Result.FAOwner:=axOwner;
31 Result.Init;
32 end;
34 function TIdBaseComponent.GetVersion: string;
35 begin
36 Result := gsIdVersion;
37 end;
39 procedure TIdBaseComponent.Init;
40 begin
41 FAOwner:=FOwner;
42 inherited;
43 end;
45 end.