CLbtTriggerFilterByAttribute Class Reference

class CLbtTriggerFilterByAttribute : public CLbtTriggerFilterBase

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.

lbt.lib
Since
S60 5.1

Inherits from

Public Member Functions
~CLbtTriggerFilterByAttribute ()
IMPORT_C void AddTriggerIdL ( TLbtTriggerId )
IMPORT_C void AddTriggerManagerUiL ( TUid )
IMPORT_C void AddTriggerStateL ( CLbtTriggerEntry::TLbtTriggerState )
IMPORT_C void AddTriggerTypeL ( CLbtTriggerEntry::TType )
IMPORT_C void AddTriggerValidityL ( TLbtTriggerDynamicInfo::TLbtTriggerValidity )
IMPORT_C void GetManagerUiArrayL ( RArray < TUid > &)
IMPORT_C void GetStateArrayL ( RArray < CLbtTriggerEntry::TLbtTriggerState > &)
IMPORT_C void GetTriggerIdArrayL ( RArray < TLbtTriggerId > &)
IMPORT_C void GetTypeArrayL ( RArray < CLbtTriggerEntry::TType > &)
IMPORT_C void GetValidityArrayL ( RArray < TLbtTriggerDynamicInfo::TLbtTriggerValidity > &)
IMPORT_C TBool IsTriggerIdInFilter ( TLbtTriggerId )
IMPORT_C TBool IsTriggerManagerUiInFilter ( TUid )
IMPORT_C TBool IsTriggerStateInFilter ( CLbtTriggerEntry::TLbtTriggerState )
IMPORT_C TBool IsTriggerTypeInFilter ( CLbtTriggerEntry::TType )
IMPORT_C TBool IsTriggerValidityStatusInFilter ( TLbtTriggerDynamicInfo::TLbtTriggerValidity )
IMPORT_C CLbtTriggerFilterByAttribute * NewL ()
IMPORT_C CLbtTriggerFilterByAttribute * NewLC ()
IMPORT_C void ResetFilter ()
IMPORT_C TFilterType Type ()
Protected Member Functions
void DoExternalizeL ( RWriteStream &)
void DoInternalizeL ( RReadStream &)
Private Member Functions
CLbtTriggerFilterByAttribute ()
CLbtTriggerFilterByAttribute (const CLbtTriggerFilterByAttribute &)
void ConstructL ()
CLbtTriggerFilterByAttribute & operator= (const CLbtTriggerFilterByAttribute &)
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()
Inherited Enumerations
CLbtTriggerFilterBase:TFilterType
Private Attributes
RArray < TLbtTriggerId > iIdArray
RArray < TUid > iManagerUiArray
TUint iReserved
RArray < CLbtTriggerEntry::TLbtTriggerState > iTriggerStateArray
RArray < CLbtTriggerEntry::TType > iTriggerTypeArray
RArray < TLbtTriggerDynamicInfo::TLbtTriggerValidity > iTriggerValidityArray

Constructor & Destructor Documentation

CLbtTriggerFilterByAttribute()

CLbtTriggerFilterByAttribute ( ) [private]

Default constructor.

CLbtTriggerFilterByAttribute(const CLbtTriggerFilterByAttribute &)

CLbtTriggerFilterByAttribute ( const CLbtTriggerFilterByAttribute & ) [private]

By default, prohibit copy constructor

~CLbtTriggerFilterByAttribute()

IMPORT_C ~CLbtTriggerFilterByAttribute ( ) [virtual]

Destructor.

Member Functions Documentation

AddTriggerIdL(TLbtTriggerId)

IMPORT_C void AddTriggerIdL ( TLbtTriggerId aId )

Adds a trigger Id to the filter.

Parameters

TLbtTriggerId aId The trigger Id to be used in the filter.

AddTriggerManagerUiL(TUid)

IMPORT_C void AddTriggerManagerUiL ( TUid aUid )

Adds a manager UI UID to the filter.

Parameters

TUid aUid The UID of the manager UI to be used in the filter.

AddTriggerStateL(CLbtTriggerEntry::TLbtTriggerState)

IMPORT_C void AddTriggerStateL ( CLbtTriggerEntry::TLbtTriggerState aState )

Adds a trigger state to the filter.

Parameters

CLbtTriggerEntry::TLbtTriggerState aState The trigger state used in the filter.

AddTriggerTypeL(CLbtTriggerEntry::TType)

IMPORT_C void AddTriggerTypeL ( CLbtTriggerEntry::TType aType )

Adds a trigger type to the filter.

Parameters

CLbtTriggerEntry::TType aType The type of the trigger to be retrieved.

AddTriggerValidityL(TLbtTriggerDynamicInfo::TLbtTriggerValidity)

IMPORT_C void AddTriggerValidityL ( TLbtTriggerDynamicInfo::TLbtTriggerValidity aValidity )

Adds a trigger validity status to the filter.

Parameters

TLbtTriggerDynamicInfo::TLbtTriggerValidity aValidity The validity status value used in the filter.

ConstructL()

void ConstructL ( ) [private]

Symbian 2nd phase constructor.

DoExternalizeL(RWriteStream &)

void DoExternalizeL ( RWriteStream & aStream ) const [protected, virtual]

Externalize method that subclass must implement.

Parameters

RWriteStream & aStream Stream to which the object should be externalized.

DoInternalizeL(RReadStream &)

void DoInternalizeL ( RReadStream & aStream ) [protected, virtual]

Internalize method that subclass must implement.

Parameters

RReadStream & aStream Stream from which the object should be internalized.

GetManagerUiArrayL(RArray< TUid > &)

IMPORT_C void GetManagerUiArrayL ( RArray < TUid > & aManagerUiArray ) const

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

Parameters

RArray < TUid > & aManagerUiArray On return, contains manager UI UIDs that have been used in this filter.

GetStateArrayL(RArray< CLbtTriggerEntry::TLbtTriggerState > &)

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

Gets trigger states that have been used in this filter

Parameters

RArray < CLbtTriggerEntry::TLbtTriggerState > & aTriggerStateArray On return contains trigger states that have been used in this filter.

GetTriggerIdArrayL(RArray< TLbtTriggerId > &)

IMPORT_C void GetTriggerIdArrayL ( RArray < TLbtTriggerId > & aIdArray ) const

Gets trigger IDs that have been used in this filter.

Parameters

RArray < TLbtTriggerId > & aIdArray On return contains trigger IDs that have been used in this filter.

GetTypeArrayL(RArray< CLbtTriggerEntry::TType > &)

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

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

Parameters

RArray < CLbtTriggerEntry::TType > & aTriggerTypeArray On return contains trigger types that have been used in this filter.

GetValidityArrayL(RArray< TLbtTriggerDynamicInfo::TLbtTriggerValidity > &)

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

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

Parameters

RArray < TLbtTriggerDynamicInfo::TLbtTriggerValidity > & aTriggerValidityArray On return, contains trigger validity status that have been used in this filter.

IsTriggerIdInFilter(TLbtTriggerId)

IMPORT_C TBool IsTriggerIdInFilter ( TLbtTriggerId aId ) const

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

Parameters

TLbtTriggerId aId the trigger Id to be tested.

IsTriggerManagerUiInFilter(TUid)

IMPORT_C TBool IsTriggerManagerUiInFilter ( TUid aUid ) const

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

Parameters

TUid aUid The UID of a manager UI to be tested.

IsTriggerStateInFilter(CLbtTriggerEntry::TLbtTriggerState)

IMPORT_C TBool IsTriggerStateInFilter ( CLbtTriggerEntry::TLbtTriggerState aState ) const

Tests if the specified trigger state is in the filter.

Parameters

CLbtTriggerEntry::TLbtTriggerState aState The trigger state to be tested.

IsTriggerTypeInFilter(CLbtTriggerEntry::TType)

IMPORT_C TBool IsTriggerTypeInFilter ( CLbtTriggerEntry::TType aType ) const

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

Parameters

CLbtTriggerEntry::TType aType The trigger type used in the filter.

IsTriggerValidityStatusInFilter(TLbtTriggerDynamicInfo::TLbtTriggerValidity)

IMPORT_C TBool IsTriggerValidityStatusInFilter ( TLbtTriggerDynamicInfo::TLbtTriggerValidity aValidity ) const

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

Parameters

TLbtTriggerDynamicInfo::TLbtTriggerValidity aValidity The validity status value to be tested.

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.

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.

ResetFilter()

IMPORT_C void ResetFilter ( )

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

Type()

IMPORT_C TFilterType Type ( ) const [virtual]

operator=(const CLbtTriggerFilterByAttribute &)

CLbtTriggerFilterByAttribute & operator= ( const CLbtTriggerFilterByAttribute & ) [private]

Prohibit assigment operator

Member Data Documentation

RArray< TLbtTriggerId > iIdArray

RArray < TLbtTriggerId > iIdArray [private]

Id array

RArray< TUid > iManagerUiArray

RArray < TUid > iManagerUiArray [private]

Manager UI array

TUint iReserved

TUint iReserved [private]

Reserved

RArray< CLbtTriggerEntry::TLbtTriggerState > iTriggerStateArray

RArray < CLbtTriggerEntry::TLbtTriggerState > iTriggerStateArray [private]

Trigger state

RArray< CLbtTriggerEntry::TType > iTriggerTypeArray

RArray < CLbtTriggerEntry::TType > iTriggerTypeArray [private]

The type of the trigger to be listed

RArray< TLbtTriggerDynamicInfo::TLbtTriggerValidity > iTriggerValidityArray

RArray < TLbtTriggerDynamicInfo::TLbtTriggerValidity > iTriggerValidityArray [private]

Trigger validity