-
Notifications
You must be signed in to change notification settings - Fork 1
/
UnitVars.pas
118 lines (92 loc) · 2.05 KB
/
UnitVars.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
unit UnitVars;
interface
uses
Windows, Messages, SysUtils, Variants,
Classes, Graphics, Controls, Forms;
// Dialogs;
// procedure InitVars();
type
SearchT = record
Name: string; // Íàçâàíèå ñàéòà/çîíà ïîèñêà
fSearchDo: boolean; // process download and parse urls
iTime, // âðåìÿ äî ñòàðòà ïîèñêà
Progress, ProgressMax, // ïðîãðåññ ïîèñêà
DoneURLs: integer; // êîë-âî çàãðóæåííûõ ññûëîê
FlgCancel: boolean; // ôëàã ïðåðûâàíèÿ ïîèñêà
Status: string; // ñîîáùåíèÿ ñòàòóñà â StatusBar
NewItems: integer; // êîë-âî íîâûõ çàï÷àñòåé
end;
type
TOpt2 = record // íàñòðîéêè ñàéòà .NET
SiteLoginURL, SiteURL, Login1, Login2, Login3: string;
end;
type
TSets = class(TObject)
public
DatabaseFileName, SiteURL: string;
LsURLs: TStrings;
Opt2: TOpt2;
Constructor Create;
Destructor Destroy; override;
end;
type
TsItem = class(TObject)
public
Foto, Firm, Name, Body, N1, N2, Price, Saler: string;
Date: TDate;
Constructor Create;
Destructor Destroy; override;
end;
type
TsItem2 = class(TObject)
public
part1, part2, partnumber: string;
Constructor Create;
Destructor Destroy; override;
end;
implementation
{
procedure Log(Msg: string);
begin
end;
procedure InitVars();
begin
end; }
{ TSets }
constructor TSets.Create;
begin
DatabaseFileName := 'Database.mdb';
DatabaseFileName := extractfilepath(Application.ExeName) + DatabaseFileName;
SiteURL :=
'http://parts.japancar.ru/?code=parts&mode=old&cl=search_partsoldng';
LsURLs := TStringList.Create;
with Opt2 do
begin
SiteLoginURL := 'http://www.bl-recycle.jp/servlet/EW3SAS_WEB_PS';
SiteURL := 'http://www.bl-recycle.jp/psnet/com/AUP1100.HTML';
Login1 := '8297400';
Login2 := 'ps84124q';
Login3 := 'ab340u79';
end;
end;
destructor TSets.Destroy;
begin
inherited;
end;
{ TsItem }
constructor TsItem.Create;
begin
end;
destructor TsItem.Destroy;
begin
inherited;
end;
{ TsItem2 }
constructor TsItem2.Create;
begin
end;
destructor TsItem2.Destroy;
begin
inherited;
end;
end.