imgtools/romtools/rofsbuild/r_romnode.h
changeset 698 e3ee96a3961c
parent 694 c3fbb20e86f0
equal deleted inserted replaced
697:818fe0ed324b 698:e3ee96a3961c
    19 #ifndef __R_ROMNODE_H__
    19 #ifndef __R_ROMNODE_H__
    20 #define __R_ROMNODE_H__
    20 #define __R_ROMNODE_H__
    21 
    21 
    22 #include <fstream>
    22 #include <fstream>
    23 #include <e32std.h>
    23 #include <e32std.h>
       
    24 #include <vector>
       
    25 #include <string>
    24 #include "rofs.h"
    26 #include "rofs.h"
    25 #include "e32image.h"
    27 #include "e32image.h"
    26 #include "h_utl.h"
    28 #include "h_utl.h"
    27 
    29 
    28 const TUint KOverrideStack = 0x01;
    30 const TUint KOverrideStack = 0x01;
   121 	static void displayFlatList();
   123 	static void displayFlatList();
   122 	TInt FullNameLength(TBool aIgnoreHiddenAttrib = EFalse) const;
   124 	TInt FullNameLength(TBool aIgnoreHiddenAttrib = EFalse) const;
   123 	TInt GetFullName(char* aBuf, TBool aIgnoreHiddenAttrib = EFalse) const;
   125 	TInt GetFullName(char* aBuf, TBool aIgnoreHiddenAttrib = EFalse) const;
   124 	static void InitializeCount();
   126 	static void InitializeCount();
   125 	// Accessor Function.
   127 	// Accessor Function.
   126     inline TRomNode* GetParent() const { return iParent; }
   128     	inline TRomNode* GetParent() const { return iParent; }
       
   129 	void FlushLogMessages();
   127 
   130 
   128 private:
   131 private:
   129 	void Remove(TRomNode* aChild);
   132 	void Remove(TRomNode* aChild);
   130 	void Add(TRomNode* aChild);
   133 	void Add(TRomNode* aChild);
   131 	void Clone(TRomNode* aOriginal);
   134 	void Clone(TRomNode* aOriginal);
   185 	};
   188 	};
   186 
   189 
   187 
   190 
   188 
   191 
   189 class DllDataEntry;
   192 class DllDataEntry;
       
   193 struct TLogItem
       
   194 	{
       
   195 		TPrintType iPrintType;
       
   196 		std::string iLogMessage;
       
   197 	};
       
   198 typedef vector<TLogItem> LogVector;
   190 class TRomBuilderEntry
   199 class TRomBuilderEntry
   191 	{
   200 	{
   192 public:
   201 public:
   193 	TRomBuilderEntry(const char *aFileName, const char *aName);
   202 	TRomBuilderEntry(const char *aFileName, const char *aName);
   194 	~TRomBuilderEntry();
   203 	~TRomBuilderEntry();
   216 	TBool iExecutable;
   225 	TBool iExecutable;
   217 	TBool iFileOffset; // offset of the file in ROM
   226 	TBool iFileOffset; // offset of the file in ROM
   218 	TUint iCompressEnabled;
   227 	TUint iCompressEnabled;
   219 	TUint8 iUids[sizeof(TCheckedUid)];
   228 	TUint8 iUids[sizeof(TCheckedUid)];
   220 	TBool iHidden;
   229 	TBool iHidden;
       
   230 	LogVector iLogMessages;
   221   	DllDataEntry* GetFirstDllDataEntry() const;
   231   	DllDataEntry* GetFirstDllDataEntry() const;
   222 	void SetFirstDllDataEntry(DllDataEntry *aDllDataEntry);
   232 	void SetFirstDllDataEntry(DllDataEntry *aDllDataEntry);
   223 
   233 
   224 private:
   234 private:
   225 	TRomNode *iRomNode;
   235 	TRomNode *iRomNode;