#include <mw/ErrorUI.h>
class CErrorUI : public CBase |
Public Member Functions | |
---|---|
~CErrorUI() | |
IMPORT_C CErrorUI * | NewL() |
IMPORT_C CErrorUI * | NewL(CCoeEnv &) |
IMPORT_C CErrorUI * | NewLC() |
IMPORT_C CErrorUI * | NewLC(CCoeEnv &) |
IMPORT_C TBool | ShowGlobalErrorNoteL(TInt, CTextResolver::TErrorContext) |
IMPORT_C TBool | ShowGlobalErrorQueryL(TInt, CTextResolver::TErrorContext) |
CTextResolver & | TextResolver() |
maps given error to error text to be displayed
displays error note using timed, global note
does not display error if it is already "on"
offers a reference to internal TextResolver instance
Usage (typically as instance variable) iErrorUI = CErrorUI::NewL(); // iCoeEnv can be given as argument, no need to that though ... some code causing an error ... if ( err != KErrNone ) iErrorUI->ShowGlobalErrorNoteL(err);
IMPORT_C CErrorUI * | NewL | ( | ) | [static] |
This constructor method should be used by servers, does not put the created object into CleanupStack
This constructor method should be used by applications, does not put the created object into CleanupStack
Parameter | Description |
---|---|
aEnv | Reference to caller's control environment |
IMPORT_C CErrorUI * | NewLC | ( | ) | [static] |
This constructor method should be used by servers, puts the created object into CleanupStack
This constructor method should be used by applications, puts the created object into CleanupStack
Parameter | Description |
---|---|
aEnv | Reference to caller's control environment |
IMPORT_C TBool | ShowGlobalErrorNoteL | ( | TInt | aError, |
CTextResolver::TErrorContext | aContext = CTextResolver::ECtxAutomatic | |||
) |
Shows a global error note which is created by resolving to a display text from the given error code. The is the default method to be called by applications to display error messages.
Parameter | Description |
---|---|
aError | Any error code, for example ETel error or Email error. |
aContext | The context of the error, needed in special cases such as WAP errors, usually (and by default) ECtxAutomatic |
Returns: ETrue if error was displayed, EFalse otherwise.
IMPORT_C TBool | ShowGlobalErrorQueryL | ( | TInt | aError, |
CTextResolver::TErrorContext | aContext = CTextResolver::ECtxAutomatic | |||
) |
Shows a global error query with OK key, which is created by resolving to a display text from the given error code. The is the default method to be called by applications to display error queries.
Parameter | Description |
---|---|
aError | Any error code, for example ETel error or Email error. |
aContext | The context of the error, needed in special cases such as WAP errors, usually (and by default) ECtxAutomatic |
Returns: ETrue if error was displayed, EFalse otherwise.
CTextResolver & | TextResolver | ( | ) | [inline] |
Offers a reference to internal TextResolver instance
Returns: reference to ErrorUI's internal TextResolver instance