Location:
logcli.h
Link against: logcli.lib
CLogFilter
Supported from 6.0
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.
|
Defined in CLogFilter
:
ClearFlags()
, Contact()
, Copy()
, Direction()
, DurationType()
, EventType()
, Flags()
, NewL()
, NullFields()
, Number()
, RemoteParty()
, SetContact()
, SetDirection()
, SetDurationType()
, SetEventType()
, SetFlags()
, SetNullFields()
, SetNumber()
, SetRemoteParty()
, SetStatus()
, Status()
, ~CLogFilter()
Inherited from CBase
:
operator new()
static CLogFilter* NewL();
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.
|
void SetEventType(TUid aType);
Sets the event type to be used by the filter.
|
TUid EventType() const;
Gets the event type used by the filter.
|
void SetContact(TContactItemId aContact);
Sets the contact ID to be used by the filter.
|
TContactItemId Contact() const;
Gets the contact ID used by the filter.
|
void SetDirection(const TDesC& aDirection);
Sets the direction string to be used by the filter.
|
const TDesC& Direction() const;
Gets the direction string used by the filter.
|
void SetDurationType(TLogDurationType aType);
Sets the duration type to be used by the filter.
|
TLogDurationType DurationType() const;
Gets the duration type used by the filter.
|
void SetNumber(const TDesC& aNumber);
Sets the phone number to be used by the filter.
|
const TDesC& Number() const;
Gets the phone number used by the filter.
|
void SetStatus(const TDesC& aStatus);
Sets the delivery status to be used by the filter.
|
const TDesC& Status() const;
Gets the delivery status used by the filter.
|
void SetRemoteParty(const TDesC& aRemote);
Sets the remote party string to be used by the filter.
|
const TDesC& RemoteParty() const;
Gets the remote party string used by the filter.
|
void SetNullFields(TUint32 aFields);
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.
|
TUint32 NullFields() const;
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.
|
void Copy(const CLogFilter& aFilter);
Makes a copy of a filter.
|
void SetFlags(TLogFlags aFlags);
Sets the specified flags to be used by the filter.
|
void ClearFlags(TLogFlags aFlags);
Clears the specified flags to be used by the filter.
The constant KLogFlagsMask
can be used to clear all the
flags.
|
TLogFlags Flags() const;
Gets the flags used by the filter.
|