class UpsMCprActivities::CUpsAuthorisationActivityBase : public MeshMachine::CNodeParallelActivityBase |
Base class used for MCpr activities that need to issue authorisation requests to the NetUps.
Derives from MPolicyCheckRequestOriginator to receive NetUps callbacks when request has completed.
Contains Mesh Machine methods for interacting with the NetUps and also contains "node specific" virtual methods for retrieving information required by NetUps. These methods are intended to be overridden in the specific node to delineate node specific functions from the remaining MCpr generic functions held in this class:
GetServiceId() - retrieves the UPS ServiceId (a UID). Although the ServiceId is defined in the particular MCpr, a default implementation is provided that returns the TierId from the Access Point Config as the ServiceId.
GetUpsDestinationString() - forms a human readable destination address string. The operation of this function depends on the form of the destination address (e.g. IPv4/IPv6) which, in turn, depends on the MCpr.
Public Member Functions | |
---|---|
NetUps::CNetUps * | GetNetUpsL(TInt32) |
IMPORT_C TInt | GetServiceId(const ESock::CCommsProviderBase &, TInt32 &) |
const TDesC & | GetUpsAccessPointNameL() |
TInt | GetUpsDestinationString(TUpsDestinationAddrType, const TUpsDestinationAddr &, TDes &) |
NetUps::CNetUps * | NetUpsReference() |
IMPORT_C TInt | ProcessPolicyCheckResponse(NetUps::TNetUpsDecision, const Messages::TNodeId &) |
IMPORT_C TInt | ProcessPolicyCheckResponse(TInt, const Messages::TNodeId &) |
NetUps::TRequestId & | RequestId() |
void | ResetRequestId() |
void | SetNetUpsReference(NetUps::CNetUps *) |
Protected Member Functions | |
---|---|
CUpsAuthorisationActivityBase(const MeshMachine::TNodeActivity &, MeshMachine::AMMNodeBase &, TUint) | |
~CUpsAuthorisationActivityBase() | |
IMPORT_C void | PerformPolicyCheckRequestActionsL(const Messages::TNodeId &) |
IMPORT_C void | PerformPolicyCheckResponseActions(NetUps::TNetUpsDecision, const Messages::TNodeId &) |
Private Member Functions | |
---|---|
CUpsAuthorisationActivityBase * | NewL() |
Public Member Type Definitions | |
---|---|
typedef | MeshMachine::TNodeContext< ESock::CMetaConnectionProviderBase, PRStates::TContext > TContext |
Public Attributes | |
---|---|
const TInt | KUpsCompletionTag |
Private Attributes | |
---|---|
NetUps::CNetUps * | iNetUpsReference |
NetUps::TRequestId | iRequestId |
Inherited Attributes | |
---|---|
MeshMachine::CNodeActivityBase::iNode | |
MeshMachine::CNodeActivityBase::iOriginators | |
MeshMachine::CNodeParallelActivityBase::iActivityId |
IMPORT_C | CUpsAuthorisationActivityBase | ( | const MeshMachine::TNodeActivity & | aActivitySig, |
MeshMachine::AMMNodeBase & | aNode, | |||
TUint | aNextActivityCount | |||
) | [protected] |
const MeshMachine::TNodeActivity & aActivitySig | |
MeshMachine::AMMNodeBase & aNode | |
TUint aNextActivityCount |
NetUps::CNetUps * | GetNetUpsL | ( | TInt32 | aServiceId | ) | [pure virtual] |
TInt32 aServiceId |
IMPORT_C TInt | GetServiceId | ( | const ESock::CCommsProviderBase & | aNode, |
TInt32 & | aServiceId | |||
) | const [virtual] |
Get the UPS ServiceId for the current activity.
Called before issuing a request to NetUps. This default implementation returns the TierId in the Access Point Config structure as the UPS ServiceId.
PREQ1116 - should we make this leaving insteadof returning an error?
const ESock::CCommsProviderBase & aNode | Node corresponding to this activity. |
TInt32 & aServiceId | Variable populated with ServiceId. |
TInt | GetUpsDestinationString | ( | TUpsDestinationAddrType | aDestinationType, |
const TUpsDestinationAddr & | aDestination, | |||
TDes & | aOutputString | |||
) | [pure virtual] |
TUpsDestinationAddrType aDestinationType | |
const TUpsDestinationAddr & aDestination | |
TDes & aOutputString |
IMPORT_C void | PerformPolicyCheckRequestActionsL | ( | const Messages::TNodeId & | aCommsId | ) | [protected, virtual] |
const Messages::TNodeId & aCommsId |
IMPORT_C void | PerformPolicyCheckResponseActions | ( | NetUps::TNetUpsDecision | aNetUpsDecision, |
const Messages::TNodeId & | aCommsId | |||
) | [protected, virtual] |
NetUps::TNetUpsDecision aNetUpsDecision | |
const Messages::TNodeId & aCommsId |
IMPORT_C TInt | ProcessPolicyCheckResponse | ( | NetUps::TNetUpsDecision | aNetUpsDecision, |
const Messages::TNodeId & | aCommsId | |||
) |
Callback from NetUps with the result of a previous authorisation request.
NetUps::TNetUpsDecision aNetUpsDecision | Authorisation decision from UPS |
const Messages::TNodeId & aCommsId | CommsId passed in the original NetUps request |
IMPORT_C TInt | ProcessPolicyCheckResponse | ( | TInt | aError, |
const Messages::TNodeId & | aCommsId | |||
) |
Callback from NetUps if an error occurred in the processing of a previous authorisation request (note that this is not the same as a successfully completed authorisation request that resulted in denial).
TInt aError | error return from NetUps |
const Messages::TNodeId & aCommsId |
void | SetNetUpsReference | ( | NetUps::CNetUps * | aNetUps | ) | [inline] |
NetUps::CNetUps * aNetUps |
typedef MeshMachine::TNodeContext< ESock::CMetaConnectionProviderBase, PRStates::TContext > | TContext |
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.