os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServRecentListManager.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __LOGSERVRECENTLISTMANAGER_H__
    17 #define __LOGSERVRECENTLISTMANAGER_H__
    18 
    19 #include <e32base.h>
    20 
    21 // Classes referenced
    22 class CLogEvent;
    23 class TResourceReader;
    24 class CLogServRecentList;
    25 class CLogServResourceInterpreter;
    26 
    27 /**
    28 Holds an array of CLogServRecentList elements. 
    29 
    30 @see CLogServRecentCondition
    31 @see CLogServRecentList
    32 @internalComponent
    33 */
    34 class CLogServRecentListManager : public CBase
    35 	{
    36 public:
    37 	static CLogServRecentListManager* NewL(CLogServResourceInterpreter& aResourceInterpreter, TInt aResourceId);
    38 	~CLogServRecentListManager();
    39 
    40 private:
    41 	void ConstructL(CLogServResourceInterpreter& aResourceInterpreter, TInt aResourceId);
    42 
    43 public:
    44 	const CLogServRecentList* GetRecentList(const CLogEvent& aEvent) const;
    45 	inline const CLogServRecentList& List(TInt aIndex) const;
    46 	inline TInt Count() const;
    47 
    48 private:
    49     typedef RPointerArray<CLogServRecentList> RLogServRecentListArray;
    50     RLogServRecentListArray iLists;
    51 	};
    52 
    53 inline TInt CLogServRecentListManager::Count() const
    54 	{
    55 	return iLists.Count();
    56 	}
    57 
    58 inline const CLogServRecentList& CLogServRecentListManager::List(TInt aIndex) const
    59 	{
    60 	return *iLists[aIndex];
    61 	}
    62 
    63 #endif