CSensrvMessage Class Reference

class CSensrvMessage : public CBase

Wraps the client message for sensor server internal handling.

Since
S60 5.0

Inherits from

Constructor & Destructor Documentation

CSensrvMessage()

CSensrvMessage()[private]

C++ constructor for external message.

~CSensrvMessage()

~CSensrvMessage()[virtual]
Destructor.
Since
S60 5.0

Member Functions Documentation

Complete(TInt)

voidComplete(TIntaReason)

Completes the message

Since
S60 5.0

Parameters

TInt aReasonCompletion reason identifier. Usually error code.

Function()

TInt Function()const [inline]

Gets the function requested by client.

Since
S60 5.0

GetChannelId(TSensrvChannelId &)

TInt GetChannelId(TSensrvChannelId &aChannelId)const

Extracts channel id from message.

Since
S60 5.0

Parameters

TSensrvChannelId & aChannelIdThe found channel id is returned here.

GetDesLength(TInt)

TInt GetDesLength(TIntaParam)const

Gets message parameter descriptor lenght.

Since
S60 5.0

Parameters

TInt aParamIndex of message parameter

GetDesMaxLength(TInt)

TInt GetDesMaxLength(TIntaParam)const

Gets message parameter descriptor maximum lenght.

Since
S60 5.0

Parameters

TInt aParamIndex of message parameter

GetMessage()

const RMessage2 &GetMessage()const [inline]

Returns the message as read only.

Since
S60 5.0

GetSecurityInfo(TSecurityInfo &)

voidGetSecurityInfo(TSecurityInfo &aSecurityInfo)const

Gets the security info of the client message

Since
S60 5.0

Parameters

TSecurityInfo & aSecurityInfoThis object will contain client security info

Handle()

TInt Handle()const [inline]

Returns message handle. Used to determine if message is still valid.

Since
S60 5.0

Initialize(const RMessage2 &)

voidInitialize(const RMessage2 &aMessage)

Initializes the message. Must be done before message is used first time and before use after each complete.

Since
S60 5.0

Parameters

const RMessage2 & aMessageClient message to wrap

NewL()

CSensrvMessage *NewL()[static]

Two-phased constructor for external message

Since
S60 5.0

Read(const TInt, TDes8 &)

TInt Read(const TIntaParam,
TDes8 &aDes
)const

Reads data from wrapped message.

Since
S60 5.0

Parameters

const TInt aParamThe index value identifying the argument. This is a value in the range 0 to (KMaxMessageArguments-1) inclusive.
TDes8 & aDesThe target descriptor into which the client data is to be written.

ReadInt(const TInt, TInt &)

voidReadInt(const TIntaParam,
TInt &aInt
)const

Reads integer data from wrapped message.

Since
S60 5.0

Parameters

const TInt aParamThe index value identifying the argument. This is a value in the range 0 to (KMaxMessageArguments-1) inclusive.
TInt & aIntThe target integer where the value is read.

SecureId()

TSecureId SecureId()const

Gets client process SID

Since
S60 5.0

Session()

CSensrvSession *Session()

Gets session related to this message.

Since
S60 5.0

Write(TInt, const TDesC8 &, TInt)

TInt Write(TIntaParam,
const TDesC8 &aDes,
TIntaOffset = 0
)

Writes return data to wrapped message.

Since
S60 5.0

Parameters

TInt aParamParameter index to write
const TDesC8 & aDesSource descriptor for written data.
TInt aOffset = 0The offset from the start of the client's descriptor. If not explicitly specified, the offset defaults to zero.

Member Data Documentation

RMessage2 iMessage

RMessage2 iMessage[private]

Wrapped message