os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServRecentListManager.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 __LOGSERVRECENTLISTMANAGER_H__
17 #define __LOGSERVRECENTLISTMANAGER_H__
23 class TResourceReader;
24 class CLogServRecentList;
25 class CLogServResourceInterpreter;
28 Holds an array of CLogServRecentList elements.
30 @see CLogServRecentCondition
31 @see CLogServRecentList
34 class CLogServRecentListManager : public CBase
37 static CLogServRecentListManager* NewL(CLogServResourceInterpreter& aResourceInterpreter, TInt aResourceId);
38 ~CLogServRecentListManager();
41 void ConstructL(CLogServResourceInterpreter& aResourceInterpreter, TInt aResourceId);
44 const CLogServRecentList* GetRecentList(const CLogEvent& aEvent) const;
45 inline const CLogServRecentList& List(TInt aIndex) const;
46 inline TInt Count() const;
49 typedef RPointerArray<CLogServRecentList> RLogServRecentListArray;
50 RLogServRecentListArray iLists;
53 inline TInt CLogServRecentListManager::Count() const
55 return iLists.Count();
58 inline const CLogServRecentList& CLogServRecentListManager::List(TInt aIndex) const
60 return *iLists[aIndex];