THYAutoUpdateClient

Overview

Location


 

constructor Create  override

constructor Create(aOwner: TComponent)

Parameters:

  • aOwner:

AutoUpdateService  protected

property AutoUpdateService: IHYAutoUpdateService read

DeleteTemporaryFiles

function DeleteTemporaryFiles(anUpdateList: THYFileUpdateInfoArray): Integer

Parameters:

  • anUpdateList:

DoDownloadUpdates  protected virtual

procedure DoDownloadUpdates(anUpdateList: THYFileUpdateInfoArray; out UserInterrupted: Boolean)

Parameters:

  • anUpdateList:
  • UserInterrupted:

DownloadBufferSize

property DownloadBufferSize: Integer read write

Downloading

property Downloading: Boolean read

DownloadProgress

property DownloadProgress: Integer read

DownloadSize

property DownloadSize: Integer read

DownloadUpdates

function DownloadUpdates(const anUpdateList: THYFileUpdateInfoArray): Boolean

Parameters:

  • anUpdateList:

FileSearchInfo

property FileSearchInfo: THYFileSearchInfoCollection read write

FinalizeUpdate

function FinalizeUpdate(anUpdateList: THYFileUpdateInfoArray): Boolean

Parameters:

  • anUpdateList:

GetUpdatesInfo

function GetUpdatesInfo(const aLastUpdateID: string; out CanResume: Boolean): THYFileUpdateInfoArray

Parameters:

  • aLastUpdateID:
  • CanResume:

LoopResumableUpdates  protected

function LoopResumableUpdates(anUpdateInfoArray: THYFileUpdateInfoArray; anOperation: THYResumableUpdatesOperation): Integer

Parameters:

  • anUpdateInfoArray:
  • anOperation:

OnAfterFileReplace

property OnAfterFileReplace: THYAfterFileReplaceEvent read write
delegate: procedure OnAfterFileReplace(Sender: THYAutoUpdateClient; anUpdate: THYFileUpdateInfo; Failed: Boolean; var Ignore: Boolean)

OnBeforeFileReplace

property OnBeforeFileReplace: THYBeforeFileReplaceEvent read write
delegate: procedure OnBeforeFileReplace(Sender: THYAutoUpdateClient; anUpdate: THYFileUpdateInfo)

OnBeginDownloadUpdate

property OnBeginDownloadUpdate: THYDownloadUpdateBeginEvent read write
delegate: procedure OnBeginDownloadUpdate(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo; Resumed: Boolean; Progress: Integer; Size: Integer)

OnBeginDownloadUpdates

property OnBeginDownloadUpdates: THYDownloadUpdatesNotificationEvent read write
delegate: procedure OnBeginDownloadUpdates(Sender: THYAutoUpdateClient; const anUpdateList: THYFileUpdateInfoArray)

OnDownloadProgress

property OnDownloadProgress: THYDownloadProgressEvent read write
delegate: procedure OnDownloadProgress(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo; Progress: Integer; var Continue: Boolean)

OnEndDownloadUpdate

property OnEndDownloadUpdate: THYDownloadUpdateEndEvent read write
delegate: procedure OnEndDownloadUpdate(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo)

OnEndDownloadUpdates

property OnEndDownloadUpdates: THYDownloadUpdatesEndEvent read write
delegate: procedure OnEndDownloadUpdates(Sender: THYAutoUpdateClient; const anUpdateList: THYFileUpdateInfoArray; UserInterrupted: Boolean)

OnResumeDownload

property OnResumeDownload: THYDownloadResumeEvent read write
delegate: procedure OnResumeDownload(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo; Progress: Integer; var CanResume: Boolean)

OnUpdatesFound

property OnUpdatesFound: THYUpdatesFoundEvent read write
delegate: procedure OnUpdatesFound(Sender: THYAutoUpdateClient; const anUpdateList: THYFileUpdateInfoArray; Resumable: Boolean)

OnUpdatesNotFound

property OnUpdatesNotFound: THYUpdatesNotFoundEvent read write
delegate: procedure OnUpdatesNotFound(Sender: THYAutoUpdateClient)

OnVerityUpdateStatus

property OnVerityUpdateStatus: THYVerityUpdateStatusEvent read write
delegate: procedure OnVerityUpdateStatus(Sender: THYAutoUpdateClient; var Status: THYUpdateStatus; const ServerUpdateID: string; const UserData: string)

RefreshDownloadProgress

function RefreshDownloadProgress(anUpdateList: THYFileUpdateInfoArray): Integer

Parameters:

  • anUpdateList:

StopDownload

procedure StopDownload

TemporaryFileNamePrefix

property TemporaryFileNamePrefix: string read write

VerifyUpdateStatus

function VerifyUpdateStatus(const aLastUpdateID: string; out CurrentUpdateID: string; out UserData: string): THYUpdateStatus

Parameters:

  • aLastUpdateID:
  • CurrentUpdateID:
  • UserData:

 

AutoUpdateService  protected

property AutoUpdateService: IHYAutoUpdateService read

DownloadBufferSize

property DownloadBufferSize: Integer read write

Downloading

property Downloading: Boolean read

DownloadProgress

property DownloadProgress: Integer read

DownloadSize

property DownloadSize: Integer read

FileSearchInfo

property FileSearchInfo: THYFileSearchInfoCollection read write

TemporaryFileNamePrefix

property TemporaryFileNamePrefix: string read write

 

constructor Create  override

constructor Create(aOwner: TComponent)

Parameters:

  • aOwner:

DeleteTemporaryFiles

function DeleteTemporaryFiles(anUpdateList: THYFileUpdateInfoArray): Integer

Parameters:

  • anUpdateList:

DoDownloadUpdates  protected virtual

procedure DoDownloadUpdates(anUpdateList: THYFileUpdateInfoArray; out UserInterrupted: Boolean)

Parameters:

  • anUpdateList:
  • UserInterrupted:

DownloadUpdates

function DownloadUpdates(const anUpdateList: THYFileUpdateInfoArray): Boolean

Parameters:

  • anUpdateList:

FinalizeUpdate

function FinalizeUpdate(anUpdateList: THYFileUpdateInfoArray): Boolean

Parameters:

  • anUpdateList:

GetUpdatesInfo

function GetUpdatesInfo(const aLastUpdateID: string; out CanResume: Boolean): THYFileUpdateInfoArray

Parameters:

  • aLastUpdateID:
  • CanResume:

LoopResumableUpdates  protected

function LoopResumableUpdates(anUpdateInfoArray: THYFileUpdateInfoArray; anOperation: THYResumableUpdatesOperation): Integer

Parameters:

  • anUpdateInfoArray:
  • anOperation:

RefreshDownloadProgress

function RefreshDownloadProgress(anUpdateList: THYFileUpdateInfoArray): Integer

Parameters:

  • anUpdateList:

StopDownload

procedure StopDownload

VerifyUpdateStatus

function VerifyUpdateStatus(const aLastUpdateID: string; out CurrentUpdateID: string; out UserData: string): THYUpdateStatus

Parameters:

  • aLastUpdateID:
  • CurrentUpdateID:
  • UserData:

 

OnAfterFileReplace

property OnAfterFileReplace: THYAfterFileReplaceEvent read write
delegate: procedure OnAfterFileReplace(Sender: THYAutoUpdateClient; anUpdate: THYFileUpdateInfo; Failed: Boolean; var Ignore: Boolean)

OnBeforeFileReplace

property OnBeforeFileReplace: THYBeforeFileReplaceEvent read write
delegate: procedure OnBeforeFileReplace(Sender: THYAutoUpdateClient; anUpdate: THYFileUpdateInfo)

OnBeginDownloadUpdate

property OnBeginDownloadUpdate: THYDownloadUpdateBeginEvent read write
delegate: procedure OnBeginDownloadUpdate(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo; Resumed: Boolean; Progress: Integer; Size: Integer)

OnBeginDownloadUpdates

property OnBeginDownloadUpdates: THYDownloadUpdatesNotificationEvent read write
delegate: procedure OnBeginDownloadUpdates(Sender: THYAutoUpdateClient; const anUpdateList: THYFileUpdateInfoArray)

OnDownloadProgress

property OnDownloadProgress: THYDownloadProgressEvent read write
delegate: procedure OnDownloadProgress(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo; Progress: Integer; var Continue: Boolean)

OnEndDownloadUpdate

property OnEndDownloadUpdate: THYDownloadUpdateEndEvent read write
delegate: procedure OnEndDownloadUpdate(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo)

OnEndDownloadUpdates

property OnEndDownloadUpdates: THYDownloadUpdatesEndEvent read write
delegate: procedure OnEndDownloadUpdates(Sender: THYAutoUpdateClient; const anUpdateList: THYFileUpdateInfoArray; UserInterrupted: Boolean)

OnResumeDownload

property OnResumeDownload: THYDownloadResumeEvent read write
delegate: procedure OnResumeDownload(Sender: THYAutoUpdateClient; UpdateInfo: THYFileUpdateInfo; Progress: Integer; var CanResume: Boolean)

OnUpdatesFound

property OnUpdatesFound: THYUpdatesFoundEvent read write
delegate: procedure OnUpdatesFound(Sender: THYAutoUpdateClient; const anUpdateList: THYFileUpdateInfoArray; Resumable: Boolean)

OnUpdatesNotFound

property OnUpdatesNotFound: THYUpdatesNotFoundEvent read write
delegate: procedure OnUpdatesNotFound(Sender: THYAutoUpdateClient)

OnVerityUpdateStatus

property OnVerityUpdateStatus: THYVerityUpdateStatusEvent read write
delegate: procedure OnVerityUpdateStatus(Sender: THYAutoUpdateClient; var Status: THYUpdateStatus; const ServerUpdateID: string; const UserData: string)