API published in: S60 2nd Ed FP 3
Link against: downloadmgruilib.lib
Required Capabilities
None
#include <cdownloadmgruiuserinteractions.h>
Inherits CDownloadMgrUiBase, and MHttpDownloadMgrObserver.
Public Types |
|
enum | TDownloadMgrUiUserInteractionsAttr { EAttrSuppressDownloadConfirmation } |
Attribute enumerations. More... |
|
Public Member Functions |
|
virtual | ~CDownloadMgrUiUserInteractions () |
Destructor. |
|
IMPORT_C TBool | OkToExitL () |
Client Apps can call this function before exiting the application. |
|
IMPORT_C TInt | PrepareToExit (CEikAppUi &aAppUi, TClientAppExitType aExitType, TVwsViewId aViewId, TUid aCustomMessageId, const TDesC8 &aViewActivationMsg) |
Client Apps can call this function in the App UI's destructor. |
|
IMPORT_C TInt | PrepareToExit (TUint32 aAppUid, TUint32 aViewId, TUint32 aCustomMessageId) |
Client Apps can call this function in the App UI's destructor. |
|
IMPORT_C void | HandleDownloadL (RHttpDownload &aDownload) |
Currently it supports handling completed download. |
|
TInt | DownloadConfirmationsShown () const |
The number of download confirmations being shown. |
|
TBool | IsUiBusy () const |
Ask if a handler or something uses the UI, so others should postpone their tasks that require UI. |
|
TBool | IsCodServiceFlowRunning () const |
Is a Cod ServiceFlow running? |
|
TBool | IsCodServiceFlowRunning (RHttpDownload &aDownload) const |
Is Cod ServiceFlow running of the given download? |
|
TBool | IsCodServiceFlowRunningL () const |
Is a Cod ServiceFlow running? LEAVing version. |
|
TBool | IsCodServiceFlowRunningL (RHttpDownload &aDownload) const |
Is Cod ServiceFlow running of the given download? LEAVing version. |
|
void | PostponeCodHandlingL (RHttpDownload &aDownload) |
Postpone handling the given COD download. |
|
TBool | IsPostponed (RHttpDownload &aDownload) const |
Check if the given download is postponed. |
|
void | SchedulePostponedDownloadL () |
Schedule a postponed download for running. |
|
virtual IMPORT_C void | GetIntAttributeL (const TUint aAttribute, TInt32 &aValue) |
Gets the value for a TInt attribute. |
|
virtual IMPORT_C void | GetBoolAttributeL (const TUint aAttribute, TBool &aValue) |
Gets the value for a TBool attribute. |
|
virtual IMPORT_C void | GetStringAttributeL (const TUint aAttribute, TDes16 &aValue) |
Gets the value for a TDes16 attribute. |
|
virtual IMPORT_C void | GetStringAttributeL (const TUint aAttribute, TDes8 &aValue) |
Gets the value for a TDes8 attribute. |
|
virtual IMPORT_C void | SetIntAttributeL (const TUint aAttribute, TInt32 aValue) |
Sets the value for a TInt attribute. |
|
virtual IMPORT_C void | SetBoolAttributeL (const TUint aAttribute, TBool aValue) |
Sets the value for a TBool attribute. |
|
virtual IMPORT_C void | SetStringAttributeL (const TUint aAttribute, const TDesC16 &aValue) |
Sets the value for a TDesC attribute. |
|
virtual IMPORT_C void | SetStringAttributeL (const TUint aAttribute, const TDesC8 &aValue) |
Sets the value for a TDesC8 attribute. |
|
Static Public Member Functions |
|
static CDownloadMgrUiUserInteractions * | NewL (CDownloadMgrUiLibRegistry &aRegistryModel) |
Two-phased constructor. |
|
Protected Member Functions |
|
CDownloadMgrUiUserInteractions (CDownloadMgrUiLibRegistry &aRegistryModel) | |
C++ default constructor. |
|
void | ConstructL () |
By default Symbian 2nd phase constructor is private. |
|
void | HandleCompletionWithQueryL (RHttpDownload &aDownload, TBool aIsUiBusy, TBool aIsSupported, TBool aIsDrm, TBool aDrmRightsOnPhone) |
Wraps DoHandleCompletionWithQueryL() to ensure that only one instance of the dialog is displayed at any point in time. |
|
void | DoHandleCompletionWithQueryL (RHttpDownload &aDownload, TBool aIsUiBusy, TBool aIsSupported, TBool aIsDrm, TBool aDrmRightsOnPhone) |
Handle download completion with query (wait) dialog. |
|
void | PrepareToExitL (CEikAppUi *aAppUi, TClientAppExitType aExitType, TVwsViewId aViewId, TUid aCustomMessageId, const TDesC8 &aViewActivationMsg) |
Leaving version of PrepareToExit(). |
|
TBool | IsStandAloneAppRunning () |
Is a stand-alone instance running from the very same application? |
|
void | DeleteEventHandlerShowingDlConfirmation (RHttpDownload &aDownload) |
Delete Event Handler(s) showing download confirmation query. |
|
void | DeleteEventHandlers (RHttpDownload &aDownload) |
Delete Event Handler(s) belonging to the given download. |
|
void | HandleNormalDownloadL (RHttpDownload &aDownload) |
Handle completed normal download (not COD or OMA, not DRM). |
|
TBool | CodDownloadL (RHttpDownload &aDownload) const |
Check if the download is COD. |
|
virtual void | HandleDMgrEventL (RHttpDownload &aDownload, THttpDownloadEvent aEvent) |
Indicates an event. |
|
Friends |
|
class | CUserInteractionsExtension |
|
Attribute enumerations. |
|
Destructor. |
|
C++ default constructor. |
|
Check if the download is COD.
|
|
By default Symbian 2nd phase constructor is private. |
|
Delete Event Handler(s) belonging to the given download.
|
|
Delete Event Handler(s) showing download confirmation query.
|
|
Handle download completion with query (wait) dialog.
|
|
The number of download confirmations being shown.
|
|
Gets the value for a TBool attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|
Gets the value for a TInt attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|
Gets the value for a TDes8 attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|
Gets the value for a TDes16 attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|
Wraps DoHandleCompletionWithQueryL() to ensure that only one instance of the dialog is displayed at any point in time.
|
|
Indicates an event.
Implements MHttpDownloadMgrObserver. |
|
Currently it supports handling completed download. COD download is deleted, otherwise normal behaviour, that depends on EDlAttrAction (EDoNothing/EMove/ELaunch).
|
|
Handle completed normal download (not COD or OMA, not DRM).
|
|
Is Cod ServiceFlow running of the given download?
|
|
Is a Cod ServiceFlow running?
|
|
Is Cod ServiceFlow running of the given download? LEAVing version.
|
|
Is a Cod ServiceFlow running? LEAVing version.
|
|
Check if the given download is postponed.
|
|
Is a stand-alone instance running from the very same application?
|
|
Ask if a handler or something uses the UI, so others should postpone their tasks that require UI.
|
|
Two-phased constructor. |
|
Client Apps can call this function before exiting the application. It should be called when the user terminates the application. It opens a confirmation query.
|
|
Postpone handling the given COD download. The download is placed to a LIFO queue, and SetHandlerRunning( EFalse ) handles (restarts) the first download in it.
|
|
Client Apps can call this function in the App UI's destructor. It has been made non-leavable, so it can be called without TRAP. It initializes Grouped Soft Notifications, if necessary.
|
|
Client Apps can call this function in the App UI's destructor. It has been made non-leavable, so it can be called without TRAP. It initializes Grouped Soft Notifications, if necessary.
|
|
Leaving version of PrepareToExit().
|
|
Schedule a postponed download for running. |
|
Sets the value for a TBool attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|
Sets the value for a TInt attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|
Sets the value for a TDesC8 attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|
Sets the value for a TDesC attribute. Leaves with KErrNotSupported, if the attribute is not supported.
Implements CDownloadMgrUiBase. |
|