CEvtMgmtUiLbtAdapter Class Reference

class CEvtMgmtUiLbtAdapter : public CActive

Class that represents the adapter for lbt operation

This class acts as an adapter for lbt engine. It is used to create, update, delete, retrive triggers. It is also used to change state of the trigger

Since
S60 v9.1

Inherits from

Public Member Functions
~CEvtMgmtUiLbtAdapter()
voidCancelRequest()
voidCreateTrigger(const TCoordinate &, TReal, const TPtrC &, CLbtTriggerEntry::TLbtTriggerState)
voidDeleteTriggerL(TLbtTriggerId)
voidDeleteTriggersL(const RArray< TLbtTriggerId > &)
voidDoCancel()
TBool GetFiredPositionL(TPosition &, const TLbtTriggerId)
voidGetFiredTriggerAccuracyL(TLbtTriggerId, TReal32 &)
voidGetTriggerListL(RArray< TLbtTriggerId > &, CLbtTriggerEntry::TLbtTriggerState)
voidGetTriggerListL(RArray< TLbtTriggerId > &, TLbtTriggerDynamicInfo::TLbtTriggerValidity)
CLbtTriggerEntry::TLbtTriggerState GetTriggerStateL(TLbtTriggerId)
CEvtMgmtUiLbtAdapter *NewL(MEvtMgmtUiLbtObserver &)
voidRetrieveLocationL(TLbtTriggerId, TCoordinate &)
TInt RunError(TInt)
voidRunL()
voidSetTriggerStateL(TLbtTriggerId, CLbtTriggerEntry::TLbtTriggerState)
voidSetTriggersStateL(const RArray< TLbtTriggerId > &, CLbtTriggerEntry::TLbtTriggerState)
voidTriggerChangedL(const TLbtTriggerChangeEvent &)
voidUpdateCmdLineArgL(TLbtTriggerId, TEvtEventId)
voidUpdateTriggerL(TLbtTriggerId, const TCoordinate &, TReal, CLbtTriggerEntry::TLbtTriggerState)
Private Member Functions
CEvtMgmtUiLbtAdapter(MEvtMgmtUiLbtObserver &)
voidConstructL()
voidCreateTriggerL(const TCoordinate &, TReal, const TPtrC &, CLbtTriggerEntry::TLbtTriggerState)
CLbtTriggerConditionArea *GetConditionAreaL(const TCoordinate &, TReal)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
Public Member Enumerations
enumTLbtAdtapterState {
ELbtAdapterCreate, ELbtAdapterUpdate, ELbtAdapterUpdateCmdLineArg, ELbtAdapterDelete, ELbtAdapterDeleteTriggers, ELbtAdapterSetTriggerState, ELbtAdapterSetTriggersState, ENone
}
Inherited Enumerations
CActive:TPriority
Private Attributes
CLbtTriggerFilterByAttribute *iAttrFilter
CLbtTriggerChangeEventNotifier *iEventChangeObserver
RLbt iLbt
RLbt iLbtObserver
RLbtServer iLbtServer
MEvtMgmtUiLbtObserver &iObserver
TLbtAdtapterState iState
CLbtStartupTrigger *iTrigger
TLbtTriggerId iTriggerId
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CEvtMgmtUiLbtAdapter(MEvtMgmtUiLbtObserver &)

CEvtMgmtUiLbtAdapter(MEvtMgmtUiLbtObserver &aObserver)[private]

C++ Default constructor

Parameters

MEvtMgmtUiLbtObserver & aObserver

~CEvtMgmtUiLbtAdapter()

~CEvtMgmtUiLbtAdapter()[virtual]

Virtual destructor

Member Functions Documentation

CancelRequest()

voidCancelRequest()

ConstructL()

voidConstructL()[private]

Second phase of the two phase constructor

CreateTrigger(const TCoordinate &, TReal, const TPtrC &, CLbtTriggerEntry::TLbtTriggerState)

voidCreateTrigger(const TCoordinate &aCenter,
TRealaRadiusInKiloMeters,
const TPtrC &aTriggerName,
CLbtTriggerEntry::TLbtTriggerStateaState
)

Parameters

const TCoordinate & aCenter
TReal aRadiusInKiloMeters
const TPtrC & aTriggerName
CLbtTriggerEntry::TLbtTriggerState aState

CreateTriggerL(const TCoordinate &, TReal, const TPtrC &, CLbtTriggerEntry::TLbtTriggerState)

voidCreateTriggerL(const TCoordinate &aCenter,
TRealaRadiusInKiloMeters,
const TPtrC &aTriggerName,
CLbtTriggerEntry::TLbtTriggerStateaState
)[private]

Parameters

const TCoordinate & aCenter
TReal aRadiusInKiloMeters
const TPtrC & aTriggerName
CLbtTriggerEntry::TLbtTriggerState aState

DeleteTriggerL(TLbtTriggerId)

voidDeleteTriggerL(TLbtTriggerIdaTriggerId)

Parameters

TLbtTriggerId aTriggerId

DeleteTriggersL(const RArray< TLbtTriggerId > &)

voidDeleteTriggersL(const RArray< TLbtTriggerId > &aTriggerIdList)

Parameters

const RArray< TLbtTriggerId > & aTriggerIdList

DoCancel()

voidDoCancel()[virtual]

Implements cancellation of an outstanding request.

This function is called as part of the active object's Cancel().

It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.

DoCancel() must not wait for event completion; this is handled by Cancel().

CActive::Cancel

GetConditionAreaL(const TCoordinate &, TReal)

CLbtTriggerConditionArea *GetConditionAreaL(const TCoordinate &aCenter,
TRealaRadiusInKiloMeters
)[private]

Parameters

const TCoordinate & aCenter
TReal aRadiusInKiloMeters

GetFiredPositionL(TPosition &, const TLbtTriggerId)

TBool GetFiredPositionL(TPosition &aPosition,
const TLbtTriggerIdaTriggerId
)

Parameters

TPosition & aPosition
const TLbtTriggerId aTriggerId

GetFiredTriggerAccuracyL(TLbtTriggerId, TReal32 &)

voidGetFiredTriggerAccuracyL(TLbtTriggerIdaTriggerId,
TReal32 &aDistance
)

Parameters

TLbtTriggerId aTriggerId
TReal32 & aDistance

GetTriggerListL(RArray< TLbtTriggerId > &, CLbtTriggerEntry::TLbtTriggerState)

voidGetTriggerListL(RArray< TLbtTriggerId > &aTriggerList,
CLbtTriggerEntry::TLbtTriggerStateaState
)

Parameters

RArray< TLbtTriggerId > & aTriggerList
CLbtTriggerEntry::TLbtTriggerState aState

GetTriggerListL(RArray< TLbtTriggerId > &, TLbtTriggerDynamicInfo::TLbtTriggerValidity)

voidGetTriggerListL(RArray< TLbtTriggerId > &aTriggerList,
TLbtTriggerDynamicInfo::TLbtTriggerValidityaValid
)

GetTriggerStateL(TLbtTriggerId)

CLbtTriggerEntry::TLbtTriggerState GetTriggerStateL(TLbtTriggerIdaTriggerId)

Parameters

TLbtTriggerId aTriggerId

NewL(MEvtMgmtUiLbtObserver &)

CEvtMgmtUiLbtAdapter *NewL(MEvtMgmtUiLbtObserver &aObserver)[static]

Static Two phase constructor

Parameters

MEvtMgmtUiLbtObserver & aObserver

RetrieveLocationL(TLbtTriggerId, TCoordinate &)

voidRetrieveLocationL(TLbtTriggerIdaTriggerId,
TCoordinate &aCenter
)

Parameters

TLbtTriggerId aTriggerId
TCoordinate & aCenter

RunError(TInt)

TInt RunError(TIntaError)[virtual]

Parameters

TInt aError

RunL()

voidRunL()[virtual]

Handles an active object's request completion event.

A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.

The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.

Before calling this active object's RunL() function, the active scheduler has:

1. decided that this is the highest priority active object with a completed request

2. marked this active object's request as complete (i.e. the request is no longer outstanding)

RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.

Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.

CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD

SetTriggerStateL(TLbtTriggerId, CLbtTriggerEntry::TLbtTriggerState)

voidSetTriggerStateL(TLbtTriggerIdaTriggerId,
CLbtTriggerEntry::TLbtTriggerStateaState
)

SetTriggersStateL(const RArray< TLbtTriggerId > &, CLbtTriggerEntry::TLbtTriggerState)

voidSetTriggersStateL(const RArray< TLbtTriggerId > &aTriggerIdList,
CLbtTriggerEntry::TLbtTriggerStateaState
)

Parameters

const RArray< TLbtTriggerId > & aTriggerIdList
CLbtTriggerEntry::TLbtTriggerState aState

TriggerChangedL(const TLbtTriggerChangeEvent &)

voidTriggerChangedL(const TLbtTriggerChangeEvent &aEvent)

Parameters

const TLbtTriggerChangeEvent & aEvent

UpdateCmdLineArgL(TLbtTriggerId, TEvtEventId)

voidUpdateCmdLineArgL(TLbtTriggerIdaTriggerId,
TEvtEventIdaEventId
)

Parameters

TLbtTriggerId aTriggerId
TEvtEventId aEventId

UpdateTriggerL(TLbtTriggerId, const TCoordinate &, TReal, CLbtTriggerEntry::TLbtTriggerState)

voidUpdateTriggerL(TLbtTriggerIdaTriggerId,
const TCoordinate &aCenter,
TRealaRadiusInKiloMeters,
CLbtTriggerEntry::TLbtTriggerStateaState
)

Parameters

TLbtTriggerId aTriggerId
const TCoordinate & aCenter
TReal aRadiusInKiloMeters
CLbtTriggerEntry::TLbtTriggerState aState

Member Enumerations Documentation

Enum TLbtAdtapterState

Enumerators

ELbtAdapterCreate
ELbtAdapterUpdate
ELbtAdapterUpdateCmdLineArg
ELbtAdapterDelete
ELbtAdapterDeleteTriggers
ELbtAdapterSetTriggerState
ELbtAdapterSetTriggersState
ENone

Default option

Member Data Documentation

CLbtTriggerFilterByAttribute * iAttrFilter

CLbtTriggerFilterByAttribute *iAttrFilter[private]

CLbtTriggerChangeEventNotifier * iEventChangeObserver

CLbtTriggerChangeEventNotifier *iEventChangeObserver[private]

Reference Trigger Change Notifier

RLbt iLbt

RLbt iLbt[private]

RLbt iLbtObserver

RLbt iLbtObserver[private]

RLbtServer iLbtServer

RLbtServer iLbtServer[private]

MEvtMgmtUiLbtObserver & iObserver

MEvtMgmtUiLbtObserver &iObserver[private]

TLbtAdtapterState iState

TLbtAdtapterState iState[private]

CLbtStartupTrigger * iTrigger

CLbtStartupTrigger *iTrigger[private]

TLbtTriggerId iTriggerId

TLbtTriggerId iTriggerId[private]