Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <LOGCLI.H>
Link against: logcli.lib

Class CLogFilter

class CLogFilter : public CBase;

Description

Specifies the conditions that events must satisfy to appear in a view.

In general, a filter is used to construct the WHERE clause of an SQL statement based on the content of the filter's fields. The filter's fields correspond to the event properties in a log event detail object, i.e. an instance of the CLogEvent class.

Where a filter uses time to extract one or more events from the log, this must be specified as UTC rather than local time.

Derivation

Members

Defined in CLogFilter:

Inherited from CBase:

See also:


Construction and destruction


NewL()

IMPORT_C static CLogFilter* NewL();

Description

Creates a new filter object.

All fields in the new instance are initialised to default values, so that if none of the fields are changed, the filter has no effect on the selection of events in view.

Return value

CLogFilter *

A pointer to the new event object.


~CLogFilter()

IMPORT_C ~CLogFilter();

Description

Frees all resource owned by the object prior to its destruction.

[Top]


Member functions


EventType()const

inline TUid EventType() const;

Description

Gets the event type used by the filter.

Return value

TUid

The event type UID.

See also:


SetEventType(TUid)

inline void SetEventType(TUid aType);

Description

Sets the event type to be used by the filter.

Parameters

TUid aType

The event type UID.

See also:


RemoteParty()const

inline const TDesC& RemoteParty() const;

Description

Gets the remote party string used by the filter.

Return value

const TDesC16 &

A non-modifiable descriptor containing the remote party string.

See also:


SetRemoteParty(const TDesC &)

inline void SetRemoteParty(const TDesC &aRemote);

Description

Sets the remote party string to be used by the filter.

Parameters

const TDesC16 &aRemote

The remote party string.

See also:


Direction()const

inline const TDesC& Direction() const;

Description

Gets the direction string used by the filter.

Return value

const TDesC16 &

A non-modifiable descriptor containing the direction string.

See also:


SetDirection(const TDesC &)

inline void SetDirection(const TDesC &aDirection);

Description

Sets the direction string to be used by the filter.

Parameters

const TDesC16 &aDirection

The direction string.

See also:


DurationType()const

inline TLogDurationType DurationType() const;

Description

Gets the duration type used by the filter.

Return value

TLogDurationType

The duration type.

See also:


SetDurationType(TLogDurationType)

inline void SetDurationType(TLogDurationType aType);

Description

Sets the duration type to be used by the filter.

Parameters

TLogDurationType aType

The duration type.

See also:


Status()const

inline const TDesC& Status() const;

Description

Gets the delivery status used by the filter.

Return value

const TDesC16 &

A non-modifiable descriptor containing the delivery status.

See also:


SetStatus(const TDesC &)

inline void SetStatus(const TDesC &aStatus);

Description

Sets the delivery status to be used by the filter.

Parameters

const TDesC16 &aStatus

The delivery status.

See also:


Contact()const

inline TLogContactItemId Contact() const;

Description

Gets the contact ID used by the filter.

Return value

TLogContactItemId

The contact ID.

See also:


SetContact(TLogContactItemId)

inline void SetContact(TLogContactItemId aContact);

Description

Sets the contact ID to be used by the filter.

Parameters

TLogContactItemId aContact

The contact ID.

See also:


Number()const

inline const TDesC& Number() const;

Description

Gets the phone number used by the filter.

Return value

const TDesC16 &

A non-modifiable descriptor containing the phone number.

See also:


SetNumber(const TDesC &)

inline void SetNumber(const TDesC &aNumber);

Description

Sets the phone number to be used by the filter.

Parameters

const TDesC16 &aNumber

The phone number.

See also:


Flags()const

inline TLogFlags Flags() const;

Description

Gets the flags used by the filter.

Return value

TLogFlags

The flags.


SetFlags(TLogFlags)

inline void SetFlags(TLogFlags aFlags);

Description

Sets the specified flags to be used by the filter.

Parameters

TLogFlags aFlags

The flags to be set.


ClearFlags(TLogFlags)

inline void ClearFlags(TLogFlags aFlags);

Description

Clears the specified flags to be used by the filter.

The constant KLogFlagsMask can be used to clear all the flags.

Parameters

TLogFlags aFlags

The flags to be cleared


NullFields()const

inline TUint32 NullFields() const;

Description

Identifies the fields defined as NULL in the filter. These are the fields that the filter expects to be NULL in the database. A NULL field is one that has no value.

Return value

TUint32

Bit values defining the null fields.

See also:


SetNullFields(TUint32)

inline void SetNullFields(TUint32 aFields);

Description

Defines NULL fields to the filter. These are the fields that the filter expects to be NULL in the database. A NULL field is one that has no value.

Each field is identified by a bit value. The bit values may be ORd together in any combination.

Note that setting a flag and explicitly setting a value for the corresponding field generates an OR condition in the SQL WHERE clause.

Parameters

TUint32 aFields

Bit values defining the null fields. These are one or more of the following values defined in logwrap.hrh: ELogContactField, ELogDirectionField, ELogDurationTypeField, ELogEventTypeField, ELogNumberField, ELogRemotePartyField, ELogStatusField, ELogFlagsField, ELogSubjectField, ELogLinkField and ELogDataField.


StartTime()const

inline const TTime& StartTime() const;

Description

Gets the UTC start time used by the filter.

Return value

const TTime &

The UTC start time.


SetStartTime(const TTime &)

inline void SetStartTime(const TTime &aStartTime);

Description

Sets the specified UTC start time to be used by the filter.

Parameters

const TTime &aStartTime

The UTC start time to be set.


EndTime()const

inline const TTime& EndTime() const;

Description

Gets the UTC end time used by the filter.

Return value

const TTime &

The UTC end time.


SetEndTime(const TTime &)

inline void SetEndTime(const TTime &aEndTime);

Description

Sets the specified UTC end time to be used by the filter.

Parameters

const TTime &aEndTime

The UTC end time to be set.


Copy(const CLogFilter &)

IMPORT_C void Copy(const CLogFilter &aFilter);

Description

Makes a copy of a filter.

Parameters

const CLogFilter &aFilter

The filter object to be copied.