CLogFilter Class Reference
class CLogFilter : public CBase |
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.
CLogEvent CLogViewEvent CLogViewRecent CLogViewDuplicate
Constructor & Destructor Documentation
~CLogFilter()
Frees all resource owned by the object prior to its destruction.
Member Functions Documentation
ClearFlags(TLogFlags)
Clears the specified flags to be used by the filter.
The constant KLogFlagsMask can be used to clear all the flags.
ConstructL()
void | ConstructL | ( | ) | [private] |
Copy(const CLogFilter &)
Makes a copy of a filter.
Parameters
const CLogFilter & aFilter | The filter object to be copied. |
Direction()
const TDesC & | Direction | ( | ) | const [inline] |
EndTime()
const TTime & | EndTime | ( | ) | const [inline] |
Gets the UTC end time used by the filter.
EventType()
TUid
| EventType | ( | ) | const [inline] |
ExternalizeL(RWriteStream &)
Flags()
Gets the flags used by the filter.
InternalizeBufL(RReadStream &, HBufC *&)
InternalizeL(RReadStream &)
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.
NullFields()
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.
SetNullFields()
Number()
const TDesC & | Number | ( | ) | const [inline] |
RemoteParty()
const TDesC & | RemoteParty | ( | ) | const [inline] |
SetContact(TLogContactItemId)
SetDirection(const TDesC &)
void | SetDirection | ( | const TDesC & | aDirection | ) | [inline] |
Parameters
const TDesC & aDirection | The direction string. |
SetDurationType(TLogDurationType)
SetEndTime(const TTime &)
void | SetEndTime | ( | const TTime & | aEndTime | ) | [inline] |
Sets the specified UTC end time to be used by the filter.
Parameters
const TTime & aEndTime | The UTC end time to be set. |
SetEventType(TUid)
void | SetEventType | ( | TUid | aType | ) | [inline] |
Parameters
TUid aType | The event type UID. |
SetFlags(TLogFlags)
Sets the specified flags to be used by the filter.
SetNullFields(TUint32)
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
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, ELogDataField, ELogSimIdField. |
SetNumber(const TDesC &)
void | SetNumber | ( | const TDesC & | aNumber | ) | [inline] |
Parameters
const TDesC & aNumber | The phone number. |
SetRemoteParty(const TDesC &)
void | SetRemoteParty | ( | const TDesC & | aRemote | ) | [inline] |
Parameters
const TDesC & aRemote | The remote party string. |
SetSimId(TSimId)
IMPORT_C void | SetSimId | ( | TSimId | aSimId | ) | |
SetStartTime(const TTime &)
void | SetStartTime | ( | const TTime & | aStartTime | ) | [inline] |
Sets the specified UTC start time to be used by the filter.
Parameters
const TTime & aStartTime | The UTC start time to be set. |
SetStatus(const TDesC &)
void | SetStatus | ( | const TDesC & | aStatus | ) | [inline] |
Parameters
const TDesC & aStatus | The delivery status. |
StartTime()
const TTime & | StartTime | ( | ) | const [inline] |
Gets the UTC start time used by the filter.
Status()
const TDesC & | Status | ( | ) | const [inline] |
Member Data Documentation
TLogContactItemId
iContact
HBufC * iDirection
HBufC * | iDirection | [private] |
TLogDurationType
iDurationType
HBufC * iRemoteParty
HBufC * | iRemoteParty | [private] |
TTime
iStartTime
TTime
| iStartTime | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.