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
typedefITFHIERARCHY_2(CNodeRetryActivity, AContextStore, AActivitySemaphore)
IMPORT_C TBoolIsIdle()
IMPORT_C CNodeActivityBase *NewL(const TNodeActivity &, AMMNodeBase &)
IMPORT_C voidReturnInterfacePtrL(AContextStore *&)
IMPORT_C voidReturnInterfacePtrL(AActivitySemaphore *&)
IMPORT_C voidSetIdle()
Protected Member Functions
CNodeRetryActivity(const TNodeActivity &, AMMNodeBase &)
IMPORT_C TBoolSignal(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_CCNodeRetryActivity(const TNodeActivity &aActivitySig,
AMMNodeBase &aNode
)[protected]

Constructor for CNodeRetryActivity

Parameters

const TNodeActivity & aActivitySigContext information about how the activity is to be started
AMMNodeBase & aNodeThe node to which this activity will belong.

Member Functions Documentation

ITFHIERARCHY_2(CNodeRetryActivity, AContextStore, AActivitySemaphore)

typedefITFHIERARCHY_2(CNodeRetryActivity,
AContextStore,
AActivitySemaphore
)

Defines a helper list of interfaces.

IsIdle()

IMPORT_C TBoolIsIdle()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 & aActivitySigContext information about how the activity is to be started
AMMNodeBase & aNodeThe node to which this activity will belong.

ReturnInterfacePtrL(AContextStore *&)

IMPORT_C voidReturnInterfacePtrL(AContextStore *&aInterface)

Fetch the context store interface

Parameters

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

ReturnInterfacePtrL(AActivitySemaphore *&)

IMPORT_C voidReturnInterfacePtrL(AActivitySemaphore *&aInterface)

Fetch the activity semaphore interface

Parameters

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

SetIdle()

IMPORT_C voidSetIdle()[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 TBoolSignal(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 & aContextCurrent context in the state machine.

Member Type Definitions Documentation

Typedef TIfStaticFetcherNearestInHierarchy

typedef NetInterfaces::TIfStaticFetcher< NetInterfaces::TIfStaticFetcher< NetInterfaces::TIfStaticFetcherFirstInHierarchy< NetInterfaces::TInterfaceControl >, CNodeRetryActivity, AContextStore >, CNodeRetryActivity, AActivitySemaphore >TIfStaticFetcherNearestInHierarchy

Defines a helper list of interfaces.