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 ()
void CancelRequest ()
void CreateTrigger (const TCoordinate &, TReal , const TPtrC &, CLbtTriggerEntry::TLbtTriggerState )
void DeleteTriggerL ( TLbtTriggerId )
void DeleteTriggersL (const RArray < TLbtTriggerId > &)
void DoCancel ()
TBool GetFiredPositionL ( TPosition &, const TLbtTriggerId )
void GetFiredTriggerAccuracyL ( TLbtTriggerId , TReal32 &)
void GetTriggerListL ( RArray < TLbtTriggerId > &, CLbtTriggerEntry::TLbtTriggerState )
void GetTriggerListL ( RArray < TLbtTriggerId > &, TLbtTriggerDynamicInfo::TLbtTriggerValidity )
CLbtTriggerEntry::TLbtTriggerState GetTriggerStateL ( TLbtTriggerId )
CEvtMgmtUiLbtAdapter * NewL ( MEvtMgmtUiLbtObserver &)
void RetrieveLocationL ( TLbtTriggerId , TCoordinate &)
TInt RunError ( TInt )
void RunL ()
void SetTriggerStateL ( TLbtTriggerId , CLbtTriggerEntry::TLbtTriggerState )
void SetTriggersStateL (const RArray < TLbtTriggerId > &, CLbtTriggerEntry::TLbtTriggerState )
void TriggerChangedL (const TLbtTriggerChangeEvent &)
void UpdateCmdLineArgL ( TLbtTriggerId , TEvtEventId )
void UpdateTriggerL ( TLbtTriggerId , const TCoordinate &, TReal , CLbtTriggerEntry::TLbtTriggerState )
Private Member Functions
CEvtMgmtUiLbtAdapter ( MEvtMgmtUiLbtObserver &)
void ConstructL ()
void CreateTriggerL (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
enum TLbtAdtapterState {
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()

void CancelRequest ( )

ConstructL()

void ConstructL ( ) [private]

Second phase of the two phase constructor

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

void CreateTrigger ( const TCoordinate & aCenter,
TReal aRadiusInKiloMeters,
const TPtrC & aTriggerName,
CLbtTriggerEntry::TLbtTriggerState aState
)

Parameters

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

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

void CreateTriggerL ( const TCoordinate & aCenter,
TReal aRadiusInKiloMeters,
const TPtrC & aTriggerName,
CLbtTriggerEntry::TLbtTriggerState aState
) [private]

Parameters

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

DeleteTriggerL(TLbtTriggerId)

void DeleteTriggerL ( TLbtTriggerId aTriggerId )

Parameters

TLbtTriggerId aTriggerId

DeleteTriggersL(const RArray< TLbtTriggerId > &)

void DeleteTriggersL ( const RArray < TLbtTriggerId > & aTriggerIdList )

Parameters

const RArray < TLbtTriggerId > & aTriggerIdList

DoCancel()

void DoCancel ( ) [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,
TReal aRadiusInKiloMeters
) [private]

Parameters

const TCoordinate & aCenter
TReal aRadiusInKiloMeters

GetFiredPositionL(TPosition &, const TLbtTriggerId)

TBool GetFiredPositionL ( TPosition & aPosition,
const TLbtTriggerId aTriggerId
)

Parameters

TPosition & aPosition
const TLbtTriggerId aTriggerId

GetFiredTriggerAccuracyL(TLbtTriggerId, TReal32 &)

void GetFiredTriggerAccuracyL ( TLbtTriggerId aTriggerId,
TReal32 & aDistance
)

Parameters

TLbtTriggerId aTriggerId
TReal32 & aDistance

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

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

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

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

GetTriggerStateL(TLbtTriggerId)

CLbtTriggerEntry::TLbtTriggerState GetTriggerStateL ( TLbtTriggerId aTriggerId )

Parameters

TLbtTriggerId aTriggerId

NewL(MEvtMgmtUiLbtObserver &)

CEvtMgmtUiLbtAdapter * NewL ( MEvtMgmtUiLbtObserver & aObserver ) [static]

Static Two phase constructor

Parameters

MEvtMgmtUiLbtObserver & aObserver

RetrieveLocationL(TLbtTriggerId, TCoordinate &)

void RetrieveLocationL ( TLbtTriggerId aTriggerId,
TCoordinate & aCenter
)

Parameters

TLbtTriggerId aTriggerId
TCoordinate & aCenter

RunError(TInt)

TInt RunError ( TInt aError ) [virtual]

Parameters

TInt aError

RunL()

void RunL ( ) [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)

void SetTriggerStateL ( TLbtTriggerId aTriggerId,
CLbtTriggerEntry::TLbtTriggerState aState
)

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

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

Parameters

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

TriggerChangedL(const TLbtTriggerChangeEvent &)

void TriggerChangedL ( const TLbtTriggerChangeEvent & aEvent )

Parameters

const TLbtTriggerChangeEvent & aEvent

UpdateCmdLineArgL(TLbtTriggerId, TEvtEventId)

void UpdateCmdLineArgL ( TLbtTriggerId aTriggerId,
TEvtEventId aEventId
)

Parameters

TLbtTriggerId aTriggerId
TEvtEventId aEventId

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

void UpdateTriggerL ( TLbtTriggerId aTriggerId,
const TCoordinate & aCenter,
TReal aRadiusInKiloMeters,
CLbtTriggerEntry::TLbtTriggerState aState
)

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]