CMsvEntryFilter Class Reference

#include <mw/msvstd.h>

Link against: msgs_autoshutdown.lib

class CMsvEntryFilter : public CBase, public CBase, public CBase

Inherits from

Detailed Description

Used to query the Message Server for entries that match the specification defined in the filter.

It allows a query to be performed on service, MTM, type and last change date. The filter also enables the specification of the order in which the entries are returned.

See also: CMsvSession::GetChildIdsL()

Member Function Documentation

LastChangeDate ( )

const TTime &LastChangeDate()const [inline]

Gets the last change date set for the filter.

Return Value
Last change date set for the filter

Mtm ( )

TUid Mtm()const [inline]

Gets the MTM UID set for the filter.

Return Value
MTM UID set for the filter

NewL ( )

IMPORT_C CMsvEntryFilter *NewL()[static]

Allocates and constructs a new entry filter.

Default values are as follows:

1. service: KMsvNullIndexEntryId

2. MTM: KNullUid

3. entry type: KNullUid

4. last change date: no date

5. sort order defaults to EMsvSortByNone

These values mean that entries with any values for service, MTM, type and last change date will be returned, with no grouping or sort MTM.

Return Value
Pointer to the newly created entry filter.

NewLC ( )

IMPORT_C CMsvEntryFilter *NewLC()[static]

Allocates and constructs a new entry filter, and leaves the pointer on the cleanup stack.

For default values, see the NewL() function.

Return Value
Pointer to the newly created entry filter.

Order ( )

const TMsvSelectionOrdering &Order()const [inline]

Gets the selection ordering set for the filter.

Return Value
Selection ordering set for the filter

Service ( )

TMsvId Service()const [inline]

Gets the service ID set for the filter.

Return Value
Service ID set for the filter

SetLastChangeDate ( const TTime & )

voidSetLastChangeDate(const TTime &aLastChange)[inline]

Sets the last date change for the filter.

This is used to retrieve entries that have changed since a particular date.

Parameters
aLastChangeLast date change for the filter, specified in Universal Time (GMT)

SetMtm ( TUid )

voidSetMtm(TUidaMtm)[inline]

Sets the MTM UID for the filter.

Parameters
aMtmMTM UID for the filter

SetOrder ( const TMsvSelectionOrdering & )

voidSetOrder(const TMsvSelectionOrdering &aOrder)[inline]

Sets the sort ordering for the filter.

Parameters
aOrderSelection ordering for the filter

SetService ( TMsvId )

voidSetService(TMsvIdaServiceId)[inline]

Sets the service ID for the filter.

Parameters
aServiceIdService ID for the filter

SetSortMtm ( TUid )

voidSetSortMtm(TUidaSortMtm)[inline]

Sets the sorting by MTM for the filter.

Parameters
aSortMtmSorting by MTM for the filter

SetType ( TUid )

voidSetType(TUidaType)[inline]

Sets the entry type for the filter.

Parameters
aTypeEntry type for the filter

SortMtm ( )

TUid SortMtm()const [inline]

Gets the sorting by MTM for the filter.

Return Value
Sorting by MTM for the filter

Type ( )

TUid Type()const [inline]

Gets the entry type set for the filter.

Return Value
Entry type set for the filter