CSmsSMSCCtrlParameterOperations Class Reference

#include "gsmuieoperations.h"

class CSmsSMSCCtrlParameterOperations : public CSmsCtrlOperation

Inherits from

Public Member Functions
CSmsSMSCCtrlParameterOperations(CSmsInformationElement::TSmsInformationElementIdentifier, CSmsMessage &)
~CSmsSMSCCtrlParameterOperations()
IMPORT_C TSmsStatusReportSchemeGetScheme()
IMPORT_C TIntGetStatusReport(TUint, TUint8 &)
IMPORT_C voidResetSchemeL()
IMPORT_C voidSetDefaultL(TUint8)
IMPORT_C voidSetSchemeL()
IMPORT_C TIntSetStatusReportL(TUint, TUint8)
Protected Member Functions
TBool ValidateControlParametersL(TUint8 &)
virtual voidValidateOperationL()
voidoperator=(const CSmsSMSCCtrlParameterOperations &)
TBool operator==(const CSmsSMSCCtrlParameterOperations &)
Inherited Attributes
CSmsIEOperation::iMessage
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSmsCtrlOperation::CSmsCtrlOperation(CSmsInformationElement::TSmsInformationElementIdentifier,CSmsMessage &)
CSmsCtrlOperation::operator=(const CSmsCtrlOperation &)
CSmsCtrlOperation::operator==(const CSmsCtrlOperation &)
CSmsCtrlOperation::~CSmsCtrlOperation()
CSmsIEOperation::CSmsIEOperation(CSmsInformationElement::TSmsInformationElementIdentifier,CSmsMessage &)
CSmsIEOperation::Id()const
CSmsIEOperation::MessageTypeSupported()const
CSmsIEOperation::NewL(CSmsInformationElement::TSmsInformationElementIdentifier,CSmsMessage &,CCnvCharacterSetConverter &,RFs &)
CSmsIEOperation::operator=(const CSmsIEOperation &)
CSmsIEOperation::operator==(const CSmsIEOperation &)
CSmsIEOperation::~CSmsIEOperation()

Constructor & Destructor Documentation

CSmsSMSCCtrlParameterOperations ( CSmsInformationElement::TSmsInformationElementIdentifier, CSmsMessage & )

CSmsSMSCCtrlParameterOperations(CSmsInformationElement::TSmsInformationElementIdentifieraId,
CSmsMessage &aMessage
)

~CSmsSMSCCtrlParameterOperations ( )

~CSmsSMSCCtrlParameterOperations()[inline]

Member Function Documentation

GetScheme ( )

IMPORT_C TSmsStatusReportSchemeGetScheme()const

Gets the current scheme being used.

capability
None

Returns: EControlParametrsScheme is returned when Control Parameters Scheme is being used.

GetStatusReport ( TUint, TUint8 & )

IMPORT_C TIntGetStatusReport(TUintaSegmentSequenceNum,
TUint8 &aSelectiveStatus
)const

Gets the selective status for a PDU if the scheme is set to the Control Parameters Scheme.

capability
None
ParameterDescription
aSegmentSequenceNumThe segment sequence number of the PDU whose status report is required.
aSelectiveStatusReturns the selective status octet for that PDU.

Returns: KErrNotFound if the segment sequence number or the scheme is invalid.

ResetSchemeL ( )

IMPORT_C voidResetSchemeL()

This method re-sets the scheme to the Default Scheme.

capability
None

SetDefaultL ( TUint8 )

IMPORT_C voidSetDefaultL(TUint8aDefaultSelectiveStatus)

Sets the default value of the status report to aDefaultSelectiveStatus.

leave
KErrNotFound If the scheme is invalid.
capability
None
ParameterDescription
aDefaultSelectiveStatusThe selective status to be used as default.

SetSchemeL ( )

IMPORT_C voidSetSchemeL()

This method is called to set the scheme to Control Parameters Scheme. First iStatusReportScheme, which is obtained by calling GetStatusReportScheme, is deleted and set to NULL. Then a new scheme is created and a default value is set. This should be the last method to be called in a message sending process as all the operations in this interface depend on the number of PDUs being set.

leave
If ValidateOperationL or NumMessagePDUsL leaves.
capability
None

SetStatusReportL ( TUint, TUint8 )

IMPORT_C TIntSetStatusReportL(TUintaSegmentSequenceNum,
TUint8aSelectiveStatus
)

Sets the status report for a PDU. First the scheme is obtained by calling the GetStatusReportScheme and checked if it is the valid scheme. Then aSelectiveStatus is checked to see if it is the default value. If it is then nothing is done. But if aSelectiveStatus is non-default then it is appended to the array iControlParametersStatusReport along with the aSegmentSequenceNum

leave
If ValidateOperationL or AppendL leaves.
capability
None
ParameterDescription
aSegmentSequenceNumThe segment sequence number of the PDU which needs to be updated.
aSelectiveStatusThe octet which needs to be set as the Selective Status for the report.

Returns: KErrNone if the operation is successful. KErrNotFound if the Segment Sequence Number is out of range or the scheme is inavlid. KErrNotSupported if aSelectiveStatus is not valid.

ValidateControlParametersL ( TUint8 & )

TBool ValidateControlParametersL(TUint8 &aSelectiveStatus)const [protected]

Checks that the octet passed to it has the valid bits set in it. If the bits which are not supported yet are set then reset it. This method is called by SetStatusReportL.

leave
KErrNotSupported If the last 4 bits are set as they are not supported.
ParameterDescription
aSelectiveStatusThe octet which needs to be set as the Selective Status for the report.

Returns: ETrue if the selective status is valid.

ValidateOperationL ( )

voidValidateOperationL()const [protected, virtual]

Identifies whether the message type or version supports this operation

leave
If the message type or version does not support this operation.

operator= ( const CSmsSMSCCtrlParameterOperations & )

voidoperator=(const CSmsSMSCCtrlParameterOperations &)[protected]

Prevent clients from using the assignment operator by including it in the class definition but making it protected and not exporting it.

capability
None

operator== ( const CSmsSMSCCtrlParameterOperations & )

TBool operator==(const CSmsSMSCCtrlParameterOperations &)[protected]

Prevent clients from using the equality operator by including it in the class definition but making it protected and not exporting it.

capability
None