Location:
smutsimparam.h
Link against: smcm.lib
class CSmsSimParamOperation : public CMsvOperation;
Encapsulates an operation to read/write an array of SMS parameters from a SIM.
An operation of this type if returned by the SMS client MTM for the read and write SIM paramter operations.
These operations are generated from calling the SMS client MTM APIs CSmsClientMtm::ReadSimParamsL
and CSmsClientMtm::WriteSimParamsL
. The CSmsClientMtm::InvokeAsyncFunctionL
API should not be used for these operations.
CBase
- Base class for all classes to be instantiated on the heap
CActive
- The core class of the active object abstraction
CMsvOperation
- Defines an interface for use by objects which control asynchronous commands in the messaging system
CSmsSimParamOperation
- Encapsulates an operation to read/write an array of SMS parameters from a SIM
Defined in CSmsSimParamOperation
:
DoCancel()
, ProgressL()
, RunError()
, RunL()
, ServiceCentersLC()
, SmspList()
, ~CSmsSimParamOperation()
Inherited from CActive
:
Cancel()
,
Deque()
,
EPriorityHigh
,
EPriorityIdle
,
EPriorityLow
,
EPriorityStandard
,
EPriorityUserInput
,
IsActive()
,
IsAdded()
,
Priority()
,
SetActive()
,
SetPriority()
,
TPriority
,
iStatus
Inherited from CBase
:
Delete()
,
operator new()
Inherited from CMsvOperation
:
Extension_()
,
FinalProgress()
,
Id()
,
Mtm()
,
Service()
,
SystemProgress()
,
iMsvSession
,
iMtm
,
iObserverRequestStatus
,
iService
inline const CMobilePhoneSmspList &SmspList() const;
Gets the list of SMS parameters on the SIM, after a successfully completed read operation.
If the operation has not successfully completed, this function returns an empty list.
This function should ot be used with a write SIM parameters operation.
|
|
IMPORT_C CMobilePhoneSmspList *ServiceCentersLC() const;
Gets a list of Service Centre addresses.
This function can only be used after a read/write SIM parameters operation has completed. If the CSmsSimParamOperation::ProgressL
API returns any an error code other than KErrNone, or the SIM parameters contain no Service Centre addresses, then this function
returns an empty list.
|
virtual IMPORT_C const TDesC8 &ProgressL();
Gets the operation completion/error code for reading/writing the SMS parameters.
It returns a packaged TInt (TIntBuf) and not a packaged TSmsProgress
.
The code can be intrepreted as follows:
KErrNone - the SMS parameters were successfully read/writte from/to the SIM
KErrNotSupported - the telephone handset and/or TSY module does not support reading/writing the SMS parameters.
KErrNotFound - no SMS parameters where found on the SIM.
Other system-wide error codes - may indicate a comms, telephony or memory error.
|
private: virtual void RunL();
The async operation is complete
Handles completed async operations.
If the async operation was to read the SIM parameters, then the SIM parameters are read from the appropriate stream in the SMS Service entry and placed in the parameter member iSimParams.
If the async operation was to read the SIM parameters, then there is nothing more to do.
For both types of operation the observer for this operation is completed.
The operation is complete
|
|