class MNcdDownloadOperation : public MNcdOperation |
Download operation interface.
A download operation handles the downloading of one or more files.
The files are downloaded consecutively and in a predefined order. If parallel downloading is desired, multiple operations can be started.
Common uses for download operatios are downloading a downloadable node's content and downloading graphics for nodes.
Download operations can be queried for the number of the download that is currently being downloaded. The progress information is always relative to the current download.
Public Member Functions | |
---|---|
void | AddObserverL ( MNcdDownloadOperationObserver &) |
TInt | CurrentFile () |
TNcdDownloadDataType | DownloadDataType () |
TInt | FileCount () |
TBool | IsPausableL () |
TBool | IsPaused () |
void | PauseL () |
TBool | RemoveObserver ( MNcdDownloadOperationObserver &) |
void | ResumeL () |
Protected Member Functions | |
---|---|
~MNcdDownloadOperation () |
Inherited Enumerations | |
---|---|
MCatalogsBase:@46 | |
MNcdOperation:@51 | |
MNcdOperation:TState |
void | AddObserverL | ( | MNcdDownloadOperationObserver & | aObserver | ) | [pure virtual] |
Add a new observer for this download operation.
If the observer has already been added, this function doesn't do anything.
Leave |
System wide error code. |
MNcdDownloadOperationObserver & aObserver |
TInt | CurrentFile | ( | ) | [pure virtual] |
Getter for current file number. This is the number of the file that is currently being downloaded.
TNcdDownloadDataType | DownloadDataType | ( | ) | const [pure virtual] |
Download data type getter
ncdoperationdatatypes.h
TInt | FileCount | ( | ) | [pure virtual] |
Getter for file count. This is the total number of files this operation is downloading.
TBool | IsPausableL | ( | ) | [pure virtual] |
Can download be paused
Some DRM content is not pausable
Pausable state may change during the operation
void | PauseL | ( | ) | [pure virtual] |
Pause the download.
Does nothing if the download was already paused, or if the operation is not yet started.
Leave |
System wide error code. |
TBool | RemoveObserver | ( | MNcdDownloadOperationObserver & | aObserver | ) | [pure virtual] |
Remove an observer previously added with AddObserverL() .
MNcdDownloadOperationObserver & aObserver |
void | ResumeL | ( | ) | [pure virtual] |
Resume a paused download.
Does nothing if the download has not been paused, or if the operation is not yet started.
Leave |
System wide error code. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.