#include <e32cmn.h>
class RMessage2 : public RMessagePtr2 |
Protected Attributes | |
---|---|
TInt | iArgs |
TInt | iFunction |
const TAny * | iSessionPtr |
Public Member Enumerations | |
---|---|
enum | TSessionMessages { EConnect, EDisConnect } |
Public Member Functions | |
---|---|
RMessage2() | |
RMessage2(const RMessagePtr2 &) | |
TBool | Authorised() |
void | ClearAuthorised() |
TInt | Function() |
TInt | Int0() |
TInt | Int1() |
TInt | Int2() |
TInt | Int3() |
const TAny * | Ptr0() |
const TAny * | Ptr1() |
const TAny * | Ptr2() |
const TAny * | Ptr3() |
CSession2 * | Session() |
void | SetAuthorised() |
Inherited Attributes | |
---|---|
RMessagePtr2::iHandle |
An object that encapsulates the details of a client request.
IMPORT_C | RMessage2 | ( | const RMessagePtr2 & | aPtr | ) | [explicit] |
Constructs an RMessage2 from an RMessagePtr2.
Parameter | Description |
---|---|
aPtr | A reference to an existing RMessagePtr2 object. |
TBool | Authorised | ( | ) | const |
Returns whether this message has been authorised by CPolicyServer. See RMessage2::SetAuthorised for implications of this state.
void | ClearAuthorised | ( | ) | const |
Sets the authorised flag to a state of not authorised. This is required as there is a default constructor for RMessage2 and one cannot guarantee that iFlags was initialised. This is called from CPolicyServer::RunL.
This is labelled as a const functions as everybody handles const RMessage2&'s. The constness is actually referring to the underlying RMessagePtr2 not the tranisent RMessage2 class.
TInt | Function | ( | ) | const [inline] |
Gets the the number of the function requested by the client.
Returns: The function number.
TInt | Int0 | ( | ) | const [inline] |
Gets the first message argument as an integer value.
Returns: The first message argument.
TInt | Int1 | ( | ) | const [inline] |
Gets the second message argument as an integer value.
Returns: The second message argument.
TInt | Int2 | ( | ) | const [inline] |
Gets the third message argument as an integer value.
Returns: The third message argument.
TInt | Int3 | ( | ) | const [inline] |
Gets the fourth message argument as an integer value.
Returns: The fourth message argument.
const TAny * | Ptr0 | ( | ) | const [inline] |
Gets the first message argument as a pointer type.
Returns: The first message argument.
const TAny * | Ptr1 | ( | ) | const [inline] |
Gets the second message argument as a pointer type.
Returns: The second message argument.
const TAny * | Ptr2 | ( | ) | const [inline] |
Gets the third message argument as a pointer type.
Returns: The third message argument.
const TAny * | Ptr3 | ( | ) | const [inline] |
Gets the fourth message argument as a pointer type.
Returns: The fourth message argument.
CSession2 * | Session | ( | ) | const [inline] |
Gets a pointer to the session.
Returns: A pointer to the session object.
void | SetAuthorised | ( | ) | const |
Sets this message to an authorised state. This is used only by CPolicyServer. This flags use by the policy server implies two things: 1) That the message has passed any appropriate security checks. (ie. one of the static policy check, CustomSecurityCheckL, or CustomFailureActionL, returned ETrue.) 2) That any leaves that occur subsequent to this flag being set happen _only_ in the session's ServiceL. ie. Nothing can leave between this flag being set and the session's ServiceL being called.
This is labelled as a const functions as everybody handles const RMessage2&'s. The constness is actually referring to the underlying RMessagePtr2 not the tranisent RMessage2 class.