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 void AddEventL ( CEvtEvent &)
IMPORT_C TEvtFireAccuracy CalculateFiredAccuracyL (const TEvtEventId )
IMPORT_C void CancelRequest ()
IMPORT_C void DeleteEventL ( TEvtEventId )
IMPORT_C void DeleteEventsL (const RArray < TEvtEventId > *)
IMPORT_C CEvtEvent * EventL ( TEvtEventId )
IMPORT_C void HandleFiredTriggerStateL (const TEvtEventId )
void HandleStorageDbChangedL ()
IMPORT_C void ModifyEventL ( CEvtEvent &, TEvtEventAttributeMask )
IMPORT_C CEvtMgmtUiEngine * NewL ()
IMPORT_C CEvtMgmtUiEngine * NewLC ()
void NotifyLbtChangeL ( TLbtTriggerId &, TInt )
void NotifyLbtError ( TInt , TInt )
void NotifyTriggerChangeL (const TLbtTriggerId &, TLbtTriggerChangeType)
IMPORT_C void RemoveObserver ( MEvtMgmtUiEngineObserver *)
IMPORT_C void RetrieveLocationL ( TEvtEventId , TCoordinate &)
IMPORT_C void SetEventStateL ( TEvtEventStatus , TEvtEventId )
IMPORT_C void SetEventsStateL ( TEvtEventStatus , const RArray < TEvtEventId > *)
IMPORT_C void SetObserver ( MEvtMgmtUiEngineObserver *)
IMPORT_C void SyncDbsL ()
IMPORT_C void UpdateModelL ( RPointerArray < CEvtBasicEventInfo > &, TEvtEventStatusFilter )
Private Member Functions
CEvtMgmtUiEngine ()
void ConstructL ()
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
enum TEvtEventAttribute {
EEvtEventAttributeSubject  = 1, EEvtEventAttributePlace  = 2, EEvtEventAttributeRadius  = 16, EEvtEventAttributeRepeat  = 32, EEvtEventAttributeDesc  = 64, EEvtEventAttributeTone  = 128, EEvtEventAttributeAudioLoop  = 256, EEvtEventAttributeStatus  = 512
}
enum TEvtEventStatusFilter { 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 void AddEventL ( CEvtEvent & aEvtEvent )
It will add an event to database
Since
S60 v5.0

Parameters

CEvtEvent & aEvtEvent

CalculateFiredAccuracyL(const TEvtEventId)

IMPORT_C TEvtFireAccuracy CalculateFiredAccuracyL ( const TEvtEventId aEventId )
Calculates the Accuracy of Fired Trigger.
Since
S60 v5.0

Parameters

const TEvtEventId aEventId

CancelRequest()

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

ConstructL()

void ConstructL ( ) [private]

DeleteEventL(TEvtEventId)

IMPORT_C void DeleteEventL ( TEvtEventId aId = -1 )
It will delete the list of Events from the database.
Since
S60 v5.0

Parameters

TEvtEventId aId = -1 id of event to be deleted

DeleteEventsL(const RArray< TEvtEventId > *)

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

Parameters

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

EventL(TEvtEventId)

IMPORT_C CEvtEvent * EventL ( TEvtEventId aId )

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 void HandleFiredTriggerStateL ( const TEvtEventId aEventId )
Handle Fired Trigger state. Trigger State should be completed if fired Event is not repetitive.
Since
S60 v5.0

Parameters

const TEvtEventId aEventId

HandleStorageDbChangedL()

void HandleStorageDbChangedL ( )

ModifyEventL(CEvtEvent &, TEvtEventAttributeMask)

IMPORT_C void ModifyEventL ( CEvtEvent & aEvtEvent,
TEvtEventAttributeMask aEventAttributeMask
)
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)

void NotifyLbtChangeL ( TLbtTriggerId & aTriggerId,
TInt aState
)

Parameters

TLbtTriggerId & aTriggerId
TInt aState

NotifyLbtError(TInt, TInt)

void NotifyLbtError ( TInt aErrorCode,
TInt aState
)

Parameters

TInt aErrorCode
TInt aState

NotifyTriggerChangeL(const TLbtTriggerId &, TLbtTriggerChangeType)

void NotifyTriggerChangeL ( const TLbtTriggerId & ,
TLbtTriggerChangeType aType
)

Parameters

const TLbtTriggerId &
TLbtTriggerChangeType aType

RemoveObserver(MEvtMgmtUiEngineObserver *)

IMPORT_C void RemoveObserver ( 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 void RetrieveLocationL ( TEvtEventId aEventId,
TCoordinate & aCoordinate
)

Parameters

TEvtEventId aEventId
TCoordinate & aCoordinate

SetEventStateL(TEvtEventStatus, TEvtEventId)

IMPORT_C void SetEventStateL ( TEvtEventStatus aEvtStatus,
TEvtEventId aId = -1
)
It will set state of the event.
Since
S60 v5.0

Parameters

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

SetEventsStateL(TEvtEventStatus, const RArray< TEvtEventId > *)

IMPORT_C void SetEventsStateL ( TEvtEventStatus aEvtStatus,
const RArray < TEvtEventId > * aEvtIdArray
)
It will set state of the events.
Since
S60 v5.0

Parameters

TEvtEventStatus aEvtStatus status of the event
const RArray < TEvtEventId > * aEvtIdArray idlist of events to be updated

SetObserver(MEvtMgmtUiEngineObserver *)

IMPORT_C void SetObserver ( 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 void SyncDbsL ( )
Synchronizes the LBT and EvtStorage Db.
Since
S60 v5.0

UpdateModelL(RPointerArray< CEvtBasicEventInfo > &, TEvtEventStatusFilter)

IMPORT_C void UpdateModelL ( RPointerArray < CEvtBasicEventInfo > & aEventsArray,
TEvtEventStatusFilter aEventStatusFilter
)

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]