os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServRecentCondition.h
First public contribution.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __LOGSERVRECENTCONDITION_H__
17 #define __LOGSERVRECENTCONDITION_H__
23 class TResourceReader;
26 Holds an event field type and value pair.
27 Used for performing event field value matching operations.
29 For event field types, look at these macfro definitions:
32 -ELogDurationTypeField;
35 -ELogRemotePartyField;
46 @see CLogServRecentList
47 @see CLogServRecentListManager
50 class CLogServRecentCondition : public CBase
53 static CLogServRecentCondition* NewL(TResourceReader& aReader);
54 static CLogServRecentCondition* TestNewL(TUint16 aField);
55 ~CLogServRecentCondition();
58 void ConstructL(TResourceReader& aReader);
59 void TestConstructL(TUint16 aField);
62 TBool IsMatch(const CLogEvent& aEvent) const;
63 inline TUint16 Field() const;
66 TUint16 iField; //It must be 16-bit. The iField value is read from a resource file.
67 //See ConstructL() implementation. The iField type width then restricts
68 //the max number of field macro values -
69 //ELogContactField...ELogSimIdField.
74 inline TUint16 CLogServRecentCondition::Field() const