#include <mw/msvsenderroraction.h>
class CMsvSendErrorActions : public CBase |
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 > &) |
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.
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.
Parameter | Description |
---|---|
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.
Returns: Default error-action
IMPORT_C const CArrayFixFlat< TMsvSendErrorAction > & | Errors | ( | ) | const |
Gets the object's array of error-actions.
Returns: 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.
Parameter | Description |
---|---|
aError | Error to find. |
aErrorAction | On return, the corresponding TMsvSendErrorAction. |
Returns: KErrNotFound if there is no corresponding TMsvSendErrorAction for aError.
IMPORT_C CMsvSendErrorActions * | NewL | ( | ) | [static] |
Allocates and creates a new CMsvSendErrorActions object.
Returns: New object
IMPORT_C CMsvSendErrorActions * | NewLC | ( | ) | [static] |
Allocates and creates a new CMsvSendErrorActions object.
Returns: New object
IMPORT_C void | RestoreFromResourceL | ( | TResourceReader & | aReader | ) |
Restores the object from a resource.
The resource must be of type SEND_ERROR_ACTIONS.
Parameter | Description |
---|---|
aReader | Resource reader at appropriate resource. |
IMPORT_C void | SetDefault | ( | const TMsvSendErrorAction & | aAction | ) |
Sets the default error-action.
Parameter | Description |
---|---|
aAction | Default error-action. |
IMPORT_C void | SetErrorsL | ( | const CArrayFixFlat< TMsvSendErrorAction > & | aErrors | ) |
Sets the object to an array of error-actions.
Parameter | Description |
---|---|
aErrors | Array to use. |