2018-04-16 22:10:14 +00:00
|
|
|
{ Map Viewer Download Engine
|
2018-04-16 13:59:19 +00:00
|
|
|
Copyright (C) 2011 Maciej Kaczkowski / keit.co
|
|
|
|
|
2020-04-09 11:06:15 +00:00
|
|
|
License: modified LGPL with linking exception (like RTL, FCL and LCL)
|
2018-04-16 13:59:19 +00:00
|
|
|
|
2020-04-09 11:06:15 +00:00
|
|
|
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distribution,
|
|
|
|
for details about the license.
|
2018-04-16 13:59:19 +00:00
|
|
|
|
2020-04-09 11:06:15 +00:00
|
|
|
See also: https://wiki.lazarus.freepascal.org/FPC_modified_LGPL
|
2018-04-16 13:59:19 +00:00
|
|
|
}
|
2020-04-09 11:06:15 +00:00
|
|
|
|
2018-04-16 13:59:19 +00:00
|
|
|
unit mvDownloadEngine;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Classes, SysUtils;
|
|
|
|
|
2018-04-16 15:15:27 +00:00
|
|
|
type
|
2018-04-16 13:59:19 +00:00
|
|
|
|
2018-04-16 15:15:27 +00:00
|
|
|
{ TMvCustomDownloadEngine }
|
|
|
|
|
|
|
|
TMvCustomDownloadEngine = class(TComponent)
|
2018-04-16 13:59:19 +00:00
|
|
|
public
|
2019-01-27 10:42:57 +00:00
|
|
|
procedure DownloadFile(const {%H-}Url: string; {%H-}AStream: TStream); virtual;
|
2018-04-16 13:59:19 +00:00
|
|
|
end;
|
|
|
|
|
2018-04-16 22:10:14 +00:00
|
|
|
|
2018-04-16 13:59:19 +00:00
|
|
|
implementation
|
|
|
|
|
2018-04-16 15:15:27 +00:00
|
|
|
{ TMvCustomDownloadEngine }
|
2018-04-16 13:59:19 +00:00
|
|
|
|
2018-04-16 15:15:27 +00:00
|
|
|
procedure TMvCustomDownloadEngine.DownloadFile(const Url: string; AStream: TStream);
|
2018-04-16 13:59:19 +00:00
|
|
|
begin
|
2018-04-16 17:57:58 +00:00
|
|
|
// to be overridden...
|
2018-04-16 13:59:19 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
|
|
|