MNcdDownloadOperationObserver Class Reference

class MNcdDownloadOperationObserver

Observer interface for download operations

Download operation users should implement this interface to be able to receive callbacks.

Member Functions Documentation

DownloadProgress(MNcdDownloadOperation &, TNcdProgress)

voidDownloadProgress(MNcdDownloadOperation &aOperation,
TNcdProgressaProgress
)[pure virtual]

Called when a download has progressed. The progress value is relative to the current file being downloaded.

Parameters

MNcdDownloadOperation & aOperationThe operation that sent the event.
TNcdProgress aProgressProgress of the operation.

OperationComplete(MNcdDownloadOperation &, TInt)

voidOperationComplete(MNcdDownloadOperation &aOperation,
TIntaError
)[pure virtual]

Called when an operation has been completed.

Parameters

MNcdDownloadOperation & aOperationThe operation that sent the event.
TInt aErrorError code for operation completion. KErrNone for successful completion, otherwise a system wide error code.

QueryReceived(MNcdDownloadOperation &, MNcdQuery *)

voidQueryReceived(MNcdDownloadOperation &aOperation,
MNcdQuery *aQuery
)[pure virtual]

Called when a query has been received for an operation.

Note:

Querys need to be completed with MNcdOperation::CompleteQueryL() to continue the operation! Alternatively, the operation must be cancelled.

MNcdOperation MNcdQuery MNcdOperation::CompleteQueryL()

Parameters

MNcdDownloadOperation & aOperationThe operation that sent the event.
MNcdQuery * aQueryPointer to the query object that needs to be completed. Counted, Release() must be called after use.