CLbtTriggerFilterComposite Class Reference

class CLbtTriggerFilterComposite : public CLbtTriggerFilterBase

Class representing a composite filter. This class is used to combine multiple filters.

All filters combined in this class will be applied when listing triggers. Currently only ECompositionTypeAnd is supported to be the composition type. In this case, only those triggers that fulfill the criteria specified by all the filters will be retrieved.

lbt.lib
Since
S60 5.1

Inherits from

Constructor & Destructor Documentation

CLbtTriggerFilterComposite()

CLbtTriggerFilterComposite()[private]

Constructor.

CLbtTriggerFilterComposite(const CLbtTriggerFilterComposite &)

CLbtTriggerFilterComposite(const CLbtTriggerFilterComposite &)[private]

By default, prohibit copy constructor

Parameters

const CLbtTriggerFilterComposite &

~CLbtTriggerFilterComposite()

IMPORT_C~CLbtTriggerFilterComposite()[virtual]

Destructor.

Member Functions Documentation

AddFilterL(CLbtTriggerFilterBase *)

IMPORT_C voidAddFilterL(CLbtTriggerFilterBase *aFilter)

Adds a filter.

Parameters

CLbtTriggerFilterBase * aFilterPointer to the filter to be added. If the pointer is NULL, this function does nothing. Ownership of aFilter is transferred to this object.

ConstructL()

voidConstructL()[private]

Symbian 2nd phase constructor

DoExternalizeL(RWriteStream &)

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

Externalize method that subclass must implement.

Parameters

RWriteStream & aStreamStream to which the object should be externalized.

DoInternalizeL(RReadStream &)

voidDoInternalizeL(RReadStream &aStream)[protected, virtual]

Internalize method that subclass must implement.

Parameters

RReadStream & aStreamStream from which the object should be internalized.

GetFilter(TInt)

IMPORT_C CLbtTriggerFilterBase *GetFilter(TIntaIndex)

Gets pointer to the filter at the specific position.

panic
USER 130 if aIndex is negative, or greater than the total number of filters contained in this object.

Parameters

TInt aIndexThe position of the filter. The value shall be in the range of 0 to NumberOfFilters()- 1.

NewL(TCompositeType)

IMPORT_C CLbtTriggerFilterComposite *NewL(TCompositeTypeaType = ECompositionTypeAnd)[static]

Consructs a new instance of CLbtTriggerFilterComposite.

Parameters

TCompositeType aType = ECompositionTypeAnd

NewLC(TCompositeType)

IMPORT_C CLbtTriggerFilterComposite *NewLC(TCompositeTypeaType = ECompositionTypeAnd)[static]

Consructs a new instance of CLbtTriggerFilterComposite and pushes it onto cleanup stack.

Parameters

TCompositeType aType = ECompositionTypeAnd

NumberOfFilters()

IMPORT_C TIntNumberOfFilters()const

Gets the number of filters contained in this object.

RemoveFilter(TInt)

IMPORT_C voidRemoveFilter(TIntaIndex)

Remove the specific trigger filter from this object

panic
USER 130 if aIndex is negative, or greater than the total number of filters contained in this object.

Parameters

TInt aIndexThe position of the filter to be removed.

Reset()

IMPORT_C voidReset()

Remove all trigger filters contained in this object.

Type()

IMPORT_C TFilterTypeType()const [virtual]

operator=(const CLbtTriggerFilterComposite &)

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

Prohibit assigment operator

Parameters

const CLbtTriggerFilterComposite &

Member Enumerations Documentation

Enum TCompositeType

Enumerators

ECompositionTypeAnd

Criteria in all composited filters must be fulfiled.

Member Data Documentation

RPointerArray< CLbtTriggerFilterBase > iFilters

RPointerArray< CLbtTriggerFilterBase >iFilters[private]

Trigger filters