Elements::RResponseMsg Class Reference

class Elements::RResponseMsg : protected RMessage2

The RResponseMsg class provides a controlled wrapper around an IPC client-provided RMessage2 .

Inherits from

Public Member Functions
RResponseMsg ()
RResponseMsg (const RMessage2 &, TInt , TInt , TInt )
RResponseMsg (const RMessage2 &, const Den::TApiExtIdentification &, TInt , TInt )
IMPORT_C void Complete ( TInt )
IMPORT_C void Complete ( Meta::SMetaDataECom &)
IMPORT_C void Complete ( Meta::SMetaDataECom &, TDes8 &)
IMPORT_C void Complete ( RHandleBase &)
TInt Function ()
TInt GetDesLength ( TInt )
TInt GetDesLengthL ( TInt )
TInt GetDesMaxLength ( TInt )
TInt GetDesMaxLengthL ( TInt )
TBool HasCapability ( TCapability , const char *)
TInt Int0 ()
TInt Int1 ()
TInt Int2 ()
TInt Int3 ()
IMPORT_C TInt InterfaceId ()
TBool IsNull ()
IMPORT_C void Panic (const TDesC &, TInt )
const TAny * Ptr0 ()
const TAny * Ptr1 ()
const TAny * Ptr2 ()
const TAny * Ptr3 ()
TInt Read ( TInt , TDes8 &, TInt )
TInt Read ( TInt , TDes16 &, TInt )
IMPORT_C Meta::SMetaDataNetCtor * ReadClientReqMsg ( TDes8 &)
void ReadL ( TInt , TDes8 &, TInt )
void ReadL ( TInt , TDes16 &, TInt )
IMPORT_C TInt ScopeId ()
TInt Write ( TInt , const TDesC8 &, TInt )
TInt Write ( TInt , const TDesC16 &, TInt )
void WriteL ( TInt , const TDesC8 &, TInt )
void WriteL ( TInt , const TDesC16 &, TInt )
Inherited Functions
RMessage2::Authorised()const
RMessage2::ClearAuthorised()const
RMessage2::RMessage2()
RMessage2::RMessage2(const RMessagePtr2 &)
RMessage2::Session()const
RMessage2::SetAuthorised()const
RMessagePtr2::Client(RThread &,TOwnerType)const
RMessagePtr2::ClientIsRealtime()const
RMessagePtr2::ClientL(RThread &,TOwnerType)const
RMessagePtr2::ClientProcessFlags()const
RMessagePtr2::ClientStatus()const
RMessagePtr2::Complete(RHandleBase)const
RMessagePtr2::Complete(TInt)const
RMessagePtr2::Handle()const
RMessagePtr2::HasCapability(TCapability,TCapability,const char *)const
RMessagePtr2::HasCapabilityL(TCapability,TCapability,const char *)const
RMessagePtr2::HasCapabilityL(TCapability,const char *)const
RMessagePtr2::Identity()const
RMessagePtr2::Kill(TInt)const
RMessagePtr2::RMessagePtr2()
RMessagePtr2::SecureId()const
RMessagePtr2::SetProcessPriority(TProcessPriority)const
RMessagePtr2::SetProcessPriorityL(TProcessPriority)const
RMessagePtr2::Terminate(TInt)const
RMessagePtr2::VendorId()const
Inherited Enumerations
RMessage2:TSessionMessages
Private Attributes
Den::TApiExtIdentification iInterfaceId
TInt8 iRequestMsgParam
TInt8 iResponseMsgParam
Inherited Attributes
RMessage2::iArgs
RMessage2::iFunction
RMessage2::iSessionPtr
RMessagePtr2::iHandle

Constructor & Destructor Documentation

RResponseMsg()

RResponseMsg ( ) [inline, explicit]

RResponseMsg(const RMessage2 &, TInt, TInt, TInt)

IMPORT_C RResponseMsg ( const RMessage2 & aMessage,
TInt aInterfaceId,
TInt aRequestMsgParam = -1,
TInt aResponseMsgParam = -1
) [explicit]

Parameters

const RMessage2 & aMessage
TInt aInterfaceId
TInt aRequestMsgParam = -1
TInt aResponseMsgParam = -1

RResponseMsg(const RMessage2 &, const Den::TApiExtIdentification &, TInt, TInt)

IMPORT_C RResponseMsg ( const RMessage2 & aMessage,
const Den::TApiExtIdentification & aInterfaceId,
TInt aRequestMsgParam = -1,
TInt aResponseMsgParam = -1
) [explicit]

Parameters

const RMessage2 & aMessage
const Den::TApiExtIdentification & aInterfaceId
TInt aRequestMsgParam = -1
TInt aResponseMsgParam = -1

Member Functions Documentation

Complete(TInt)

IMPORT_C void Complete ( TInt aError )

Parameters

TInt aError

Complete(Meta::SMetaDataECom &)

IMPORT_C void Complete ( Meta::SMetaDataECom & aMsg )

Parameters

Meta::SMetaDataECom & aMsg

Complete(Meta::SMetaDataECom &, TDes8 &)

IMPORT_C void Complete ( Meta::SMetaDataECom & aMsg,
TDes8 & aDstBuff
)

Parameters

Meta::SMetaDataECom & aMsg
TDes8 & aDstBuff

Complete(RHandleBase &)

IMPORT_C void Complete ( RHandleBase & aHandle )

Parameters

RHandleBase & aHandle

Function()

TInt Function ( ) const [inline]

Gets the the number of the function requested by the client.

GetDesLength(TInt)

TInt GetDesLength ( TInt aParam ) const [inline]

Parameters

TInt aParam

GetDesLengthL(TInt)

TInt GetDesLengthL ( TInt aParam ) const [inline]

Parameters

TInt aParam

GetDesMaxLength(TInt)

TInt GetDesMaxLength ( TInt aParam ) const [inline]

Parameters

TInt aParam

GetDesMaxLengthL(TInt)

TInt GetDesMaxLengthL ( TInt aParam ) const [inline]

Parameters

TInt aParam

HasCapability(TCapability, const char *)

TBool HasCapability ( TCapability aCapability,
const char * aDiagnostic = 0
) const [inline]

Check if the process which sent this message has a given capability.

When a check fails the action taken is determined by the system wide Platform Security configuration. If PlatSecDiagnostics is ON, then a diagnostic message is emitted. If PlatSecEnforcement is OFF, then this function will return ETrue even though the check failed.

Parameters

TCapability aCapability The capability to test.
const char * aDiagnostic = 0 A string that will be emitted along with any diagnostic message that may be issued if the test finds the capability is not present. This string must be enclosed in the __PLATSEC_DIAGNOSTIC_STRING macro which enables it to be easily removed from the system.

Int0()

TInt Int0 ( ) const [inline]

Gets the first message argument as an integer value.

Int1()

TInt Int1 ( ) const [inline]

Gets the second message argument as an integer value.

Int2()

TInt Int2 ( ) const [inline]

Gets the third message argument as an integer value.

Int3()

TInt Int3 ( ) const [inline]

Gets the fourth message argument as an integer value.

InterfaceId()

IMPORT_C TInt InterfaceId ( ) const

IsNull()

TBool IsNull ( ) const [inline]

Tests whether this message handle is empty.

Panic(const TDesC &, TInt)

IMPORT_C void Panic ( const TDesC & aCategory,
TInt aReason
) const

Parameters

const TDesC & aCategory
TInt aReason

Ptr0()

const TAny * Ptr0 ( ) const [inline]

Gets the first message argument as a pointer type.

Ptr1()

const TAny * Ptr1 ( ) const [inline]

Gets the second message argument as a pointer type.

Ptr2()

const TAny * Ptr2 ( ) const [inline]

Gets the third message argument as a pointer type.

Ptr3()

const TAny * Ptr3 ( ) const [inline]

Gets the fourth message argument as a pointer type.

Read(TInt, TDes8 &, TInt)

TInt Read ( TInt aReadParam,
TDes8 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aReadParam
TDes8 & aBuf
TInt aOffset = 0

Read(TInt, TDes16 &, TInt)

TInt Read ( TInt aReadParam,
TDes16 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aReadParam
TDes16 & aBuf
TInt aOffset = 0

ReadClientReqMsg(TDes8 &)

IMPORT_C Meta::SMetaDataNetCtor * ReadClientReqMsg ( TDes8 & aDstBuff )

Parameters

TDes8 & aDstBuff

ReadL(TInt, TDes8 &, TInt)

void ReadL ( TInt aReadParam,
TDes8 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aReadParam
TDes8 & aBuf
TInt aOffset = 0

ReadL(TInt, TDes16 &, TInt)

void ReadL ( TInt aReadParam,
TDes16 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aReadParam
TDes16 & aBuf
TInt aOffset = 0

ScopeId()

IMPORT_C TInt ScopeId ( ) const

Write(TInt, const TDesC8 &, TInt)

TInt Write ( TInt aWriteParam,
const TDesC8 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aWriteParam
const TDesC8 & aBuf
TInt aOffset = 0

Write(TInt, const TDesC16 &, TInt)

TInt Write ( TInt aWriteParam,
const TDesC16 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aWriteParam
const TDesC16 & aBuf
TInt aOffset = 0

WriteL(TInt, const TDesC8 &, TInt)

void WriteL ( TInt aWriteParam,
const TDesC8 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aWriteParam
const TDesC8 & aBuf
TInt aOffset = 0

WriteL(TInt, const TDesC16 &, TInt)

void WriteL ( TInt aWriteParam,
const TDesC16 & aBuf,
TInt aOffset = 0
) const [inline]

Parameters

TInt aWriteParam
const TDesC16 & aBuf
TInt aOffset = 0

Member Data Documentation

Den::TApiExtIdentification iInterfaceId

Den::TApiExtIdentification iInterfaceId [private]

TInt8 iRequestMsgParam

TInt8 iRequestMsgParam [private]

TInt8 iResponseMsgParam

TInt8 iResponseMsgParam [private]