CEvtMgmtUiEngine Class Reference

class CEvtMgmtUiEngine : public CBase

Class that represents the engine for evtmgmtui application

It is used to create, update, delete, retrive events. It is also used to change state of the event.

Since
Symbian v9.1

Inherits from

Public Member Functions
~CEvtMgmtUiEngine()
IMPORT_C voidAddEventL(CEvtEvent &)
IMPORT_C TEvtFireAccuracyCalculateFiredAccuracyL(const TEvtEventId)
IMPORT_C voidCancelRequest()
IMPORT_C voidDeleteEventL(TEvtEventId)
IMPORT_C voidDeleteEventsL(const RArray< TEvtEventId > *)
IMPORT_C CEvtEvent *EventL(TEvtEventId)
IMPORT_C voidHandleFiredTriggerStateL(const TEvtEventId)
voidHandleStorageDbChangedL()
IMPORT_C voidModifyEventL(CEvtEvent &, TEvtEventAttributeMask)
IMPORT_C CEvtMgmtUiEngine *NewL()
IMPORT_C CEvtMgmtUiEngine *NewLC()
voidNotifyLbtChangeL(TLbtTriggerId &, TInt)
voidNotifyLbtError(TInt, TInt)
voidNotifyTriggerChangeL(const TLbtTriggerId &, TLbtTriggerChangeType)
IMPORT_C voidRemoveObserver(MEvtMgmtUiEngineObserver *)
IMPORT_C voidRetrieveLocationL(TEvtEventId, TCoordinate &)
IMPORT_C voidSetEventStateL(TEvtEventStatus, TEvtEventId)
IMPORT_C voidSetEventsStateL(TEvtEventStatus, const RArray< TEvtEventId > *)
IMPORT_C voidSetObserver(MEvtMgmtUiEngineObserver *)
IMPORT_C voidSyncDbsL()
IMPORT_C voidUpdateModelL(RPointerArray< CEvtBasicEventInfo > &, TEvtEventStatusFilter)
Private Member Functions
CEvtMgmtUiEngine()
voidConstructL()
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()
Public Member Enumerations
enumTEvtEventAttribute {
EEvtEventAttributeSubject = 1, EEvtEventAttributePlace = 2, EEvtEventAttributeRadius = 16, EEvtEventAttributeRepeat = 32, EEvtEventAttributeDesc = 64, EEvtEventAttributeTone = 128, EEvtEventAttributeAudioLoop = 256, EEvtEventAttributeStatus = 512
}
enumTEvtEventStatusFilter { EEvtFilterActive = 0, EEvtFilterDraft = 1, EEvtFilterCompleted = 2, EEvtFilterAll = 3 }
Private Attributes
CEvtEvent *iEvent
CEvtEventManager *iEventManager
const RArray< TEvtEventId > *iEvtIdArray
TEvtEventStatus iEvtStatus
CEvtMgmtUiLbtAdapter *iLbtAdapter
RPointerArray< MEvtMgmtUiEngineObserver >iObserverArray

Constructor & Destructor Documentation

CEvtMgmtUiEngine()

CEvtMgmtUiEngine()[private]

~CEvtMgmtUiEngine()

~CEvtMgmtUiEngine()[virtual]

Virtual destructor

Member Functions Documentation

AddEventL(CEvtEvent &)

IMPORT_C voidAddEventL(CEvtEvent &aEvtEvent)
It will add an event to database
Since
S60 v5.0

Parameters

CEvtEvent & aEvtEvent

CalculateFiredAccuracyL(const TEvtEventId)

IMPORT_C TEvtFireAccuracyCalculateFiredAccuracyL(const TEvtEventIdaEventId)
Calculates the Accuracy of Fired Trigger.
Since
S60 v5.0

Parameters

const TEvtEventId aEventId

CancelRequest()

IMPORT_C voidCancelRequest()
Cancels all the outstanding lbt request.
Since
S60 v5.0

ConstructL()

voidConstructL()[private]

DeleteEventL(TEvtEventId)

IMPORT_C voidDeleteEventL(TEvtEventIdaId = -1)
It will delete the list of Events from the database.
Since
S60 v5.0

Parameters

TEvtEventId aId = -1id of event to be deleted

DeleteEventsL(const RArray< TEvtEventId > *)

IMPORT_C voidDeleteEventsL(const RArray< TEvtEventId > *aEvtIdArray)
It will delete event from database
Since
S60 v5.0

Parameters

const RArray< TEvtEventId > * aEvtIdArrayaEventArray Reference to the Events Id array that are to be removed form the database.

EventL(TEvtEventId)

IMPORT_C CEvtEvent *EventL(TEvtEventIdaId)

returns event object

Since
S60 v5.0

Parameters

TEvtEventId aId- event id of the event to be retrieved. event object

HandleFiredTriggerStateL(const TEvtEventId)

IMPORT_C voidHandleFiredTriggerStateL(const TEvtEventIdaEventId)
Handle Fired Trigger state. Trigger State should be completed if fired Event is not repetitive.
Since
S60 v5.0

Parameters

const TEvtEventId aEventId

HandleStorageDbChangedL()

voidHandleStorageDbChangedL()

Derived from MEvtStorageDbObserver

ModifyEventL(CEvtEvent &, TEvtEventAttributeMask)

IMPORT_C voidModifyEventL(CEvtEvent &aEvtEvent,
TEvtEventAttributeMaskaEventAttributeMask
)
It will modify event to database
Since
S60 v5.0

Parameters

CEvtEvent & aEvtEvent
TEvtEventAttributeMask aEventAttributeMask

NewL()

IMPORT_C CEvtMgmtUiEngine *NewL()[static]

Static Two phase constructor

NewLC()

IMPORT_C CEvtMgmtUiEngine *NewLC()[static]

Static Two phase constructor

NotifyLbtChangeL(TLbtTriggerId &, TInt)

voidNotifyLbtChangeL(TLbtTriggerId &aTriggerId,
TIntaState
)

Derived from MEvtMgmtUiLbtObserver

Parameters

TLbtTriggerId & aTriggerId
TInt aState

NotifyLbtError(TInt, TInt)

voidNotifyLbtError(TIntaErrorCode,
TIntaState
)

Derived from MEvtMgmtUiLbtObserver

Parameters

TInt aErrorCode
TInt aState

NotifyTriggerChangeL(const TLbtTriggerId &, TLbtTriggerChangeType)

voidNotifyTriggerChangeL(const TLbtTriggerId &,
TLbtTriggerChangeTypeaType
)

Derived from MEvtMgmtUiLbtObserver

Parameters

const TLbtTriggerId &
TLbtTriggerChangeType aType

RemoveObserver(MEvtMgmtUiEngineObserver *)

IMPORT_C voidRemoveObserver(MEvtMgmtUiEngineObserver *aObserver)

Remove observer to notify engine operation is completed.

Since
S60 v5.0 [in] aObserver - Observer which wants to get notifications.

Parameters

MEvtMgmtUiEngineObserver * aObserver

RetrieveLocationL(TEvtEventId, TCoordinate &)

IMPORT_C voidRetrieveLocationL(TEvtEventIdaEventId,
TCoordinate &aCoordinate
)

Parameters

TEvtEventId aEventId
TCoordinate & aCoordinate

SetEventStateL(TEvtEventStatus, TEvtEventId)

IMPORT_C voidSetEventStateL(TEvtEventStatusaEvtStatus,
TEvtEventIdaId = -1
)
It will set state of the event.
Since
S60 v5.0

Parameters

TEvtEventStatus aEvtStatusstatus of the event
TEvtEventId aId = -1id of event to be updated

SetEventsStateL(TEvtEventStatus, const RArray< TEvtEventId > *)

IMPORT_C voidSetEventsStateL(TEvtEventStatusaEvtStatus,
const RArray< TEvtEventId > *aEvtIdArray
)
It will set state of the events.
Since
S60 v5.0

Parameters

TEvtEventStatus aEvtStatusstatus of the event
const RArray< TEvtEventId > * aEvtIdArrayidlist of events to be updated

SetObserver(MEvtMgmtUiEngineObserver *)

IMPORT_C voidSetObserver(MEvtMgmtUiEngineObserver *aObserver)

Set observer to notify engine operation is completed.

Since
S60 v5.0 [in] aObserver - Observer which wants to get notifications.

Parameters

MEvtMgmtUiEngineObserver * aObserver

SyncDbsL()

IMPORT_C voidSyncDbsL()
Synchronizes the LBT and EvtStorage Db.
Since
S60 v5.0

UpdateModelL(RPointerArray< CEvtBasicEventInfo > &, TEvtEventStatusFilter)

IMPORT_C voidUpdateModelL(RPointerArray< CEvtBasicEventInfo > &aEventsArray,
TEvtEventStatusFilteraEventStatusFilter
)

Updates model

Since
S60 v5.0
TODO: should be removed

Parameters

RPointerArray< CEvtBasicEventInfo > & aEventsArray
TEvtEventStatusFilter aEventStatusFilter

Member Enumerations Documentation

Enum TEvtEventAttribute

Enumeration to identify the modified attributes for an event

Enumerators

EEvtEventAttributeSubject = 1
EEvtEventAttributePlace = 2
EEvtEventAttributeRadius = 16
EEvtEventAttributeRepeat = 32
EEvtEventAttributeDesc = 64
EEvtEventAttributeTone = 128
EEvtEventAttributeAudioLoop = 256
EEvtEventAttributeStatus = 512

Enum TEvtEventStatusFilter

Enumeration to Filter based on status.

Enumerators

EEvtFilterActive = 0

To retrive active events

EEvtFilterDraft = 1

To retrive draft events

EEvtFilterCompleted = 2

To retrive completed events

EEvtFilterAll = 3

To retrieve all events

Member Data Documentation

CEvtEvent * iEvent

CEvtEvent *iEvent[private]

CEvtEventManager * iEventManager

CEvtEventManager *iEventManager[private]

event manager Owns

const RArray< TEvtEventId > * iEvtIdArray

const RArray< TEvtEventId > *iEvtIdArray[private]

TEvtEventStatus iEvtStatus

TEvtEventStatus iEvtStatus[private]

CEvtMgmtUiLbtAdapter * iLbtAdapter

CEvtMgmtUiLbtAdapter *iLbtAdapter[private]

event Owns

RPointerArray< MEvtMgmtUiEngineObserver > iObserverArray

RPointerArray< MEvtMgmtUiEngineObserver >iObserverArray[private]