datacommsserver/esockserver/inc/ss_connstates.h
branchRCL_3
changeset 26 b564fb5fd78b
parent 25 9d7ce34704c8
equal deleted inserted replaced
25:9d7ce34704c8 26:b564fb5fd78b
    82 
    82 
    83 DECLARE_SMELEMENT_HEADER( TSelectMetaPlane, SubSessStates::TECABStateTransitionBase<TContext>, NetStateMachine::MStateTransition, TContext )
    83 DECLARE_SMELEMENT_HEADER( TSelectMetaPlane, SubSessStates::TECABStateTransitionBase<TContext>, NetStateMachine::MStateTransition, TContext )
    84 	virtual void DoL();
    84 	virtual void DoL();
    85 DECLARE_SMELEMENT_FOOTER( TSelectMetaPlane )
    85 DECLARE_SMELEMENT_FOOTER( TSelectMetaPlane )
    86 
    86 
    87 DECLARE_SMELEMENT_HEADER( TJoinReceivedCpr, SubSessStates::TECABStateTransitionBase<TContext>, NetStateMachine::MStateTransition, TContext )
       
    88 	virtual void DoL();
       
    89 DECLARE_SMELEMENT_FOOTER( TJoinReceivedCpr )
       
    90 
       
    91 DECLARE_SMELEMENT_HEADER( TSendFinishedSelectionStateChange, SubSessStates::TECABStateTransitionBase<TContext>, NetStateMachine::MStateTransition, TContext )
    87 DECLARE_SMELEMENT_HEADER( TSendFinishedSelectionStateChange, SubSessStates::TECABStateTransitionBase<TContext>, NetStateMachine::MStateTransition, TContext )
    92 	virtual void DoL();
    88 	virtual void DoL();
    93 DECLARE_SMELEMENT_FOOTER( TSendFinishedSelectionStateChange )
    89 DECLARE_SMELEMENT_FOOTER( TSendFinishedSelectionStateChange )
    94 
    90 
    95 
    91 
   115 DECLARE_SMELEMENT_FOOTER( TProcessBinderResponseForCpr )
   111 DECLARE_SMELEMENT_FOOTER( TProcessBinderResponseForCpr )
   116 
   112 
   117 DECLARE_SMELEMENT_HEADER( TStartConnection, SubSessStates::TECABStateTransitionBase<TContext>, NetStateMachine::MStateTransition, TContext )
   113 DECLARE_SMELEMENT_HEADER( TStartConnection, SubSessStates::TECABStateTransitionBase<TContext>, NetStateMachine::MStateTransition, TContext )
   118 	virtual void DoL();
   114 	virtual void DoL();
   119 DECLARE_SMELEMENT_FOOTER( TStartConnection )
   115 DECLARE_SMELEMENT_FOOTER( TStartConnection )
   120 
       
   121 DECLARE_AGGREGATED_TRANSITION2(
       
   122     TSendFinishedSelectionAndJoinReceivedCpr,
       
   123 	ConnStates::TSendFinishedSelectionStateChange,
       
   124 	ConnStates::TJoinReceivedCpr
       
   125 	)
       
   126 
   116 
   127 DECLARE_SMELEMENT_HEADER( TErrorOrCancel, MeshMachine::TStateFork<ConnStates::TContext>, NetStateMachine::MStateFork, ConnStates::TContext )
   117 DECLARE_SMELEMENT_HEADER( TErrorOrCancel, MeshMachine::TStateFork<ConnStates::TContext>, NetStateMachine::MStateFork, ConnStates::TContext )
   128 	virtual TInt TransitionTag();
   118 	virtual TInt TransitionTag();
   129 DECLARE_SMELEMENT_FOOTER( TErrorOrCancel )
   119 DECLARE_SMELEMENT_FOOTER( TErrorOrCancel )
   130 
   120 
   523 friend class AllInterfaceNotificationActivity::TCancelLinkNotification;
   513 friend class AllInterfaceNotificationActivity::TCancelLinkNotification;
   524 friend class AllInterfaceNotificationActivity::TLeaveTierManager;
   514 friend class AllInterfaceNotificationActivity::TLeaveTierManager;
   525 
   515 
   526 public:
   516 public:
   527 	static MeshMachine::CNodeActivityBase* NewL(const MeshMachine::TNodeActivity& aActivitySig, MeshMachine::AMMNodeBase& aNode);
   517 	static MeshMachine::CNodeActivityBase* NewL(const MeshMachine::TNodeActivity& aActivitySig, MeshMachine::AMMNodeBase& aNode);
       
   518     void InterfaceStateChangeNotification(const TDesC8& aInfo);
       
   519     ESock::CCommsFactoryBase* IpProtoCprFactory() const;
   528 
   520 
   529 private:
   521 private:
   530 	CAllInterfaceNotificationActivity(const MeshMachine::TNodeActivity& aActivitySig, MeshMachine::AMMNodeBase& aNode) :
   522 	CAllInterfaceNotificationActivity(const MeshMachine::TNodeActivity& aActivitySig, MeshMachine::AMMNodeBase& aNode) :
   531 		MeshMachine::CNodeActivityBase(aActivitySig, aNode)
   523 		MeshMachine::CNodeActivityBase(aActivitySig, aNode)
   532 		{
   524 		{
   533 		iTierUid = TUid::Uid(KIPProtoTierId); // IPProto tier
   525 		iTierUid = TUid::Uid(KIPProtoTierId); // IPProto tier
   534 		iAllInterfaceNotificationWorker = static_cast<const CAllInterfaceNotificationWorker*>(&aNode);
   526 		iAllInterfaceNotificationWorker = static_cast<const CAllInterfaceNotificationWorker*>(&aNode);
   535 		}
   527 		}
   536 
   528 
   537 	virtual ~CAllInterfaceNotificationActivity();
   529 	virtual ~CAllInterfaceNotificationActivity();
       
   530     const Factories::TAnyFn& GetVTable() { return iInterfaceVTableF[0]; };
   538 
   531 
   539 private:
   532 private:
   540 	TUid iTierUid;
   533 	TUid iTierUid;
   541 	Messages::TNodeId iTierManager;
   534 	Messages::TNodeId iTierManager;
   542 	const CAllInterfaceNotificationWorker* iAllInterfaceNotificationWorker;
   535 	const CAllInterfaceNotificationWorker* iAllInterfaceNotificationWorker;
       
   536 	TBool iRegisteredForInterfaceStateChanges:1;       // Registered with IpProtoCpr factory
       
   537 
       
   538 private:
       
   539 	static const ESock::TAnyFn iInterfaceVTableF[];
   543 	};
   540 	};
   544 
   541 
   545 /**
   542 /**
   546 	An activity supporting the legacy RConnection::EnumerateConnections method.
   543 	An activity supporting the legacy RConnection::EnumerateConnections method.
   547 */
   544 */