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.
Constructor & Destructor Documentation
CMsvSendErrorActions()
CMsvSendErrorActions | ( | ) | [private] |
~CMsvSendErrorActions()
IMPORT_C | ~CMsvSendErrorActions | ( | ) | |
Member Functions Documentation
AddSendErrorActionL(const TMsvSendErrorAction &)
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.
ConstructL()
void | ConstructL | ( | ) | [private] |
Default()
Gets the default error-action.
The default is used if a specified error-action is not found for the error.
Errors()
Gets the object's array of error-actions.
GetSendErrorAction(const TInt, TMsvSendErrorAction &)
Gets an error action for a specified error.
Parameters
const TInt aError | Error to find. |
TMsvSendErrorAction & aErrorAction | On return, the corresponding TMsvSendErrorAction. |
RemoveSendErrorAction(const TInt)
IMPORT_C TInt | RemoveSendErrorAction | ( | const TInt | aError | ) | |
Parameters
const TInt aError | Error to remove. |
RestoreErrorActionL(TResourceReader &, TInt, const TBool)
RestoreFromResourceL(TResourceReader &)
Restores the object from a resource.
The resource must be of type SEND_ERROR_ACTIONS.
SetDefault(const TMsvSendErrorAction &)
Sets the default error-action.
SetErrorsL(const CArrayFixFlat< TMsvSendErrorAction > &)
Sets the object to an array of error-actions.
Member Data Documentation
TMsvSendErrorAction
iDefault
CArrayFixFlat< TMsvSendErrorAction > * iErrors
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.