diff -r 000000000000 -r f979ecb2b13e calendarengines/agnversit2/inc/AgnVersit2StringProvider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarengines/agnversit2/inc/AgnVersit2StringProvider.h Tue Feb 02 10:12:19 2010 +0200 @@ -0,0 +1,62 @@ +#ifndef AGNVERSIT2STRINGPROVIDER_H +#define AGNVERSIT2STRINGPROVIDER_H/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Caches language specific text fields from a +* resource file and provides access to them. +* +*/ + + + +//System includes +#include // CBase +#include // RFs +#include // RResourceFile +#include // TResourceReader + +//User includes +#include "agnversit2strings.hrh" // TStringId + +/** +Class to load and cache strings from resource files. +@internalTechnology +*/ +class CAgnVersit2StringProvider : public CBase + { +public: // Construction/destruction. + static CAgnVersit2StringProvider* NewL(); + ~CAgnVersit2StringProvider(); + +public: // Methods. + const TDesC& StringL(TStringId aStringId); + +private: // Construction. + CAgnVersit2StringProvider(); + void ConstructL(); + +private: // Methods. + void ReadStringFromResourceL(TStringId aStringId); + void ReadAllStringsL(); + +private: // Members. + RFs iFs; + HBufC* iResourceBuffer; + RResourceFile iResourceFile; + TResourceReader iResourceReader; + RPointerArray iStringArray; + }; + +#endif // AGNVERSIT2STRINGPROVIDER_H + +// End of file. \ No newline at end of file