Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: agmfilts.h
Link against: agnmodel.lib

Class TAgnsrvTidyFilter

TAgnsrvTidyFilter

Support

Supported from 5.0

Description

An agenda model filter which additionally allows all entries except crossed-out to be filtered out. This class is used when tidying an agenda file.

Derivation

TAgnFilterIdentifies which model entry types should be involved when tidying, finding or populating an instance or symbol list
TAgnsrvTidyFilterAn agenda model filter which additionally allows all entries except crossed-out to be filtered out

Defined in TAgnsrvTidyFilter:
ExternalizeL(), IncludeCrossedOutOnly(), InternalizeL(), IsValid(), SetIncludeCrossedOutOnly(), TAgnsrvTidyFilter(), Type()

Inherited from TAgnFilter:
AreAlarmedOnlyIncluded(), AreAnnivsIncluded(), AreCrossedOutIncluded(), AreCrossedOutOnlyIncluded(), AreEventsIncluded(), AreNonRptsIncluded(), AreRptsIncluded(), AreTimedApptsIncluded(), AreTodosIncluded(), AreUnTimedApptsIncluded(), EAgnFilter, EDayFilter, EFindFilter, ESymbolFilter, ETidyFilter, RptNextInstanceOnly(), SetIncludeAlarmedOnly(), SetIncludeAnnivs(), SetIncludeCrossedOut(), SetIncludeEvents(), SetIncludeNonRpts(), SetIncludeRpts(), SetIncludeRptsNextInstanceOnly(), SetIncludeTimedAppts(), SetIncludeTodos(), SetIncludeUnTimedAppts(), TType


Construction


TAgnsrvTidyFilter()

TAgnsrvTidyFilter();

Description

Constructs a tidy filter object. The ‘include crossed out only’ flag is initialised to False.

[Top]


Set filter details


SetIncludeCrossedOutOnly()

void SetIncludeCrossedOutOnly(TBool aIncludeCrossedOutOnly);

Description

Sets the ‘include crossed out only’ flag. When this flag is set True, the filter is also set to include crossed out entries (see TAgnFilter::SetIncludeCrossedOut()).

Parameters

TBool aIncludeCrossedOutOnly

True to set the flag, False to clear the flag.

[Top]


Get filter details


IncludeCrossedOutOnly()

TBool IncludeCrossedOutOnly() const;

Description

Tests whether the ‘include crossed out only’ flag is set.

Return value

TBool

True if the flag is set, otherwise False.


Type()

TAgnFilter::TType Type();

Description

Gets the filter type.

Return value

TAgnFilter::TType

ETidyFilter.

[Top]


Validation


IsValid()

virtual TBool IsValid(const CAgnSortEntry* aElement) const;

Description

Tests whether the entry is valid with respect to the filter by calling TAgnFilter::IsValid(). In addition, if the filter is set to include crossed out entries only, non-crossed out entries are filtered out.

Parameters

const CAgnSortEntry* aElement

Pointer to the entry.

Return value

TBool

True if valid, False if not.

[Top]


Stream persistence


ExternalizeL()

void ExternalizeL(RWriteStream& aStream) const;

Description

Externalises the tidy filter object to a write stream.

Parameters

RWriteStream& aStream

Stream to which the object should be externalised.


InternalizeL()

void InternalizeL(RReadStream& aStream);

Description

Internalises the tidy filter object from a read stream.

Parameters

RReadStream& aStream

Stream from which the object should be internalised.