|
Last change
on this file was 561, checked in by chronos, 3 years ago |
- Modified: Code cleanup.
- Modified: Use Generics.Collections.
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | unit UPDClientRegistry;
|
|---|
| 2 |
|
|---|
| 3 | interface
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | Classes, SysUtils, UPDClient, Registry;
|
|---|
| 7 |
|
|---|
| 8 | type
|
|---|
| 9 |
|
|---|
| 10 | { TPDClientRegistry }
|
|---|
| 11 |
|
|---|
| 12 | TPDClientRegistry = class(TPDClient)
|
|---|
| 13 | public
|
|---|
| 14 | Reg: TRegistry;
|
|---|
| 15 | //procedure GetItemList(Condition: TCondition; ItemList: TItemList); override;
|
|---|
| 16 | //procedure SetItemList(Condition: TCondition; ItemList: TItemList); override;
|
|---|
| 17 | constructor Create(AOwner: TComponent); override;
|
|---|
| 18 | destructor Destroy; override;
|
|---|
| 19 | end;
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | implementation
|
|---|
| 23 |
|
|---|
| 24 | { TPDClientRegistry }
|
|---|
| 25 |
|
|---|
| 26 | (*procedure TPDClientRegistry.GetItemList(Condition: TCondition;
|
|---|
| 27 | ItemList: TItemList);
|
|---|
| 28 | begin
|
|---|
| 29 | inherited GetItemList(Condition, ItemList);
|
|---|
| 30 | end;
|
|---|
| 31 |
|
|---|
| 32 | procedure TPDClientRegistry.SetItemList(Condition: TCondition;
|
|---|
| 33 | ItemList: TItemList);
|
|---|
| 34 | begin
|
|---|
| 35 | inherited SetItemList(Condition, ItemList);
|
|---|
| 36 | end;*)
|
|---|
| 37 |
|
|---|
| 38 | constructor TPDClientRegistry.Create(AOwner: TComponent);
|
|---|
| 39 | begin
|
|---|
| 40 | inherited;
|
|---|
| 41 | Reg := TRegistry.Create;
|
|---|
| 42 | BackendName := 'Windows registry';
|
|---|
| 43 | end;
|
|---|
| 44 |
|
|---|
| 45 | destructor TPDClientRegistry.Destroy;
|
|---|
| 46 | begin
|
|---|
| 47 | Reg.Free;
|
|---|
| 48 | inherited;
|
|---|
| 49 | end;
|
|---|
| 50 |
|
|---|
| 51 | end.
|
|---|
| 52 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.