#include <mw/lbttriggerfilterbyattribute.h>
class CLbtTriggerFilterByAttribute : public CLbtTriggerFilterBase |
Protected Member Functions | |
---|---|
virtual void | DoExternalizeL(RWriteStream &) |
virtual void | DoInternalizeL(RReadStream &) |
Inherited Enumerations | |
---|---|
CLbtTriggerFilterBase:TFilterType |
Class representing filter based on the attribute values of a trigger.
Following attributes of triggers can be used in the filter when listing triggers from Location Triggering Server.
Trigger Type. It specifies what type of triggers shall be retrieved. By default, the trigger type is not used in filtering. If one or more trigger types are added to the filter, only triggers matching the specified type will be retrieved.
Trigger State. It specifies the state of the interested trigger entries. By default, trigger state is not used in filtering. If one or more states are added in the filter, only trigger entries with the specified states will be retrieved.
Trigger Validity. It specifies the validity status that the retrieved triggers must have. By default, trigger validity status is not used in filtering. If one or more trigger validity status is added to the filter, only trigger entries with the specified validity status will be retrieved.
Manager UI. It specifies the manager UI of the interested trigger entries. But default, manager UI attribute is not used in filtering. If one or more manager UI UIDs are added in the filter, only trigger entries that their manager UI UIDs are defined in the filter will be retrieved. KNullUid can also be used to fetch those triggers that have no manager UI set.
Id. It specified the Id of the interested trigger entries. By default, trigger ID attribute is not used in filtering. If one or more Ids are added in the filter, only trigger entries that their IDs are defined in the filter will be retrieved.
IMPORT_C void | AddTriggerIdL | ( | TLbtTriggerId | aId | ) |
Adds a trigger Id to the filter.
Parameter | Description |
---|---|
aId | The trigger Id to be used in the filter. |
IMPORT_C void | AddTriggerManagerUiL | ( | TUid | aUid | ) |
Adds a manager UI UID to the filter.
Parameter | Description |
---|---|
aUid | The UID of the manager UI to be used in the filter. |
IMPORT_C void | AddTriggerStateL | ( | CLbtTriggerEntry::TLbtTriggerState | aState | ) |
Adds a trigger state to the filter.
Parameter | Description |
---|---|
aState | The trigger state used in the filter. |
IMPORT_C void | AddTriggerTypeL | ( | CLbtTriggerEntry::TType | aType | ) |
Adds a trigger type to the filter.
Parameter | Description |
---|---|
aType | The type of the trigger to be retrieved. |
IMPORT_C void | AddTriggerValidityL | ( | TLbtTriggerDynamicInfo::TLbtTriggerValidity | aValidity | ) |
Adds a trigger validity status to the filter.
Parameter | Description |
---|---|
aValidity | The validity status value used in the filter. |
void | DoExternalizeL | ( | RWriteStream & | aStream | ) | const [protected, virtual] |
Reimplemented from CLbtTriggerFilterBase::DoExternalizeL(RWriteStream &)const
Externalize method that subclass must implement.
Parameter | Description |
---|---|
aStream | Stream to which the object should be externalized. |
void | DoInternalizeL | ( | RReadStream & | aStream | ) | [protected, virtual] |
Reimplemented from CLbtTriggerFilterBase::DoInternalizeL(RReadStream &)
Internalize method that subclass must implement.
Parameter | Description |
---|---|
aStream | Stream from which the object should be internalized. |
IMPORT_C void | GetStateArrayL | ( | RArray< CLbtTriggerEntry::TLbtTriggerState > & | aTriggerStateArray | ) | const |
Gets trigger states that have been used in this filter
Parameter | Description |
---|---|
aTriggerStateArray | On return contains trigger states that have been used in this filter. |
IMPORT_C void | GetTriggerIdArrayL | ( | RArray< TLbtTriggerId > & | aIdArray | ) | const |
Gets trigger IDs that have been used in this filter.
Parameter | Description |
---|---|
aIdArray | On return contains trigger IDs that have been used in this filter. |
IMPORT_C void | GetTypeArrayL | ( | RArray< CLbtTriggerEntry::TType > & | aTriggerTypeArray | ) | const |
Gets trigger entry types that have been used in this filter.
Parameter | Description |
---|---|
aTriggerTypeArray | On return contains trigger types that have been used in this filter. |
IMPORT_C void | GetValidityArrayL | ( | RArray< TLbtTriggerDynamicInfo::TLbtTriggerValidity > & | aTriggerValidityArray | ) | const |
Gets trigger validity status that has been used in this filter.
Parameter | Description |
---|---|
aTriggerValidityArray | On return, contains trigger validity status that have been used in this filter. |
IMPORT_C TBool | IsTriggerIdInFilter | ( | TLbtTriggerId | aId | ) | const |
Tests if the specified trigger Id is used in the filter.
Parameter | Description |
---|---|
aId | the trigger Id to be tested. |
Returns: ETrue if the specified trigger Id is used in the filter. Otherwise, EFalse is returned.
IMPORT_C TBool | IsTriggerStateInFilter | ( | CLbtTriggerEntry::TLbtTriggerState | aState | ) | const |
Tests if the specified trigger state is in the filter.
Parameter | Description |
---|---|
aState | The trigger state to be tested. |
Returns: ETrue if the the trigger state is used in filter. Otherwise, EFalse is returned.
IMPORT_C TBool | IsTriggerTypeInFilter | ( | CLbtTriggerEntry::TType | aType | ) | const |
Tests if the specified trigger type is used in the filter.
Parameter | Description |
---|---|
aType | The trigger type used in the filter. |
Returns: ETrue if the the trigger type is used in filter. Otherwise, EFalse is returned.
IMPORT_C TBool | IsTriggerValidityStatusInFilter | ( | TLbtTriggerDynamicInfo::TLbtTriggerValidity | aValidity | ) | const |
Tests if the trigger validity status value is in the filter.
Parameter | Description |
---|---|
aValidity | The validity status value to be tested. |
Returns: ETrue if the the trigger validity status is used in filter. Otherwise, EFalse is returned.
IMPORT_C CLbtTriggerFilterByAttribute * | NewL | ( | ) | [static] |
Constructs a new instance of CLbtTriggerFilterByAttribute. In the returned object, trigger type, trigger state trigger validity status, manager UI and trigger Id are not used in filtering.
Returns: New instance of CLbtTriggerFilterByAttribute.
IMPORT_C CLbtTriggerFilterByAttribute * | NewLC | ( | ) | [static] |
Constructs a new instance of CLbtTriggerFilterByAttribute and pushes it onto cleanup stack. In the returned object, trigger type, trigger state trigger validity status, manager UI and trigger Id are not used in filtering.
Returns: New instance of CLbtTriggerFilterByAttribute.
IMPORT_C void | ResetFilter | ( | ) |
Resets the filter. The trigger type, trigger state, trigger validity, manager UI and trigger Id are not used in filtering.
IMPORT_C TFilterType | Type | ( | ) | const [virtual] |
Reimplemented from CLbtTriggerFilterBase::Type()const
Returns: CLbtTriggerFilterBase::EFilterByAttribute