00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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:
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:
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:
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
00203 #endif