CEvtDatabase Class Reference

class CEvtDatabase : public CBase
Interface class to Location Events Database. This class allows for Events to be stored in persistent database
  • Sqlite. Events can be added, deleted and modified from database.

evtstorage.lib
Since
S60 v9.1

Inherits from

Constructor & Destructor Documentation

CEvtDatabase()

CEvtDatabase()[private]

Default C++ Constructor.

~CEvtDatabase()

~CEvtDatabase()[virtual]

Destructor.

Member Functions Documentation

AddEventL(CEvtEvent &)

voidAddEventL(CEvtEvent &aEvtEvent)

Insert Event to database.

Parameters

CEvtEvent & aEvtEvent

CheckIfActionPresentL(TInt64)

TBool CheckIfActionPresentL(TInt64aId)[private]

check if Action is present.

Parameters

TInt64 aId

CheckIfEventPresentL(TEvtEventId)

TBool CheckIfEventPresentL(TEvtEventIdaId)[private]

check if Event is present.

Parameters

TEvtEventId aId

CloseDatabase()

voidCloseDatabase()[private]

Close Database Connection.

ConstructL()

voidConstructL()[private]

Second phase of the two phase constructor.

CreateActionL(CEvtAction &)

voidCreateActionL(CEvtAction &aEvtAction)[private]

Create Action.

Parameters

CEvtAction & aEvtAction

CreateIndexL()

voidCreateIndexL()[private]

Create All the Indexes.

CreateOpenDatabaseL()

voidCreateOpenDatabaseL()[private]

Create and Open Database Connection.

CreateSchemaL()

voidCreateSchemaL()[private]

Create the Schema for Events Storage.

CreateTablesL()

voidCreateTablesL()[private]

Create All the Tables.

CreateTriggerL()

voidCreateTriggerL()[private]

Create All the related Triggers.

DeleteActionL(TEvtEventId)

voidDeleteActionL(TEvtEventIdaEventId)[private]

Delete Action.

Parameters

TEvtEventId aEventId

DeleteEventL(TEvtEventId)

voidDeleteEventL(TEvtEventIdaEventId)[private]

Delete Event.

Parameters

TEvtEventId aEventId

GetActionId(TEvtEventId)

TInt64 GetActionId(TEvtEventIdaId)[private]

Get the action Id based on Event Id.

Parameters

TEvtEventId aId

GetEventL(TEvtEventId)

CEvtEvent *GetEventL(TEvtEventIdaEvtId)

Get Event based on unique Id.

Parameters

TEvtEventId aEvtId

GetEventsL(TEvtEventStatus, RPointerArray< CEvtBasicEventInfo > &)

voidGetEventsL(TEvtEventStatusaEvtStatus,
RPointerArray< CEvtBasicEventInfo > &aEvtEventArray
)

Get Events List based on status.

Parameters

TEvtEventStatus aEvtStatus
RPointerArray< CEvtBasicEventInfo > & aEvtEventArray

GetEventsL(RPointerArray< CEvtBasicEventInfo > &)

voidGetEventsL(RPointerArray< CEvtBasicEventInfo > &aEvtEventArray)

Get Events List based on status.

Parameters

RPointerArray< CEvtBasicEventInfo > & aEvtEventArray

GetEventsL(RSqlStatement &, RPointerArray< CEvtBasicEventInfo > &)

voidGetEventsL(RSqlStatement &aStmt,
RPointerArray< CEvtBasicEventInfo > &aEvtEventArray
)[private]

Get Events based on Query String.

Parameters

RSqlStatement & aStmt
RPointerArray< CEvtBasicEventInfo > & aEvtEventArray

HandleDbChangedL()

voidHandleDbChangedL()

Observer for TDbChangeType changes in Storage Database.

NewL()

CEvtDatabase *NewL()[static]

Constructs a new instance of CEvtDatabase.

leave
System wide error code if the object creation fails.

NewLC()

CEvtDatabase *NewLC()[static]

Constructs a new instance of Event Storage Manager interface. Leaves the created instance on the cleanup stack.

leave
System wide error code if the object creation fails.

OpenDatabaseL()

voidOpenDatabaseL()[private]

Open Database Connection.

RemoveEventL(TEvtEventId)

voidRemoveEventL(TEvtEventIdaEvtId)

Remove Event from database based on unique Id.

Parameters

TEvtEventId aEvtId

RemoveEventsL(const RArray< TEvtEventId > &)

voidRemoveEventsL(const RArray< TEvtEventId > &aEvtIdArray)

Remove Events from database.

Parameters

const RArray< TEvtEventId > & aEvtIdArray

SetObserver(MEvtStorageDbObserver *)

voidSetObserver(MEvtStorageDbObserver *aStorageDbObserver)

Set the Observer fo Storage Database.

Parameters

MEvtStorageDbObserver * aStorageDbObserver

UpdateActionL(CEvtAction &)

voidUpdateActionL(CEvtAction &aEvtAction)[private]

Update Action.

Parameters

CEvtAction & aEvtAction

UpdateEventL(CEvtEvent &)

voidUpdateEventL(CEvtEvent &aEvtEvent)

Update Event based on unique Id.

Parameters

CEvtEvent & aEvtEvent

UpdateEventStatusL(TEvtEventId, TEvtEventStatus)

voidUpdateEventStatusL(TEvtEventIdaEvtId,
TEvtEventStatusaEvtStatus
)

Update Event Status based on unique Id.

Parameters

TEvtEventId aEvtId
TEvtEventStatus aEvtStatus

UpdateEventTableL(CEvtEvent &)

voidUpdateEventTableL(CEvtEvent &aEvtEvent)[private]

Update Event Table.

Parameters

CEvtEvent & aEvtEvent

UpdateEventsStatusL(const RArray< TEvtEventId > &, TEvtEventStatus)

voidUpdateEventsStatusL(const RArray< TEvtEventId > &aEventArray,
TEvtEventStatusaEvtStatus
)

Update Event Status.

Parameters

const RArray< TEvtEventId > & aEventArray
TEvtEventStatus aEvtStatus

Member Data Documentation

RSqlDatabase iDb

RSqlDatabase iDb[private]

RSqlDatabase Instance

CEvtDbNotifier * iDbNotifier

CEvtDbNotifier *iDbNotifier[private]

CEvtDbNotifier Instance

MEvtStorageDbObserver * iStorageDbObserver

MEvtStorageDbObserver *iStorageDbObserver[private]

CEvtDbNotifier Instance