MLbtTriggerStore Class Reference
This M class defines the interface for the trigger stores.
The Trigger Store Managers must implement this interface to provide the store functionality.
Nested Classes and Structures
Public Member Functions |
---|
| ~MLbtTriggerStore() |
TInt
| CancelCurrentOperation() |
void | CreateTriggerL(CLbtContainerTriggerEntry &, TRequestStatus &) |
void | DeleteTriggerL(TLbtTriggerId) |
void | DeleteTriggersL(CLbtContainerUpdateFilter *, TLbtSecurityPolicy &, TRequestStatus &) |
TInt
| GetCountOfEnabledAndValidTriggers() |
void | GetTriggersL(RArray< TLbtTriggerId > &, RPointerArray< CLbtContainerTriggerEntry > &, TLbtSecurityPolicy &, TRequestStatus &) |
TBool
| IsStoreBusy() |
void | ListTriggersL(CLbtContainerListOptions *, RPointerArray< CLbtContainerTriggerEntry > &, TLbtSecurityPolicy &, TRequestStatus &) |
void | SetStoreChangeObserver(MLbtTriggerStoreObserver *) |
void | SetTimeTillCompaction(TTime) |
TTriggerTypeMask
| SupportedTriggerTypes() |
void | TriggersModified(RArray< TLbtTriggerModifiedInfo > &) |
void | UpdateTriggerFiredStateL(RArray< TLbtTriggerId > &, TBool, TRequestStatus &) |
void | UpdateTriggerL(CLbtContainerTriggerEntry &, TLbtTriggerDataMask, TLbtTriggerAttributeFieldsMask, TLbtSecurityPolicy &, TRequestStatus &) |
void | UpdateTriggersStateL(CLbtTriggerEntry::TLbtTriggerState, CLbtContainerUpdateFilter *, TLbtFireOnUpdate, TLbtSecurityPolicy &, TRequestStatus &) |
void | UpdateTriggersValidityL(TLbtTriggerDynamicInfo::TLbtTriggerValidity, RArray< TLbtTriggerId > &, TLbtSecurityPolicy &, TRequestStatus &) |
Constructor & Destructor Documentation
~MLbtTriggerStore()
~MLbtTriggerStore | ( | ) | [inline, virtual] |
Member Functions Documentation
CancelCurrentOperation()
TInt
| CancelCurrentOperation | ( | ) | [pure virtual] |
The implementation of this method should cancel any ongoing async operation
CreateTriggerL(CLbtContainerTriggerEntry &, TRequestStatus &)
Creates a trigger in the trigger store in a asynchronous fashion. Once the creation is complete the client is signalled by completing its active object. The request staus of the active object will hold the error code which informs the client of the status of the creation.
DeleteTriggerL(TLbtTriggerId)
Deletes a single trigger which matches the trigger id supplied
Parameters
TLbtTriggerId aTriggerId | the id of the trigger which needs to be deleted |
DeleteTriggersL(CLbtContainerUpdateFilter *, TLbtSecurityPolicy &, TRequestStatus &)
Deletes multiple triggers based container update filter. All the trigger in the store that satisfy the supplied filter are deleted from the store.
GetCountOfEnabledAndValidTriggers()
TInt
| GetCountOfEnabledAndValidTriggers | ( | ) | [pure virtual] |
Returns the count of all the enabled and valid triggers in the store.
GetTriggersL(RArray< TLbtTriggerId > &, RPointerArray< CLbtContainerTriggerEntry > &, TLbtSecurityPolicy &, TRequestStatus &)
Used to retreive a specified list of triggers from the store. This triggers are specifed using an array of trigger ids.
IsStoreBusy()
TBool
| IsStoreBusy | ( | ) | [pure virtual] |
Method to check if the trigger store is busy. The store could be busy due to many reasons with the mail reason being compaction.
ListTriggersL(CLbtContainerListOptions *, RPointerArray< CLbtContainerTriggerEntry > &, TLbtSecurityPolicy &, TRequestStatus &)
Used to list trigger based on list options. The list options contains a filter based on which the trigger will be listed. The listing is done asynchronously
SetStoreChangeObserver(MLbtTriggerStoreObserver *)
Used to set the trigger store observer. The set observer will be notifed if any updation operation is preformed on the trigger store. The modification include creation, updation or deletion of any trigger
SetTimeTillCompaction(TTime)
void | SetTimeTillCompaction | ( | TTime | aTime | ) | [pure virtual] |
Used to set the time till when compaction is preferred. Over the time specified compaction should not happed in ideal cases. As and when compaction happens this time is check to see that compaction does not over shoot this time interval
Parameters
TTime aTime | the time untill which compaction can proceed without effecting the system |
SupportedTriggerTypes()
This method returns the types of triggers that are supported in this trigger store.
TriggersModified(RArray< TLbtTriggerModifiedInfo > &)
Function should append the information of the trigger that has been modfied by the latest operation
UpdateTriggerFiredStateL(RArray< TLbtTriggerId > &, TBool, TRequestStatus &)
Updates the fired state of multiple triggers specified by the trigger ids
Parameters
RArray< TLbtTriggerId > & aTriggerIds | the array of trigger ids of which the validity have to be changed |
TBool aFireBool | the state to which the fired attributes has to be changed to |
TRequestStatus & aStatus | the clients active status |
UpdateTriggerL(CLbtContainerTriggerEntry &, TLbtTriggerDataMask, TLbtTriggerAttributeFieldsMask, TLbtSecurityPolicy &, TRequestStatus &)
Updates the contents of a trigger in the trigger store based on masks. The trigger is searched in the trigger store based on the trigger id supplied in the trigger entry object. The masks define the trigger data members that need to be updated. This request is processed asychronously.
Parameters
CLbtContainerTriggerEntry & aEntry | reference to the trigger entry object that contains the trigger data which has to be created. |
TLbtTriggerDataMask aDataMask | the data mask based on which the contents in the triggers dynamic info is updated. The masks are defined by enumeration TLbtTriggerDynamicInfo::TLbtDynamicInfoAttribute |
TLbtTriggerAttributeFieldsMask aAttrMask | the attribute mask based on which the atrributes of the trigger are updated. The masks are defined by enumeration CLbtTriggerEntry::TAttribute |
TLbtSecurityPolicy & aSecurityPolicy | |
TRequestStatus & aStatus | the clients active status |
UpdateTriggersStateL(CLbtTriggerEntry::TLbtTriggerState, CLbtContainerUpdateFilter *, TLbtFireOnUpdate, TLbtSecurityPolicy &, TRequestStatus &)
Updates the state of multiple triggers based on container filter. This request is processed asychronously.
UpdateTriggersValidityL(TLbtTriggerDynamicInfo::TLbtTriggerValidity, RArray< TLbtTriggerId > &, TLbtSecurityPolicy &, TRequestStatus &)
Updates the validity of multiple triggers specified by trigger ids.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.