CSensrvMessage Class Reference
class CSensrvMessage : public CBase |
Wraps the client message for sensor server internal handling.
Constructor & Destructor Documentation
CSensrvMessage()
CSensrvMessage | ( | ) | [private] |
C++ constructor for external message.
~CSensrvMessage()
~CSensrvMessage | ( | ) | [virtual] |
Destructor.
- Since
- S60 5.0
Member Functions Documentation
Complete(TInt)
void | Complete | ( | TInt | aReason | ) | |
Parameters
TInt aReason | Completion reason identifier. Usually error code. |
Function()
TInt
| Function | ( | ) | const [inline] |
Gets the function requested by client.
GetChannelId(TSensrvChannelId &)
Extracts channel id from message.
GetDesLength(TInt)
Gets message parameter descriptor lenght.
Parameters
TInt aParam | Index of message parameter |
GetDesMaxLength(TInt)
Gets message parameter descriptor maximum lenght.
Parameters
TInt aParam | Index of message parameter |
GetMessage()
Returns the message as read only.
GetSecurityInfo(TSecurityInfo &)
Gets the security info of the client message
Parameters
TSecurityInfo & aSecurityInfo | This object will contain client security info |
Handle()
TInt
| Handle | ( | ) | const [inline] |
Returns message handle. Used to determine if message is still valid.
Initialize(const RMessage2 &)
Initializes the message. Must be done before message is used first time and before use after each complete.
Parameters
const RMessage2 & aMessage | Client message to wrap |
NewL()
Two-phased constructor for external message
Read(const TInt, TDes8 &)
Reads data from wrapped message.
Parameters
const TInt aParam | The index value identifying the argument. This is a value in the range 0 to (KMaxMessageArguments-1) inclusive. |
TDes8 & aDes | The target descriptor into which the client data is to be written. |
ReadInt(const TInt, TInt &)
void | ReadInt | ( | const TInt | aParam, |
| TInt & | aInt |
| ) | const |
Reads integer data from wrapped message.
Parameters
const TInt aParam | The index value identifying the argument. This is a value in the range 0 to (KMaxMessageArguments-1) inclusive. |
TInt & aInt | The target integer where the value is read. |
Session()
Gets session related to this message.
Write(TInt, const TDesC8 &, TInt)
Writes return data to wrapped message.
Parameters
TInt aParam | Parameter index to write |
const TDesC8 & aDes | Source descriptor for written data. |
TInt aOffset = 0 | The offset from the start of the client's descriptor. If not explicitly specified, the offset defaults to zero. |
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.