class CMsvSendErrorActions : public CBase |
This class determines what action to take if an error occurs while the Server MTM is sending a message (or messages).
It encapsulates an array of TMsvSendErrorAction objects, which it uses to determine the action to take for a particular error. If the error is not found in the array, then CMsvSendErrorActions uses its default TMsvSendErrorAction object.
Public Member Functions | |
---|---|
~CMsvSendErrorActions () | |
IMPORT_C void | AddSendErrorActionL (const TMsvSendErrorAction &) |
IMPORT_C const TMsvSendErrorAction & | Default () |
IMPORT_C const CArrayFixFlat < TMsvSendErrorAction > & | Errors () |
IMPORT_C TInt | GetSendErrorAction (const TInt , TMsvSendErrorAction &) |
IMPORT_C CMsvSendErrorActions * | NewL () |
IMPORT_C CMsvSendErrorActions * | NewLC () |
IMPORT_C TInt | RemoveSendErrorAction (const TInt ) |
IMPORT_C void | Reset () |
IMPORT_C void | RestoreFromResourceL ( TResourceReader &) |
IMPORT_C void | SetDefault (const TMsvSendErrorAction &) |
IMPORT_C void | SetErrorsL (const CArrayFixFlat < TMsvSendErrorAction > &) |
Private Member Functions | |
---|---|
CMsvSendErrorActions () | |
void | ConstructL () |
TInt | Find (const TInt , TInt &) |
void | RestoreErrorActionL ( TResourceReader &, TInt , const TBool ) |
Private Attributes | |
---|---|
TMsvSendErrorAction | iDefault |
CArrayFixFlat < TMsvSendErrorAction > * | iErrors |
IMPORT_C void | AddSendErrorActionL | ( | const TMsvSendErrorAction & | aErrorAction | ) |
Adds a TMsvSendErrorAction object.
If a TMsvSendErrorAction already exists in the collection for the same error, then it is replaced by aAction.
const TMsvSendErrorAction & aErrorAction | Error action to add. |
IMPORT_C const TMsvSendErrorAction & | Default | ( | ) | const |
Gets the default error-action.
The default is used if a specified error-action is not found for the error.
IMPORT_C const CArrayFixFlat < TMsvSendErrorAction > & | Errors | ( | ) | const |
Gets the object's array of error-actions.
IMPORT_C TInt | GetSendErrorAction | ( | const TInt | aError, |
TMsvSendErrorAction & | aErrorAction | |||
) | const |
Gets an error action for a specified error.
const TInt aError | Error to find. |
TMsvSendErrorAction & aErrorAction | On return, the corresponding TMsvSendErrorAction. |
IMPORT_C CMsvSendErrorActions * | NewL | ( | ) | [static] |
Allocates and creates a new CMsvSendErrorActions object.
IMPORT_C CMsvSendErrorActions * | NewLC | ( | ) | [static] |
Allocates and creates a new CMsvSendErrorActions object.
IMPORT_C TInt | RemoveSendErrorAction | ( | const TInt | aError | ) |
Removes an error action.
const TInt aError | Error to remove. |
void | RestoreErrorActionL | ( | TResourceReader & | aReader, |
TInt | aActionCount, | |||
const TBool | aDefault | |||
) | [private] |
TResourceReader & aReader | |
TInt aActionCount | |
const TBool aDefault |
IMPORT_C void | RestoreFromResourceL | ( | TResourceReader & | aReader | ) |
Restores the object from a resource.
The resource must be of type SEND_ERROR_ACTIONS.
TResourceReader & aReader | Resource reader at appropriate resource. |
IMPORT_C void | SetDefault | ( | const TMsvSendErrorAction & | aAction | ) |
Sets the default error-action.
const TMsvSendErrorAction & aAction | Default error-action. |
IMPORT_C void | SetErrorsL | ( | const CArrayFixFlat < TMsvSendErrorAction > & | aErrors | ) |
Sets the object to an array of error-actions.
const CArrayFixFlat < TMsvSendErrorAction > & aErrors | Array to use. |
CArrayFixFlat < TMsvSendErrorAction > * | iErrors | [private] |
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.