cdirectorylocalizer.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : CDirectoryLocalizer.h
00004 *  Part of     : Directory Localizer / directorylocalizer.dll
00005 *  Description : Directory Localizer interface class
00006 *  Version     : %version: e003sa02#4 %
00007 *
00008 *  Copyright (c) 2007 Nokia Corporation.
00009 *  This material, including documentation and any related
00010 *  computer programs, is protected by copyright controlled by
00011 *  Nokia Corporation. All rights are reserved. Copying,
00012 *  including reproducing, storing, adapting or translating, any
00013 *  or all of this material requires the prior written consent of
00014 *  Nokia Corporation. This material also contains confidential
00015 *  information which may not be disclosed to others without the
00016 *  prior written consent of Nokia Corporation.
00017 * ==============================================================================
00018 */
00019 
00020 
00021 #ifndef C_CDIRECTORYLOCALIZER_H
00022 #define C_CDIRECTORYLOCALIZER_H
00023 
00024 #include <e32def.h>
00025 
00026 class TResourceReader;
00027 
00028 
00035 NONSHARABLE_CLASS(CDirectoryLocalizer) : public CBase
00036     {
00037 public: // Constructors and destructor    
00038 
00046     IMPORT_C static CDirectoryLocalizer* NewL();
00047 
00056     IMPORT_C static CDirectoryLocalizer* NewL( TResourceReader& aReader );
00057 
00065     IMPORT_C static CDirectoryLocalizer* NewL( TInt aResourceId );
00066 
00070     IMPORT_C virtual ~CDirectoryLocalizer();
00071 
00072 public: // New methods
00073         
00080     IMPORT_C void AddFromResourceL( TResourceReader& aReader );
00081 
00088     IMPORT_C void AddFromResourceL( TInt aResourceId );
00089 
00114     IMPORT_C void SetFullPath( const TDesC& aFullPath );
00115 
00121     IMPORT_C TBool IsLocalized() const;
00122 
00130     IMPORT_C const TDesC& LocalizedName() const;
00131 
00139     IMPORT_C const TDesC& ExtraData() const;
00140 
00156     IMPORT_C TInt Icon() const;
00157 
00158 protected:
00159 
00163     CDirectoryLocalizer();
00164  
00168     void ConstructL();
00169 
00170 private: // data
00171 
00175     TInt iCurrentEntry;
00176 
00181     CArrayPtrFlat<TDesC>* iPaths;
00182 
00187     CArrayPtrFlat<TDesC>* iLocalizedNames;
00188 
00193     CArrayPtrFlat<TDesC>* iExtraData;
00194 
00198     RArray<TInt> iIconIndices;
00199     
00200     };
00201 
00202 // C_CDIRECTORYLOCALIZER_H
00203 #endif

Copyright © Nokia Corporation 2001-2008
Back to top