-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunitBrowsers.pas
81 lines (61 loc) · 1.6 KB
/
unitBrowsers.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
Unit for listing current installed web browsers and also managing them in the
database, as well the larabrowser (edge or msie)
}
unit unitBrowsers;
interface
uses
Classes, System.SysUtils, Rest.json, Generics.Collections;
type
TWebBrowser = class
private
FName: String;
FPath: String;
FParam: String;
FEnabled: Boolean;
FPid: Integer;
public
constructor Create(const AName, APath, AParam: String);
destructor Destroy(); override;
property Name: String read FName write FName;
property Path: String read FPath write FPath;
property Param: String read FParam write FParam;
property Enabled: Boolean read FEnabled write FEnabled;
property PID: Integer read FPid write FPid default 0;
end;
TWebBrowsers = class
private
FDefault: Extended;
FItems: TArray<TWebBrowser>;
public
property default: Extended read FDefault write FDefault;
property items: TArray<TWebBrowser> read FItems write FItems;
destructor Destroy; override;
procedure Append(item: TWebBrowser);
procedure Remove(index: Integer);
function Count: Integer;
end;
implementation
{ TWebBrowser }
constructor TWebBrowser.Create(const AName, APath, AParam: String);
begin
end;
destructor TWebBrowser.Destroy;
begin
inherited;
end;
{ TWebBrowsers }
procedure TWebBrowsers.Append(item: TWebBrowser);
begin
end;
function TWebBrowsers.Count: Integer;
begin
end;
destructor TWebBrowsers.Destroy;
begin
inherited;
end;
procedure TWebBrowsers.Remove(index: Integer);
begin
end;
end.