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 __LOGSERVRECENTLIST_H__
17 #define __LOGSERVRECENTLIST_H__
22 class TResourceReader;
25 class CLogServRecentCondition;
28 Holds an array of CLogServRecentCondition elements.
30 @see CLogServRecentCondition
31 @see CLogServRecentListManager
34 class CLogServRecentList : public CBase
37 static CLogServRecentList* NewL(TResourceReader& aReader);
38 static CLogServRecentList* TestNewL();
39 ~CLogServRecentList();
41 TBool IsRecent(const CLogEvent& aEvent) const;
42 void GetFilter(const CLogEvent& aEvent, CLogFilter& aFilter) const;
43 inline TLogRecentList Id() const;
46 void ConstructL(TResourceReader& aReader);
47 void TestConstructL();
48 TBool IsFilterEmpty(const CLogFilter& aFilter) const;
52 TUint16 iDuplicates;//It must be 16-bit. The iDuplicates value is read from a resource file.
53 //See ConstructL() implementation. The Duplicates type width then restricts
54 //the max number of field macro values -
55 //ELogContactField...ELogSimIdField.
56 typedef RPointerArray<CLogServRecentCondition> RLogRecentConditionArray;
57 RLogRecentConditionArray iConditions;
60 inline TLogRecentList CLogServRecentList::Id() const