diff -r 000000000000 -r 2f259fa3e83a uifw/EikStd/coctlinc/smileyinforeader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uifw/EikStd/coctlinc/smileyinforeader.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2008 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: smiley utility class +* +*/ + +#ifndef C_SMILEYINFOREADER_H +#define C_SMILEYINFOREADER_H + +#include +#include + +class CSmileyModel; +class CSmileyInfo; +class TResourceReader; + +/** + * class for reading and interpreting infomation stored in CenRep + * + * @lib ?library + * @since S60 v5.0 + */ +NONSHARABLE_CLASS( CSmileyInfoReader ) : public CBase + { +public: +// constructor + CSmileyInfoReader( CSmileyModel& aModel ); + + ~CSmileyInfoReader(); + +// new functions + void LoadSmileysFromResourceL(); + +private: +// new functions + void ReadCenRepInfoL( TInt& aResourceId, TDes& aResourceFile, + TDes& aIconFile ); + void ReadSmileyL( CSmileyInfo& aInfo, TResourceReader& aReader ); + +private: + // not own + CSmileyModel* iModel; + }; + +#endif C_SMILEYINFOREADER_H