Свойство | Type | Description | |
---|---|---|---|
m_LastProgress | int |
Méthode | Description | |
---|---|---|
BeginCheckForOnlineUpdates ( ApplicationJob jobs ) : void |
Checks for which of the given applications updates are available asynchronously.
|
|
BeginUpdate ( ApplicationJob jobs, bool onlyCheck, bool installUpdated ) : void |
Starts one or more threads which update the given applications asynchronously.
|
|
Cancel ( ) : void |
Cancels the updating progress.
|
|
GetDownloadSize ( ApplicationJob job ) : long |
Returns the download size of a given application in bytes.
|
|
GetProgress ( ApplicationJob job ) : short |
Returns the progress of the given application.
|
|
GetStatus ( ApplicationJob job ) : Status |
Returns the current status of a given application.
|
Méthode | Description | |
---|---|---|
DoDownload ( ApplicationJob job, |
Executes the actual download from an URL. Does not handle exceptions, but takes care of proper cleanup.
|
|
DoDownload ( ApplicationJob job, string &requestedUrl ) : Status |
Executes the actual download (determines the URL to download from). Does not handle exceptions, but takes care of proper cleanup.
|
|
OnProgressChanged ( long pos, long length, ApplicationJob job ) : void |
Fires the ProgressChangedEvent. Only fires if the progress value has changed significantly to prevent (for example) too frequent GUI updates.
|
|
OnStatusChanged ( ApplicationJob job ) : void |
Fires the StatusChanged event.
|
|
OnUpdateCompleted ( ) : void |
Fires the UpdateCompleted event.
|
|
OnUpdatesFound ( string updatedApps ) : void |
Fires the UpdatesFound.
|
Méthode | Description | |
---|---|---|
AddRequestToCancel ( |
Allows all routines involved in the update to store the corresponding WebRequest here. When the user cancels the process, these WebRequests wil be aborted, so that it finishes more or less instantly.
|
|
CheckForOnlineUpdates ( object argument ) : void |
Checks for which of the given applications updates are available. Fires an event when finished.
|
|
GetBaseHost ( |
Determines the base host (TLD + server name) of an URI.
|
|
GetContentLength ( |
Determines the actual content length in a more reliable way for FTP downloads.
|
|
StartNewThread ( object paramJob ) : void |
Performs the update process of a single application. Catches most exceptions and stores them for later use.
|
|
UpdateApplications ( ) : void |
Performs the actual update check for the current applications. Starts multiple threads if necessary.
|
public BeginCheckForOnlineUpdates ( ApplicationJob jobs ) : void | ||
jobs | ApplicationJob | |
Résultat | void |
public BeginUpdate ( ApplicationJob jobs, bool onlyCheck, bool installUpdated ) : void | ||
jobs | ApplicationJob | |
onlyCheck | bool | Specifies whether or not to download the updates |
installUpdated | bool | |
Résultat | void |
protected DoDownload ( ApplicationJob job, |
||
job | ApplicationJob | The job to process |
urlToRequest | URL from which should be downloaded | |
Résultat | Status |
protected DoDownload ( ApplicationJob job, string &requestedUrl ) : Status | ||
job | ApplicationJob | The job to process |
requestedUrl | string | The URL from which has been downloaded |
Résultat | Status |
public GetDownloadSize ( ApplicationJob job ) : long | ||
job | ApplicationJob | |
Résultat | long |
public GetProgress ( ApplicationJob job ) : short | ||
job | ApplicationJob | |
Résultat | short |
public GetStatus ( ApplicationJob job ) : Status | ||
job | ApplicationJob | |
Résultat | Status |
protected OnProgressChanged ( long pos, long length, ApplicationJob job ) : void | ||
pos | long | Current position of the stream |
length | long | Total length of the stream |
job | ApplicationJob | Current ApplicationJob |
Résultat | void |
protected OnStatusChanged ( ApplicationJob job ) : void | ||
job | ApplicationJob | |
Résultat | void |
protected OnUpdatesFound ( string updatedApps ) : void | ||
updatedApps | string | |
Résultat | void |