#include <mw/lbttriggerfiltercomposite.h>
class CLbtTriggerFilterComposite : public CLbtTriggerFilterBase |
Public Member Enumerations | |
---|---|
enum | TCompositeType { ECompositionTypeAnd } |
Public Member Functions | |
---|---|
virtual | ~CLbtTriggerFilterComposite() |
IMPORT_C void | AddFilterL(CLbtTriggerFilterBase *) |
IMPORT_C CLbtTriggerFilterBase * | GetFilter(TInt) |
IMPORT_C CLbtTriggerFilterComposite * | NewL(TCompositeType) |
IMPORT_C CLbtTriggerFilterComposite * | NewLC(TCompositeType) |
IMPORT_C TInt | NumberOfFilters() |
IMPORT_C void | RemoveFilter(TInt) |
IMPORT_C void | Reset() |
virtual IMPORT_C TFilterType | Type() |
Protected Member Functions | |
---|---|
virtual void | DoExternalizeL(RWriteStream &) |
virtual void | DoInternalizeL(RReadStream &) |
Inherited Enumerations | |
---|---|
CLbtTriggerFilterBase:TFilterType |
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.
IMPORT_C void | AddFilterL | ( | CLbtTriggerFilterBase * | aFilter | ) |
Adds a filter.
Parameter | Description |
---|---|
aFilter | Pointer to the filter to be added. If the pointer is NULL, this function does nothing. Ownership of aFilter is transferred to this object. |
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 CLbtTriggerFilterBase * | GetFilter | ( | TInt | aIndex | ) |
Gets pointer to the filter at the specific position.
Parameter | Description |
---|---|
aIndex | The position of the filter. The value shall be in the range of 0 to NumberOfFilters()- 1. |
Returns: The pointer to the filter. Ownership of the returned object is not transferred to the client.
IMPORT_C CLbtTriggerFilterComposite * | NewL | ( | TCompositeType | aType = ECompositionTypeAnd | ) | [static] |
Consructs a new instance of CLbtTriggerFilterComposite.
Returns: New instance of CLbtTriggerFilterComposite.
IMPORT_C CLbtTriggerFilterComposite * | NewLC | ( | TCompositeType | aType = ECompositionTypeAnd | ) | [static] |
Consructs a new instance of CLbtTriggerFilterComposite and pushes it onto cleanup stack.
Returns: New instance of CLbtTriggerFilterComposite.
IMPORT_C TInt | NumberOfFilters | ( | ) | const |
Gets the number of filters contained in this object.
Returns: The number of filters contained in this object.
IMPORT_C void | RemoveFilter | ( | TInt | aIndex | ) |
Remove the specific trigger filter from this object
Parameter | Description |
---|---|
aIndex | The position of the filter to be removed. |
IMPORT_C TFilterType | Type | ( | ) | const [virtual] |
Reimplemented from CLbtTriggerFilterBase::Type()const
Returns: CLbtTriggerFilterBase::EFilterComposite.