Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <MSVSTD.H>
Link against: msgs.lib
Link against: msgs_autoshutdown.lib

Class CMsvEntryFilter

class CMsvEntryFilter : public CBase;

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.

Derivation

Members

Defined in CMsvEntryFilter:

Inherited from CBase:

See also:


Construction and destruction


NewLC()

IMPORT_C static CMsvEntryFilter* NewLC();

Description

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

For default values, see the CMsvEntryFilter::NewL() function.

Return value

CMsvEntryFilter *

Pointer to the newly created entry filter.


NewL()

IMPORT_C static CMsvEntryFilter* NewL();

Description

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

CMsvEntryFilter *

Pointer to the newly created entry filter.

[Top]


Member functions


Service()const

inline TMsvId Service() const;

Description

Gets the service ID set for the filter.

Return value

TMsvId

Service ID set for the filter


SetService(TMsvId)

inline void SetService(TMsvId aServiceId);

Description

Sets the service ID for the filter.

Parameters

TMsvId aServiceId

Service ID for the filter


Mtm()const

inline TUid Mtm() const;

Description

Gets the MTM UID set for the filter.

Return value

TUid

MTM UID set for the filter


SetMtm(TUid)

inline void SetMtm(TUid aMtm);

Description

Sets the MTM UID for the filter.

Parameters

TUid aMtm

MTM UID for the filter


Type()const

inline TUid Type() const;

Description

Gets the entry type set for the filter.

Return value

TUid

Entry type set for the filter


SetType(TUid)

inline void SetType(TUid aType);

Description

Sets the entry type for the filter.

Parameters

TUid aType

Entry type for the filter


LastChangeDate()const

inline const TTime& LastChangeDate() const;

Description

Gets the last change date set for the filter.

Return value

const TTime &

Last change date set for the filter


SetLastChangeDate(const TTime &)

inline void SetLastChangeDate(const TTime &aLastChange);

Description

Sets the last date change for the filter.

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

Parameters

const TTime &aLastChange

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


Order()const

inline const TMsvSelectionOrdering& Order() const;

Description

Gets the selection ordering set for the filter.

Return value

const TMsvSelectionOrdering &

Selection ordering set for the filter


SetOrder(const TMsvSelectionOrdering &)

inline void SetOrder(const TMsvSelectionOrdering &aOrder);

Description

Sets the sort ordering for the filter.

Parameters

const TMsvSelectionOrdering &aOrder

Selection ordering for the filter


SortMtm()const

inline TUid SortMtm() const;

Description

Gets the sorting by MTM for the filter.

Return value

TUid

Sorting by MTM for the filter


SetSortMtm(TUid)

inline void SetSortMtm(TUid aSortMtm);

Description

Sets the sorting by MTM for the filter.

Parameters

TUid aSortMtm

Sorting by MTM for the filter