CMsvSendErrorActions Class Reference

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.

Inherits from

  • CMsvSendErrorActions

Constructor & Destructor Documentation

CMsvSendErrorActions()

CMsvSendErrorActions()[private]

~CMsvSendErrorActions()

IMPORT_C~CMsvSendErrorActions()

Destructor.

Member Functions Documentation

AddSendErrorActionL(const TMsvSendErrorAction &)

IMPORT_C voidAddSendErrorActionL(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.

leave
Any error code but KErrNone and KErrNotFound We tried to delete the error action if it already exists and RemoveSendErrorAction() returned an error.
leave
KErrAlreadyExists A duplicate was found when inserting the error action in the array.

Parameters

const TMsvSendErrorAction & aErrorActionError action to add.

ConstructL()

voidConstructL()[private]

Default()

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.

Errors()

IMPORT_C const CArrayFixFlat< TMsvSendErrorAction > &Errors()const

Gets the object's array of error-actions.

Find(const TInt, TInt &)

TInt Find(const TIntaError,
TInt &aIndex
)const [private]

Parameters

const TInt aError
TInt & aIndex

GetSendErrorAction(const TInt, TMsvSendErrorAction &)

IMPORT_C TIntGetSendErrorAction(const TIntaError,
TMsvSendErrorAction &aErrorAction
)const

Gets an error action for a specified error.

Parameters

const TInt aErrorError to find.
TMsvSendErrorAction & aErrorActionOn return, the corresponding TMsvSendErrorAction.

NewL()

IMPORT_C CMsvSendErrorActions *NewL()[static]

Allocates and creates a new CMsvSendErrorActions object.

NewLC()

IMPORT_C CMsvSendErrorActions *NewLC()[static]

Allocates and creates a new CMsvSendErrorActions object.

RemoveSendErrorAction(const TInt)

IMPORT_C TIntRemoveSendErrorAction(const TIntaError)

Removes an error action.

Parameters

const TInt aErrorError to remove.

Reset()

IMPORT_C voidReset()

RestoreErrorActionL(TResourceReader &, TInt, const TBool)

voidRestoreErrorActionL(TResourceReader &aReader,
TIntaActionCount,
const TBoolaDefault
)[private]

Parameters

TResourceReader & aReader
TInt aActionCount
const TBool aDefault

RestoreFromResourceL(TResourceReader &)

IMPORT_C voidRestoreFromResourceL(TResourceReader &aReader)

Restores the object from a resource.

The resource must be of type SEND_ERROR_ACTIONS.

Parameters

TResourceReader & aReaderResource reader at appropriate resource.

SetDefault(const TMsvSendErrorAction &)

IMPORT_C voidSetDefault(const TMsvSendErrorAction &aAction)

Sets the default error-action.

Parameters

const TMsvSendErrorAction & aActionDefault error-action.

SetErrorsL(const CArrayFixFlat< TMsvSendErrorAction > &)

IMPORT_C voidSetErrorsL(const CArrayFixFlat< TMsvSendErrorAction > &aErrors)

Sets the object to an array of error-actions.

Parameters

const CArrayFixFlat< TMsvSendErrorAction > & aErrorsArray to use.

Member Data Documentation

TMsvSendErrorAction iDefault

TMsvSendErrorAction iDefault[private]

CArrayFixFlat< TMsvSendErrorAction > * iErrors

CArrayFixFlat< TMsvSendErrorAction > *iErrors[private]