Skip to content

Commit 95a0394

Browse files
- mudança no tipo da propriedade EngineType do RALClient de StringRAL para String
1 parent a782225 commit 95a0394

2 files changed

Lines changed: 5 additions & 16 deletions

File tree

src/base/RALClient.pas

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ TRALClient = class(TRALComponent)
104104
FCompressType: TRALCompressType;
105105
FCritSession: TCriticalSection;
106106
FCriptoOptions: TRALCriptoOptions;
107-
FEngineType : StringRAL;
107+
FEngineType : String;
108108
FEngine: StringRAL;
109109
FIndexUrl: IntegerRAL;
110110
FKeepAlive: boolean;
@@ -135,7 +135,7 @@ TRALClient = class(TRALComponent)
135135
procedure SetAuthentication(AValue: TRALAuthClient);
136136
procedure SetBaseURL(AValue: TStrings);
137137
procedure SetConnectTimeout(const AValue: IntegerRAL); virtual;
138-
procedure SetEngineType(AValue: StringRAL);
138+
procedure SetEngineType(AValue: String);
139139
procedure SetKeepAlive(AValue: boolean); virtual;
140140
procedure SetRequestTimeout(AValue: IntegerRAL); virtual;
141141
procedure SetUserAgent(AValue: StringRAL); virtual;
@@ -180,7 +180,7 @@ TRALClient = class(TRALComponent)
180180
property CompressType: TRALCompressType read FCompressType write FCompressType;
181181
property CriptoOptions: TRALCriptoOptions read FCriptoOptions write FCriptoOptions;
182182
property Engine: StringRAL read FEngine;
183-
property EngineType : StringRAL read FEngineType write SetEngineType;
183+
property EngineType : String read FEngineType write SetEngineType;
184184
property KeepAlive: boolean read FKeepAlive write SetKeepAlive;
185185
property RequestTimeout: IntegerRAL read FRequestTimeout write SetRequestTimeout default 30000;
186186
property UserAgent: StringRAL read FUserAgent write SetUserAgent;
@@ -212,19 +212,8 @@ procedure DoneEngineDefs;
212212
end;
213213

214214
procedure RegisterEngine(AEngine: TRALClientHTTPClass);
215-
//var
216-
// vTxt : TextFile;
217215
begin
218216
CheckEngineDefs;
219-
{
220-
AssignFile(vTxt, 'd:\testeral.txt');
221-
if FileExists('d:\testeral.txt') then
222-
Append(vTxt)
223-
else
224-
Rewrite(vTxt);
225-
Writeln(vTxt, AEngine.ClassName);
226-
CloseFile(vTxt);
227-
}
228217

229218
if EnginesDefs.IndexOfName(AEngine.EngineName) < 0 then
230219
EnginesDefs.Add(AEngine.EngineName + '=' + AEngine.ClassName);
@@ -262,7 +251,7 @@ procedure GetEngineList(AList: TStrings);
262251

263252
{ TRALClient }
264253

265-
procedure TRALClient.SetEngineType(AValue: StringRAL);
254+
procedure TRALClient.SetEngineType(AValue: String);
266255
var
267256
vClass : TRALClientHTTPClass;
268257
begin

src/base/RALRegister.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ procedure Register;
107107

108108
// property registration process
109109
RegisterPropertyEditor(TypeInfo(TStrings), TRALClient, 'BaseURL', TRALBaseURLEditor);
110-
RegisterPropertyEditor(TypeInfo(StringRAL), TRALClient, 'EngineType', TRALClientEngines);
110+
RegisterPropertyEditor(TypeInfo(String), TRALClient, 'EngineType', TRALClientEngines);
111111
RegisterPropertyEditor(TypeInfo(TRALCompressType), TRALClient, 'CompressType', TRALCompressEditor);
112112
RegisterPropertyEditor(TypeInfo(TRALCompressType), TRALServer, 'CompressType', TRALCompressEditor);
113113
end;

0 commit comments

Comments
 (0)