CAgentAdapter Class Reference
class CAgentAdapter : public CBase
|
This is the Agent Adapter for new style NIFs/SCPRs/CPRs It is created and owned by Link Layer MCPRs and passed to the left in the BindTo messages. It is controlled ONLY by the SCPR.
Constructor & Destructor Documentation
CAgentAdapter(CAgentSubConnectionProvider &)
Parameters
CAgentSubConnectionProvider
& aAgentScpr
|
The CAgentSubConnectionProvider that is to be called upon when notifications are received from the agent
|
Member Functions Documentation
AgentEvent(TNetworkAdaptorEventType, TUint, const TDesC8 &, TAny *)
void
|
AgentEvent
|
(
|
TNetworkAdaptorEventType
|
aEventType,
|
|
TUint
|
aEvent,
|
|
const
TDesC8
&
|
aEventData,
|
|
TAny
*
|
aSource = 0
|
|
)
|
[private, virtual]
|
Event notification from the Agent (Only known use of this is in bluetooth panagt.cpp)
Parameters
TNetworkAdaptorEventType
aEventType
|
|
TUint
aEvent
|
|
const
TDesC8
& aEventData
|
|
TAny
* aSource = 0
|
|
AgentProgress(TInt, TInt)
void
|
AgentProgress
|
(
|
TInt
|
aStage,
|
|
TInt
|
aError
|
|
)
|
[private, virtual]
|
Progress notifications from the Agent Connect()
AgentProgress(TSubConnectionUniqueId, TInt, TInt)
The functionality provided by this method has never been used.
Authenticate(TDes &, TDes &)
void
|
Authenticate
|
(
|
TDes
&
|
aUsername,
|
|
TDes
&
|
aPassword
|
|
)
|
|
Starts the process of obtaining authentication information via the Agent (called after the SCPr receives an Authentication request from the SCF)
AuthenticateComplete(TInt)
void
|
AuthenticateComplete
|
(
|
TInt
|
aStatus
|
)
|
[private, virtual]
|
Authentication completed by Agent
CancelAuthenticate()
void
|
CancelAuthenticate
|
(
|
)
|
|
Stops the process of obtaining authentication information via the Agent
CancelServiceChangeNotification(const Messages::TNodeId &)
Routing the CancelServiceChangeNotification to the Agent
ClientAttachControl()
void
|
ClientAttachControl
|
(
|
)
|
|
ConnectAgent(TAgentConnectType)
void
|
ConnectAgent
|
(
|
TAgentConnectType
|
aConnectType
|
)
|
|
Begins connection of the Agent (called after SCPr receives BindTo and has Joined the
CAgentAdapter
)
Parameters
TAgentConnectType
aConnectType
|
|
ConnectComplete(TInt)
void
|
ConnectComplete
|
(
|
TInt
|
aStatus
|
)
|
[private, virtual]
|
Agent has started - The SCPR should send BindTo information to the SCF
Control(TUint, TUint, TDes8 &, ESock::MPlatsecApiExt *)
CreateAgentL(const TDesC &)
void
|
CreateAgentL
|
(
|
const
TDesC
&
|
aAgentName
|
)
|
[private]
|
DisconnectAgent(TInt)
void
|
DisconnectAgent
|
(
|
TInt
|
aReason
|
)
|
|
Begins the disconnection of the Agent
DisconnectComplete()
void
|
DisconnectComplete
|
(
|
)
|
[private, virtual]
|
FindOrCreateAgentFactoryL(const TDesC &)
Load a factory and check the Uid etc function always opens factory
CObject
if successful
IncomingConnectionReceived()
TInt
|
IncomingConnectionReceived
|
(
|
)
|
[private, virtual]
|
Incoming connections not supported?
NewL(CAgentSubConnectionProvider &, const TDesC &)
Create a
CAgentAdapter
and Agent (loading the .agt library if necessary)
Parameters
CAgentSubConnectionProvider
& aAgentScpr
|
The CAgentSubConnectionProvider that is to be called upon when notifications are received from the agent
|
const
TDesC
& aAgentName
|
The name of the agent to load/create for this CAgentAdaptor
|
Notification(TAgentToNifEventType, TAny *)
TInt
|
Notification
|
(
|
TAgentToNifEventType
|
aEvent,
|
|
TAny
*
|
aInfo = NULL
|
|
)
|
[private, virtual]
|
Notification from the Agent to the
Nif
(Flow)
Parameters
TAgentToNifEventType
aEvent
|
|
TAny
* aInfo = NULL
|
|
NotificationToAgent(TFlowToAgentEventType, TAny *)
TInt
|
NotificationToAgent
|
(
|
TFlowToAgentEventType
|
aEvent,
|
|
TAny
*
|
aInfo
|
|
)
|
|
Parameters
TFlowToAgentEventType
aEvent
|
|
TAny
* aInfo
|
|
PromptForReconnect()
void
|
PromptForReconnect
|
(
|
)
|
|
ReadExcessData(TDes8 &)
Gets excess data for NIFs such as the PPP NIF.
Parameters
TDes8
& aBuffer
|
- After a successful call contains excess data from the agent
|
ReadIfNetworks(TDes8 &)
Gets the Interface Networks for NIFs.
ReadIfNetworks(TDes16 &)
Gets the Interface Networks for NIFs.
ReadIfParams(TDes8 &)
Gets the Interface Parameters for NIFs.
Parameters
TDes8
& aIfParams
|
- After a successful call contains interface parameters from the agent
|
ReadIfParams(TDes16 &)
Gets the Interface Parameters for NIFs.
Parameters
TDes16
& aIfParams
|
- After a successful call contains interface parameters from the agent
|
ReadNifName(TDes8 &)
Gets the name of the NIF (Flow)
Parameters
TDes8
& aNifName
|
- After a successful call contains the NIF (Flow) Name
|
ReadNifName(TDes16 &)
Gets the name of the NIF (Flow)
Parameters
TDes16
& aNifName
|
- After a successful call contains the NIF (Flow) Name
|
ReadPortName(TDes8 &)
Get the port name for NIFs such as the PPP NIF.
Parameters
TDes8
& aPortName
|
- After a successful call contains the port name from the agent
|
ReadPortName(TDes16 &)
Get the port name for NIFs such as the PPP NIF.
Parameters
TDes16
& aPortName
|
- After a successful call contains the port name from the agent
|
ReconnectComplete(TInt)
void
|
ReconnectComplete
|
(
|
TInt
|
aStatus
|
)
|
[private, virtual]
|
Traditionally reconnection would be initiated from the CNifAgentRef and handled by NetCon. NetCon would call this method via the
ReconnectComplete()
in the CAgentBase. This represents the completion of the prompting of the user for a decision to be made on whether or not to reconnect, not the actual reconnection
RequestServiceChangeNotificationL(const Messages::TNodeId &, ESock::RLegacyResponseMsg &)
Routing the RequestServiceChangeNotification to the Agent
ServiceClosed()
void
|
ServiceClosed
|
(
|
)
|
[private, virtual]
|
Traditionally called by the CNifAgentRef as a result of a DisconnectComplete, deletion of the the object, or failure to bind. The method would have deleted the NIF. We do nothing here.
ServiceStarted()
void
|
ServiceStarted
|
(
|
)
|
[private, virtual]
|
Agent service started (message from agent) Traditionally the CNifAgentRef implementation would load the NIF here.
Member Enumerations Documentation
Enum TAgentState
Enumerators
EDisconnected
|
|
EConnecting
|
|
EConnected
|
|
EDisconnecting
|
|
EReconnecting
|
|
Member Data Documentation
RPointerArray< CAgentAdapterSessionNotifier > iAgentAdapterSessionNotifiers
TAgentConnectType
iAgentConnectType
TAgentConnectType
|
iAgentConnectType
|
[private]
|
CAgentSubConnectionProvider & iAgentScpr
CNifAgentFactory * iFactory
Elements::TStateChange
iLastProgress
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.