source: trunk/Packages/PersistentData/Backend/UPDClientINI.pas

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 
1unit UPDClientINI;
2
3interface
4
5uses
6 Classes, SysUtils, UPDClient, IniFiles;
7
8type
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
25implementation
26
27{ TPDClientINI }
28
29(*procedure TPDClientINI.GetItemList(Condition: TCondition;
30 ItemList: TItemList);
31begin
32 inherited GetItemList(Condition, ItemList);
33end;
34
35procedure TPDClientINI.SetItemList(Condition: TCondition;
36 ItemList: TItemList);
37begin
38 inherited SetItemList(Condition, ItemList);
39end;*)
40
41constructor TPDClientINI.Create(AOwner: TComponent);
42begin
43 inherited;
44 BackendName := 'INI';
45end;
46
47destructor TPDClientINI.Destroy;
48begin
49 Disconnect;
50 inherited;
51end;
52
53procedure TPDClientINI.Connect;
54begin
55 IniFile := TIniFile.Create(FileName);
56end;
57
58procedure TPDClientINI.Disconnect;
59begin
60 FreeAndNil(IniFile);
61end;
62
63end.
64
Note: See TracBrowser for help on using the repository browser.