os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServResourceInterpreter.h
First public contribution.
1 // Copyright (c) 2002-2010 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 __LOGSERVRESOURCEINTERPRETER_H__
17 #define __LOGSERVRESOURCEINTERPRETER_H__
24 Gives an access to the LogWrap resource file and maintains a cache of the retrieved resource entries.
28 class CLogServResourceInterpreter : public CBase
31 static CLogServResourceInterpreter* NewL(RFs& aFs);
32 ~CLogServResourceInterpreter();
33 void CreateResourceReaderLC(TResourceReader& aReader, TInt aId);
38 Holds one resource string identified by an id.
41 struct TResourceString
43 inline TResourceString(TInt aResourceId, HBufC8* aResourceString) :
45 iString(aResourceString)
52 CLogServResourceInterpreter(RFs& aFs);
54 HBufC8* GetStringL(TInt aId);
55 static TInt Compare(const TResourceString& aLeft, const TResourceString& aRight);
60 RArray<TResourceString> iStrings;