MeshMachine::CNodeRetryActivity Class Reference

class MeshMachine::CNodeRetryActivity : public MeshMachine::CNodeActivityBase

Activity class base for activities which wish to use synchronisation or retries.

Inherits from

Public Member Functions
typedef ITFHIERARCHY_2 ( CNodeRetryActivity , AContextStore , AActivitySemaphore )
IMPORT_C TBool IsIdle ()
IMPORT_C CNodeActivityBase * NewL (const TNodeActivity &, AMMNodeBase &)
IMPORT_C void ReturnInterfacePtrL ( AContextStore *&)
IMPORT_C void ReturnInterfacePtrL ( AActivitySemaphore *&)
IMPORT_C void SetIdle ()
Protected Member Functions
CNodeRetryActivity (const TNodeActivity &, AMMNodeBase &)
IMPORT_C TBool Signal ( TNodeContextBase &)
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()
MeshMachine::CNodeActivityBase::Abort(TNodeContextBase &,TBool)
MeshMachine::CNodeActivityBase::Accept(TNodeContextBase &,const TNodeActivity &,TInt)
MeshMachine::CNodeActivityBase::ActivityId()const
MeshMachine::CNodeActivityBase::ActivitySigId()const
MeshMachine::CNodeActivityBase::AppendActivityL()
MeshMachine::CNodeActivityBase::AppendPreallocatedActivity()
MeshMachine::CNodeActivityBase::BorrowPreallocatedSpace(AMMNodeBase &,TUint)
MeshMachine::CNodeActivityBase::CNodeActivityBase(const TNodeActivity &,AMMNodeBase &)
MeshMachine::CNodeActivityBase::Cancel(TNodeContextBase &)
MeshMachine::CNodeActivityBase::ClearPostedTo()
MeshMachine::CNodeActivityBase::Destroy()
MeshMachine::CNodeActivityBase::DoFetchInterfaceControlL(TInt)
MeshMachine::CNodeActivityBase::Error()const
MeshMachine::CNodeActivityBase::FindOriginator(const Messages::RNodeInterface &)const
MeshMachine::CNodeActivityBase::FindOriginator(const Messages::TNodePeerId &)const
MeshMachine::CNodeActivityBase::FindOriginator(const Messages::TRuntimeCtxId &)const
MeshMachine::CNodeActivityBase::FirstOriginator()const
MeshMachine::CNodeActivityBase::InsertPreallocatedDestroyActivity()
MeshMachine::CNodeActivityBase::KickOffMessageId()const
MeshMachine::CNodeActivityBase::MatchSender(const TNodeContextBase &)const
MeshMachine::CNodeActivityBase::Next(TNodeContextBase &)
MeshMachine::CNodeActivityBase::PostRequestTo(const Messages::RNodeInterface &,const Messages::TSignalBase &,const TBool)
MeshMachine::CNodeActivityBase::PostRequestTo(const Messages::TNodeId &,const Messages::TSignalBase &,const TBool)
MeshMachine::CNodeActivityBase::PostToOriginator(const Messages::TNodePeerId &,const Messages::TSignalBase &)const
MeshMachine::CNodeActivityBase::PostToOriginators(const Messages::TSignalBase &,TUint32,TUint32)
MeshMachine::CNodeActivityBase::PostedToNodeId()const
MeshMachine::CNodeActivityBase::PostedToPeer()const
MeshMachine::CNodeActivityBase::RemoveOriginator(TInt)
MeshMachine::CNodeActivityBase::ReturnPreallocatedSpace(TAny *)
MeshMachine::CNodeActivityBase::SetError(TInt)
MeshMachine::CNodeActivityBase::SetPostedTo(const Messages::RNodeInterface &)
MeshMachine::CNodeActivityBase::SetPostedTo(const Messages::TNodeId &)
MeshMachine::CNodeActivityBase::SoleOriginator()const
MeshMachine::CNodeActivityBase::StartL(TNodeContextBase &,const Messages::XNodePeerId &,const NetStateMachine::TStateTriple &)
MeshMachine::CNodeActivityBase::~CNodeActivityBase()
Public Member Type Definitions
typedef NetInterfaces::TIfStaticFetcher < NetInterfaces::TIfStaticFetcher < NetInterfaces::TIfStaticFetcherFirstInHierarchy < NetInterfaces::TInterfaceControl >, CNodeRetryActivity , AContextStore >, CNodeRetryActivity , AActivitySemaphore > TIfStaticFetcherNearestInHierarchy
Inherited Attributes
MeshMachine::CNodeActivityBase::iNode
MeshMachine::CNodeActivityBase::iOriginators

Constructor & Destructor Documentation

CNodeRetryActivity(const TNodeActivity &, AMMNodeBase &)

IMPORT_C CNodeRetryActivity ( const TNodeActivity & aActivitySig,
AMMNodeBase & aNode
) [protected]

Constructor for CNodeRetryActivity

Parameters

const TNodeActivity & aActivitySig Context information about how the activity is to be started
AMMNodeBase & aNode The node to which this activity will belong.

Member Functions Documentation

ITFHIERARCHY_2(CNodeRetryActivity, AContextStore, AActivitySemaphore)

typedef ITFHIERARCHY_2 ( CNodeRetryActivity ,
AContextStore ,
AActivitySemaphore
)

Defines a helper list of interfaces.

IsIdle()

IMPORT_C TBool IsIdle ( ) const [virtual]

Check if the activity has stopped running

NewL(const TNodeActivity &, AMMNodeBase &)

IMPORT_C CNodeActivityBase * NewL ( const TNodeActivity & aActivitySig,
AMMNodeBase & aNode
) [static]

Create a new activity. This should never be called by user code.

Parameters

const TNodeActivity & aActivitySig Context information about how the activity is to be started
AMMNodeBase & aNode The node to which this activity will belong.

ReturnInterfacePtrL(AContextStore *&)

IMPORT_C void ReturnInterfacePtrL ( AContextStore *& aInterface )

Fetch the context store interface

Parameters

AContextStore *& aInterface pointer into which a pointer to the interface will be placed.

ReturnInterfacePtrL(AActivitySemaphore *&)

IMPORT_C void ReturnInterfacePtrL ( AActivitySemaphore *& aInterface )

Fetch the activity semaphore interface

Parameters

AActivitySemaphore *& aInterface On return, contains a pointer to the interface.

SetIdle()

IMPORT_C void SetIdle ( ) [virtual]

Put the activity into the idle state. This stops the activity running and notifies the mesh machine that it is ok to delete this activity.

Signal(TNodeContextBase &)

IMPORT_C TBool Signal ( TNodeContextBase & aContext ) [protected, virtual]

Signal the activity that an event has occurred and that it is worthwhile checking to see if the mutex has now cleared.

Parameters

TNodeContextBase & aContext Current context in the state machine.

Member Type Definitions Documentation