examples/SysLibs/ResourceFiles/ReadArray/ReadArray.h

00001 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 // This header file contains the class definitions for:
00015 // CResData and CResDataArray
00016 //
00017 
00018 
00019 #include "CommonFile.hrh"
00020 
00021 class CResData : public CBase
00022         {
00023 public:
00024         ~CResData();
00025         static  CResData* NewLC(TResourceReader& aReader);
00026         void    ShowData(const TInt aStructNum = 0);
00027 private:
00028     void        ConstructL(TResourceReader& aReader);
00029 private:
00030         TInt            iWrd;           // STRUCT member type: WORD,
00031         TInt                    iFlags;     // WORD
00032         TInt                    iLng;           // LONG,
00033         TInt            iByt;           // BYTE,
00034         TReal                   iDbl;           // DOUBLE,
00035         TBufC<TEXTMAX>  iTxt;           // TEXT (maximum length specified),
00036         HBufC*          iLtxt;          // LTEXT
00037         };
00038 
00039                                 
00040 class CResDataArray : public CBase
00041         {
00042 public:
00043         ~CResDataArray();
00044         static  CResDataArray* NewLC(TResourceReader& aReader);
00045         void    AddDataL(TResourceReader& aReader);
00046         void    ShowAllData();
00047 private:
00048     void        ConstructL(TResourceReader& aReader);
00049 private:
00050         CArrayPtrFlat<CResData>* iDataArray;
00051         };
00052 
00053 
00054 

Generated by  doxygen 1.6.2