#include <logcli.h>
Link against: logcli.lib
class CLogFilter : public CBase |
Public Member Functions | |
---|---|
~CLogFilter() | |
void | ClearFlags(TLogFlags) |
TLogContactItemId | Contact() |
IMPORT_C void | Copy(const CLogFilter &) |
const TDesC & | Direction() |
TLogDurationType | DurationType() |
const TTime & | EndTime() |
TUid | EventType() |
void | ExternalizeL(RWriteStream &) |
TLogFlags | Flags() |
void | InternalizeL(RReadStream &) |
IMPORT_C CLogFilter * | NewL() |
TUint32 | NullFields() |
const TDesC & | Number() |
const TDesC & | RemoteParty() |
void | SetContact(TLogContactItemId) |
void | SetDirection(const TDesC &) |
void | SetDurationType(TLogDurationType) |
void | SetEndTime(const TTime &) |
void | SetEventType(TUid) |
void | SetFlags(TLogFlags) |
void | SetNullFields(TUint32) |
void | SetNumber(const TDesC &) |
void | SetRemoteParty(const TDesC &) |
IMPORT_C void | SetSimId(TSimId) |
void | SetStartTime(const TTime &) |
void | SetStatus(const TDesC &) |
IMPORT_C TSimId | SimId() |
const TTime & | StartTime() |
const TDesC & | Status() |
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.
See also: CLogEvent CLogViewEvent CLogViewRecent CLogViewDuplicate
IMPORT_C | ~CLogFilter | ( | ) |
Frees all resource owned by the object prior to its destruction.
void | ClearFlags | ( | TLogFlags | aFlags | ) | [inline] |
Clears the specified flags to be used by the filter.
The constant KLogFlagsMask can be used to clear all the flags.
Parameters | |
---|---|
aFlags | The flags to be cleared |
IMPORT_C void | Copy | ( | const CLogFilter & | aFilter | ) |
Makes a copy of a filter.
Parameters | |
---|---|
aFilter | The filter object to be copied. |
const TDesC & | Direction | ( | ) | const [inline] |
const TTime & | EndTime | ( | ) | const [inline] |
Gets the UTC end time used by the filter.
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
void | InternalizeL | ( | RReadStream & | aStream | ) |
IMPORT_C CLogFilter * | NewL | ( | ) | [static] |
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.
TUint32 | NullFields | ( | ) | const [inline] |
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.
See also: SetNullFields()
const TDesC & | Number | ( | ) | const [inline] |
const TDesC & | RemoteParty | ( | ) | const [inline] |
void | SetContact | ( | TLogContactItemId | aContact | ) | [inline] |
Parameters | |
---|---|
aContact | The contact ID. |
void | SetDirection | ( | const TDesC & | aDirection | ) | [inline] |
Parameters | |
---|---|
aDirection | The direction string. |
void | SetDurationType | ( | TLogDurationType | aType | ) | [inline] |
Parameters | |
---|---|
aType | The duration type. |
void | SetEndTime | ( | const TTime & | aEndTime | ) | [inline] |
Sets the specified UTC end time to be used by the filter.
Parameters | |
---|---|
aEndTime | The UTC end time to be set. |
void | SetFlags | ( | TLogFlags | aFlags | ) | [inline] |
Sets the specified flags to be used by the filter.
Parameters | |
---|---|
aFlags | The flags to be set. |
void | SetNullFields | ( | TUint32 | aFields | ) | [inline] |
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 | |
---|---|
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, ELogDataField, ELogSimIdField. |
void | SetNumber | ( | const TDesC & | aNumber | ) | [inline] |
Parameters | |
---|---|
aNumber | The phone number. |
void | SetRemoteParty | ( | const TDesC & | aRemote | ) | [inline] |
Parameters | |
---|---|
aRemote | The remote party string. |
void | SetStartTime | ( | const TTime & | aStartTime | ) | [inline] |
Sets the specified UTC start time to be used by the filter.
Parameters | |
---|---|
aStartTime | The UTC start time to be set. |
void | SetStatus | ( | const TDesC & | aStatus | ) | [inline] |
Parameters | |
---|---|
aStatus | The delivery status. |
const TTime & | StartTime | ( | ) | const [inline] |
Gets the UTC start time used by the filter.
const TDesC & | Status | ( | ) | const [inline] |