CAgentSubConnectionProvider Class Reference

class CAgentSubConnectionProvider : public CCoreSubConnectionProvider
Public Member Functions
~CAgentSubConnectionProvider()
IMPORT_C CAgentSubConnectionProvider *NewL(ESock::CSubConnectionProviderFactoryBase &)
voidStartAgentL()
voidStopAgent(TInt)
Protected Member Functions
CAgentSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase &, const MeshMachine::TNodeActivityMap &)
IMPORT_C const CAgentProvisionInfo *AgentProvisionInfo()
IMPORT_C voidCleanupProvisioningInfo()
IMPORT_C voidConnectAgent(TAgentConnectType)
IMPORT_C TIntNotificationToAgent(TFlowToAgentEventType, TAny *)
IMPORT_C voidReceivedL(const Messages::TRuntimeCtxId &, const Messages::TNodeId &, Messages::TSignatureBase &)
Private Member Functions
voidAuthenticateCompleteL(TInt)
voidCancelStartOrSendStopToSelf(TInt)
voidConnectionDownL()
voidConnectionUpL()
voidError(const Elements::TStateChange &)
voidNetworkAdaptorEvent(TNetworkAdaptorEventType, TUint, const TDesC8 &, TAny *)
TInt NotificationFromAgent(TAgentToFlowEventType, TAny *)
voidNotificationFromFlow(TFlowToAgentEventType)
TInt PostMessageToFlow(const Messages::TRuntimeCtxId &, const Messages::TSignatureBase &)
voidProgressL(TInt)
voidPromptForReconnectComplete(TInt)
voidProvisionAgentInfoL()
voidServiceStarted()
voidSetActivityIdForAdapter(TUint)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCoreSubConnectionProvider::CCoreSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase &)
CCoreSubConnectionProvider::CCoreSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase &,const MeshMachine::TNodeActivityMap &)
CCoreSubConnectionProvider::Received(MeshMachine::TNodeContextBase &)
CCoreSubConnectionProvider::~CCoreSubConnectionProvider()
ESock::CCommsProviderBase::AccessPointConfig()const
ESock::CCommsProviderBase::~CCommsProviderBase()
ESock::CMMCommsProviderBase::AddClientL(const Messages::TNodeId &,const Messages::TClientType &,TAny *)
ESock::CMMCommsProviderBase::CMMCommsProviderBase(CCommsFactoryBase &,const MeshMachine::TNodeActivityMap &)
ESock::CMMCommsProviderBase::CreateParameterBundleL()
ESock::CMMCommsProviderBase::DestroyOrphanedDataClients()
ESock::CMMCommsProviderBase::FetchNodeInterfaceControlL(TInt)
ESock::CMMCommsProviderBase::GetOrCreateParameterBundleL()
ESock::CMMCommsProviderBase::GetParameterBundle()
ESock::CMMCommsProviderBase::Id()const
ESock::CMMCommsProviderBase::ReturnInterfacePtrL(MAccessPointConfigApi *&)
ESock::CMMCommsProviderBase::SetParametersL(const RCFParameterFamilyBundleC &)
ESock::CMMCommsProviderBase::~CMMCommsProviderBase()
ESock::CSubConnectionProviderBase::CSubConnectionProviderBase(CSubConnectionProviderFactoryBase &,const MeshMachine::TNodeActivityMap &)
ESock::CSubConnectionProviderBase::NotifyClientsL(const CSubConNotificationEvent &)
ESock::CSubConnectionProviderBase::~CSubConnectionProviderBase()
Private Attributes
TUint iActivityIdForAdapter
TBool iAuthenticateInProgress
Elements::TStateChange iLastProgress
TBuf< KCommsDbSvrMaxUserIdPassLength >iPassword
TBool iScprOwnedNotificationHandler
TBool iStopRequested
TInt iStoppingReason
TBuf< KCommsDbSvrMaxUserIdPassLength >iUsername
Inherited Attributes
ESock::CCommsProviderBase::iAccessPointConfig
ESock::CMMCommsProviderBase::iParameterBundle

Constructor & Destructor Documentation

CAgentSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase &, const MeshMachine::TNodeActivityMap &)

IMPORT_CCAgentSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase &aFactory,
const MeshMachine::TNodeActivityMap &aActivityMap
)[protected]

Constructor for the Agent SubConnection Provider

Parameters

ESock::CSubConnectionProviderFactoryBase & aFactoryThe parent factory which created this SCPr
const MeshMachine::TNodeActivityMap & aActivityMap

~CAgentSubConnectionProvider()

IMPORT_C~CAgentSubConnectionProvider()

D'tor

Member Functions Documentation

AgentProvisionInfo()

IMPORT_C const CAgentProvisionInfo *AgentProvisionInfo()const [protected]

Retrieves the Agent Provider specific provisioning information as given by the MCPr transition.

AuthenticateCompleteL(TInt)

voidAuthenticateCompleteL(TIntaStatus)[private]

Called from the CAgentAdapter. Indicates that the agent has finished getting authentication data by whatever means it chooses.

Parameters

TInt aStatus

CancelStartOrSendStopToSelf(TInt)

voidCancelStartOrSendStopToSelf(TIntaError)[private]

Issue a TCFDataClient::TStop message to ourselves.

Used to initiate the stop activity internally when requested from an Agent.

Parameters

TInt aErrorerror code in TCFDataClient::TStop message.

CleanupProvisioningInfo()

IMPORT_C voidCleanupProvisioningInfo()[protected]

ConnectAgent(TAgentConnectType)

IMPORT_C voidConnectAgent(TAgentConnectTypeaConnectType)[protected]

Starts the agent connection process

Parameters

TAgentConnectType aConnectType

ConnectionDownL()

voidConnectionDownL()[private]

Called from the CAgentAdapter. Indicates that the agent is now disconnected.

ConnectionUpL()

voidConnectionUpL()[private]

Called from the CAgentAdapter. Gets information required by flow into a TCommsBinder and posts it into this node's mesh machine with a TStarted message

Error(const Elements::TStateChange &)

voidError(const Elements::TStateChange &aProgress)[private]

Posts the error to the control clients (Up)

Parameters

const Elements::TStateChange & aProgress

NetworkAdaptorEvent(TNetworkAdaptorEventType, TUint, const TDesC8 &, TAny *)

voidNetworkAdaptorEvent(TNetworkAdaptorEventTypeaEventType,
TUintaEvent,
const TDesC8 &aEventData,
TAny *aSource = NULL
)[private]

Parameters

TNetworkAdaptorEventType aEventType
TUint aEvent
const TDesC8 & aEventData
TAny * aSource = NULL

NewL(ESock::CSubConnectionProviderFactoryBase &)

IMPORT_C CAgentSubConnectionProvider *NewL(ESock::CSubConnectionProviderFactoryBase &aFactory)[static]

Creates an Agent SubConnection Provider

Parameters

ESock::CSubConnectionProviderFactoryBase & aFactoryThe parent factory which has created the SCPr

NotificationFromAgent(TAgentToFlowEventType, TAny *)

TInt NotificationFromAgent(TAgentToFlowEventTypeaEvent,
TAny *aInfo = NULL
)[private]

Parameters

TAgentToFlowEventType aEvent
TAny * aInfo = NULL

NotificationFromFlow(TFlowToAgentEventType)

voidNotificationFromFlow(TFlowToAgentEventTypeaEvent)[private]

Parameters

TFlowToAgentEventType aEvent

NotificationToAgent(TFlowToAgentEventType, TAny *)

IMPORT_C TIntNotificationToAgent(TFlowToAgentEventTypeaEvent,
TAny *aInfo
)[protected]

Notifies an event to the AgentSCpr's Agent via the AgentAdapter

Parameters

TFlowToAgentEventType aEvent
TAny * aInfo

PostMessageToFlow(const Messages::TRuntimeCtxId &, const Messages::TSignatureBase &)

TInt PostMessageToFlow(const Messages::TRuntimeCtxId &aSender,
const Messages::TSignatureBase &aMessage
)[private]

Parameters

const Messages::TRuntimeCtxId & aSender
const Messages::TSignatureBase & aMessage

ProgressL(TInt)

voidProgressL(TIntaStage)[private]

Posts the progress to the Control Client (SCPr above). There should only ever be one Control Client for this SCPr.

Parameters

TInt aStage

PromptForReconnectComplete(TInt)

voidPromptForReconnectComplete(TIntaStatus)[private]

Called from the CAgentAdapter. Indicates that the agent has had a response from the user deciding whether or not to reconnect

Parameters

TInt aStatus

ProvisionAgentInfoL()

voidProvisionAgentInfoL()[private]

ReceivedL(const Messages::TRuntimeCtxId &, const Messages::TNodeId &, Messages::TSignatureBase &)

IMPORT_C voidReceivedL(const Messages::TRuntimeCtxId &aSender,
const Messages::TNodeId &aRecipient,
Messages::TSignatureBase &aMessage
)[protected, virtual]

Mesh machine message entry point

Parameters

const Messages::TRuntimeCtxId & aSender
const Messages::TNodeId & aRecipient
Messages::TSignatureBase & aMessage

ServiceStarted()

voidServiceStarted()[private]

Upcall from the agent

SetActivityIdForAdapter(TUint)

voidSetActivityIdForAdapter(TUintaActivityId)[private, inline]

Parameters

TUint aActivityId

StartAgentL()

voidStartAgentL()

Called from the StartAgent state transition

StopAgent(TInt)

voidStopAgent(TIntaReason)

Called from the StopAgent state transition

Parameters

TInt aReason

Member Data Documentation

TUint iActivityIdForAdapter

TUint iActivityIdForAdapter[private]

TBool iAuthenticateInProgress

TBool iAuthenticateInProgress[private]

Elements::TStateChange iLastProgress

Elements::TStateChange iLastProgress[private]

TBuf< KCommsDbSvrMaxUserIdPassLength > iPassword

TBuf< KCommsDbSvrMaxUserIdPassLength >iPassword[private]

TBool iScprOwnedNotificationHandler

TBool iScprOwnedNotificationHandler[private]

TBool iStopRequested

TBool iStopRequested[private]

TInt iStoppingReason

TInt iStoppingReason[private]

TBuf< KCommsDbSvrMaxUserIdPassLength > iUsername

TBuf< KCommsDbSvrMaxUserIdPassLength >iUsername[private]