Last change
on this file was 137, checked in by chronos, 2 years ago |
- Added: Robots page.
- Modified: Canonical URL for webcams.
- Modified: Removed compiler mode delphi as it is already set in project.
- Modified: Updated Common package.
- Modified: Use Generics.Collections instead of fgl.
|
File size:
1.2 KB
|
Line | |
---|
1 | unit UPDClientINI;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, UPDClient, IniFiles;
|
---|
7 |
|
---|
8 | type
|
---|
9 |
|
---|
10 | { TPDClientINI }
|
---|
11 |
|
---|
12 | TPDClientINI = class(TPDClient)
|
---|
13 | public
|
---|
14 | IniFile: TIniFile;
|
---|
15 | //procedure GetItemList(Condition: TCondition; ItemList: TItemList); override;
|
---|
16 | //procedure SetItemList(Condition: TCondition; ItemList: TItemList); override;
|
---|
17 | FileName: string;
|
---|
18 | constructor Create(AOwner: TComponent); override;
|
---|
19 | destructor Destroy; override;
|
---|
20 | procedure Connect; override;
|
---|
21 | procedure Disconnect; override;
|
---|
22 | end;
|
---|
23 |
|
---|
24 |
|
---|
25 | implementation
|
---|
26 |
|
---|
27 | { TPDClientINI }
|
---|
28 |
|
---|
29 | (*procedure TPDClientINI.GetItemList(Condition: TCondition;
|
---|
30 | ItemList: TItemList);
|
---|
31 | begin
|
---|
32 | inherited GetItemList(Condition, ItemList);
|
---|
33 | end;
|
---|
34 |
|
---|
35 | procedure TPDClientINI.SetItemList(Condition: TCondition;
|
---|
36 | ItemList: TItemList);
|
---|
37 | begin
|
---|
38 | inherited SetItemList(Condition, ItemList);
|
---|
39 | end;*)
|
---|
40 |
|
---|
41 | constructor TPDClientINI.Create(AOwner: TComponent);
|
---|
42 | begin
|
---|
43 | inherited;
|
---|
44 | BackendName := 'INI';
|
---|
45 | end;
|
---|
46 |
|
---|
47 | destructor TPDClientINI.Destroy;
|
---|
48 | begin
|
---|
49 | Disconnect;
|
---|
50 | inherited;
|
---|
51 | end;
|
---|
52 |
|
---|
53 | procedure TPDClientINI.Connect;
|
---|
54 | begin
|
---|
55 | IniFile := TIniFile.Create(FileName);
|
---|
56 | end;
|
---|
57 |
|
---|
58 | procedure TPDClientINI.Disconnect;
|
---|
59 | begin
|
---|
60 | FreeAndNil(IniFile);
|
---|
61 | end;
|
---|
62 |
|
---|
63 | end.
|
---|
64 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.