class CDiagPluginWaitingDialogWrapper : public CBase |
Diagnostics Plugin Waiting Dialog Wrapper.
This class provides a wrapper for executing dialogs. The only functionality it adds is that it provides a way for the caller to find out whether the dialog was dismissed by the user response, or by application deletion.
Public Member Functions | |
---|---|
~CDiagPluginWaitingDialogWrapper () | |
IMPORT_C CDiagPluginWaitingDialogWrapper * | NewL ( CAknDialog *) |
IMPORT_C TBool | RunLD ( TInt &) |
Private Member Functions | |
---|---|
CDiagPluginWaitingDialogWrapper ( CAknDialog *) |
Private Attributes | |
---|---|
TBool * | iIsObjectDeletedPtr |
CAknDialog * | iWaitingDialog |
CDiagPluginWaitingDialogWrapper | ( | CAknDialog * | aWaitingDialog | ) | [private] |
C++ Constructor
CAknDialog * aWaitingDialog |
IMPORT_C | ~CDiagPluginWaitingDialogWrapper | ( | ) | [virtual] |
Destructor.
IMPORT_C CDiagPluginWaitingDialogWrapper * | NewL | ( | CAknDialog * | aWaitingDialog | ) | [static] |
Two-phased constructor.
CAknDialog * aWaitingDialog |
IMPORT_C TBool | RunLD | ( | TInt & | aDialogResponse | ) |
Run a dialog that waits for response.
To dismiss the dialog, simply delete CDiagPluginWaitingDialogWrapper instance.
The difference from normal dialog RunLD is that this function returns ETrue if dialog exited due to user response and EFalse if the object was deleted.
!!!! NOTE THAT PLUG-IN MUST RETURN IMMEDIATELY WITHOUT ACCESSING !!!! !!!! LOCAL VARIABLE OR LOCAL FUNCITONS WHEN THIS FUNCTION RETURNS !!!! !!!! EFalse VALUE BECAUSE "THIS" POINTER MAY BE FREED ALREADY. !!!!
The normal dialog response is returned via aDialogResponse parameter.
avkon.hrh "CBA constants". E.g. EAknSoftkeyYes The only exception is that if cancel is pressed, it will be 0.
TInt & aDialogResponse | - Response from the dialog. For detailed values |
TBool * | iIsObjectDeletedPtr | [private] |
Indicates whether this class is deleted by caller. Ownership: Not owned. Normally, it will point to a stack entry.
CAknDialog * | iWaitingDialog | [private] |
Pointer to the dialog being displayed. Ownership: Shared. Normally, dialog will dismiss itself. However, if plug-in is being deleted, it can be deleted by the plug-in as well.
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.