CLbtTriggerFilterByAttribute Class Reference

#include <mw/lbttriggerfilterbyattribute.h>

Link against: lbt.lib

class CLbtTriggerFilterByAttribute : public CLbtTriggerFilterBase

Inherits from

Public Member Functions
virtual ~CLbtTriggerFilterByAttribute()
IMPORT_C voidAddTriggerIdL(TLbtTriggerId)
IMPORT_C voidAddTriggerManagerUiL(TUid)
IMPORT_C voidAddTriggerStateL(CLbtTriggerEntry::TLbtTriggerState)
IMPORT_C voidAddTriggerTypeL(CLbtTriggerEntry::TType)
IMPORT_C voidAddTriggerValidityL(TLbtTriggerDynamicInfo::TLbtTriggerValidity)
IMPORT_C voidGetManagerUiArrayL(RArray< TUid > &)
IMPORT_C voidGetStateArrayL(RArray< CLbtTriggerEntry::TLbtTriggerState > &)
IMPORT_C voidGetTriggerIdArrayL(RArray< TLbtTriggerId > &)
IMPORT_C voidGetTypeArrayL(RArray< CLbtTriggerEntry::TType > &)
IMPORT_C voidGetValidityArrayL(RArray< TLbtTriggerDynamicInfo::TLbtTriggerValidity > &)
IMPORT_C TBoolIsTriggerIdInFilter(TLbtTriggerId)
IMPORT_C TBoolIsTriggerManagerUiInFilter(TUid)
IMPORT_C TBoolIsTriggerStateInFilter(CLbtTriggerEntry::TLbtTriggerState)
IMPORT_C TBoolIsTriggerTypeInFilter(CLbtTriggerEntry::TType)
IMPORT_C TBoolIsTriggerValidityStatusInFilter(TLbtTriggerDynamicInfo::TLbtTriggerValidity)
IMPORT_C CLbtTriggerFilterByAttribute *NewL()
IMPORT_C CLbtTriggerFilterByAttribute *NewLC()
IMPORT_C voidResetFilter()
virtual IMPORT_C TFilterTypeType()
Protected Member Functions
virtual voidDoExternalizeL(RWriteStream &)
virtual voidDoInternalizeL(RReadStream &)
Inherited Enumerations
CLbtTriggerFilterBase:TFilterType
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()
CLbtTriggerFilterBase::CLbtTriggerFilterBase()
CLbtTriggerFilterBase::ExternalizeL(RWriteStream &)const
CLbtTriggerFilterBase::InternalizeL(RReadStream &)
CLbtTriggerFilterBase::~CLbtTriggerFilterBase()

Detailed Description

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.

Since
S60 5.1

Constructor & Destructor Documentation

~CLbtTriggerFilterByAttribute ( )

IMPORT_C~CLbtTriggerFilterByAttribute()[virtual]

Destructor.

Member Function Documentation

AddTriggerIdL ( TLbtTriggerId )

IMPORT_C voidAddTriggerIdL(TLbtTriggerIdaId)

Adds a trigger Id to the filter.

ParameterDescription
aIdThe trigger Id to be used in the filter.

AddTriggerManagerUiL ( TUid )

IMPORT_C voidAddTriggerManagerUiL(TUidaUid)

Adds a manager UI UID to the filter.

ParameterDescription
aUidThe UID of the manager UI to be used in the filter.

AddTriggerStateL ( CLbtTriggerEntry::TLbtTriggerState )

IMPORT_C voidAddTriggerStateL(CLbtTriggerEntry::TLbtTriggerStateaState)

Adds a trigger state to the filter.

ParameterDescription
aStateThe trigger state used in the filter.

AddTriggerTypeL ( CLbtTriggerEntry::TType )

IMPORT_C voidAddTriggerTypeL(CLbtTriggerEntry::TTypeaType)

Adds a trigger type to the filter.

ParameterDescription
aTypeThe type of the trigger to be retrieved.

AddTriggerValidityL ( TLbtTriggerDynamicInfo::TLbtTriggerValidity )

IMPORT_C voidAddTriggerValidityL(TLbtTriggerDynamicInfo::TLbtTriggerValidityaValidity)

Adds a trigger validity status to the filter.

ParameterDescription
aValidityThe validity status value used in the filter.

DoExternalizeL ( RWriteStream & )

voidDoExternalizeL(RWriteStream &aStream)const [protected, virtual]

Reimplemented from CLbtTriggerFilterBase::DoExternalizeL(RWriteStream &)const

Externalize method that subclass must implement.

ParameterDescription
aStreamStream to which the object should be externalized.

DoInternalizeL ( RReadStream & )

voidDoInternalizeL(RReadStream &aStream)[protected, virtual]

Reimplemented from CLbtTriggerFilterBase::DoInternalizeL(RReadStream &)

Internalize method that subclass must implement.

ParameterDescription
aStreamStream from which the object should be internalized.

GetManagerUiArrayL ( RArray< TUid > & )

IMPORT_C voidGetManagerUiArrayL(RArray< TUid > &aManagerUiArray)const

Gets manager UI UIDs that have been used in this filter.

ParameterDescription
aManagerUiArrayOn return, contains manager UI UIDs that have been used in this filter.

GetStateArrayL ( RArray< CLbtTriggerEntry::TLbtTriggerState > & )

IMPORT_C voidGetStateArrayL(RArray< CLbtTriggerEntry::TLbtTriggerState > &aTriggerStateArray)const

Gets trigger states that have been used in this filter

ParameterDescription
aTriggerStateArrayOn return contains trigger states that have been used in this filter.

GetTriggerIdArrayL ( RArray< TLbtTriggerId > & )

IMPORT_C voidGetTriggerIdArrayL(RArray< TLbtTriggerId > &aIdArray)const

Gets trigger IDs that have been used in this filter.

ParameterDescription
aIdArrayOn return contains trigger IDs that have been used in this filter.

GetTypeArrayL ( RArray< CLbtTriggerEntry::TType > & )

IMPORT_C voidGetTypeArrayL(RArray< CLbtTriggerEntry::TType > &aTriggerTypeArray)const

Gets trigger entry types that have been used in this filter.

ParameterDescription
aTriggerTypeArrayOn return contains trigger types that have been used in this filter.

GetValidityArrayL ( RArray< TLbtTriggerDynamicInfo::TLbtTriggerValidity > & )

IMPORT_C voidGetValidityArrayL(RArray< TLbtTriggerDynamicInfo::TLbtTriggerValidity > &aTriggerValidityArray)const

Gets trigger validity status that has been used in this filter.

ParameterDescription
aTriggerValidityArrayOn return, contains trigger validity status that have been used in this filter.

IsTriggerIdInFilter ( TLbtTriggerId )

IMPORT_C TBoolIsTriggerIdInFilter(TLbtTriggerIdaId)const

Tests if the specified trigger Id is used in the filter.

ParameterDescription
aIdthe trigger Id to be tested.

Returns: ETrue if the specified trigger Id is used in the filter. Otherwise, EFalse is returned.

IsTriggerManagerUiInFilter ( TUid )

IMPORT_C TBoolIsTriggerManagerUiInFilter(TUidaUid)const

Tests if the specified UID of a manager UI is used in the filter.

ParameterDescription
aUidThe UID of a manager UI to be tested.

Returns: ETrue if the specified UID is used in the filter. Otherwise, EFalse is returned.

IsTriggerStateInFilter ( CLbtTriggerEntry::TLbtTriggerState )

IMPORT_C TBoolIsTriggerStateInFilter(CLbtTriggerEntry::TLbtTriggerStateaState)const

Tests if the specified trigger state is in the filter.

ParameterDescription
aStateThe trigger state to be tested.

Returns: ETrue if the the trigger state is used in filter. Otherwise, EFalse is returned.

IsTriggerTypeInFilter ( CLbtTriggerEntry::TType )

IMPORT_C TBoolIsTriggerTypeInFilter(CLbtTriggerEntry::TTypeaType)const

Tests if the specified trigger type is used in the filter.

ParameterDescription
aTypeThe trigger type used in the filter.

Returns: ETrue if the the trigger type is used in filter. Otherwise, EFalse is returned.

IsTriggerValidityStatusInFilter ( TLbtTriggerDynamicInfo::TLbtTriggerValidity )

IMPORT_C TBoolIsTriggerValidityStatusInFilter(TLbtTriggerDynamicInfo::TLbtTriggerValidityaValidity)const

Tests if the trigger validity status value is in the filter.

ParameterDescription
aValidityThe validity status value to be tested.

Returns: ETrue if the the trigger validity status is used in filter. Otherwise, EFalse is returned.

NewL ( )

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.

NewLC ( )

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.

ResetFilter ( )

IMPORT_C voidResetFilter()

Resets the filter. The trigger type, trigger state, trigger validity, manager UI and trigger Id are not used in filtering.

Type ( )

IMPORT_C TFilterTypeType()const [virtual]

Reimplemented from CLbtTriggerFilterBase::Type()const

Returns: CLbtTriggerFilterBase::EFilterByAttribute