uifw/EikStd/coctlinc/smileyinforeader.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  smiley utility class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_SMILEYINFOREADER_H
       
    19 #define C_SMILEYINFOREADER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <e32std.h>
       
    23 
       
    24 class CSmileyModel;
       
    25 class CSmileyInfo;
       
    26 class TResourceReader;
       
    27 
       
    28 /**
       
    29  *  class for reading and interpreting infomation stored in CenRep
       
    30  *
       
    31  *  @lib ?library
       
    32  *  @since S60 v5.0
       
    33  */
       
    34 NONSHARABLE_CLASS( CSmileyInfoReader ) : public CBase
       
    35     {
       
    36 public:
       
    37 // constructor
       
    38     CSmileyInfoReader( CSmileyModel& aModel );
       
    39     
       
    40     ~CSmileyInfoReader();
       
    41     
       
    42 // new functions
       
    43     void LoadSmileysFromResourceL();
       
    44 
       
    45 private:    
       
    46 // new functions
       
    47     void ReadCenRepInfoL( TInt& aResourceId, TDes& aResourceFile,
       
    48         TDes& aIconFile );
       
    49     void ReadSmileyL( CSmileyInfo& aInfo, TResourceReader& aReader );
       
    50     
       
    51 private:
       
    52     // not own
       
    53     CSmileyModel* iModel;
       
    54     };
       
    55 
       
    56 #endif C_SMILEYINFOREADER_H