79 bool IsRomStubPackage(const TUint32 aUid); |
79 bool IsRomStubPackage(const TUint32 aUid); |
80 void GetStubFileEntries(const TUint32 aUid, std::list<std::wstring>& aFilesEntries); |
80 void GetStubFileEntries(const TUint32 aUid, std::list<std::wstring>& aFilesEntries); |
81 void GenerateStubRegistry(); |
81 void GenerateStubRegistry(); |
82 int GetAugmentationsNumber(TUint32 aUid); |
82 int GetAugmentationsNumber(TUint32 aUid); |
83 CSISController* GetStubController(const TUint32 aUid); |
83 CSISController* GetStubController(const TUint32 aUid); |
|
84 CSISController* GetStubControllerUid(const std::wstring& aTarget); |
|
85 const std::wstring& GetRomStubFile() const; |
84 |
86 |
85 static const int KSisRegistryMajorVersion; |
87 static const int KSisRegistryMajorVersion; |
86 static const int KSisRegistryMinorVersion; |
88 static const int KSisRegistryMinorVersion; |
87 static const std::string KRegistryV40string; |
89 static const std::string KRegistryV40string; |
88 static const std::string KRegistryV50string; |
90 static const std::string KRegistryV50string; |
94 |
96 |
95 private: // Internal methods |
97 private: // Internal methods |
96 void ReadStubs( const std::wstring& aDirectory ); |
98 void ReadStubs( const std::wstring& aDirectory ); |
97 void ReadRegistry( const std::wstring& aRegistryBasePath ); |
99 void ReadRegistry( const std::wstring& aRegistryBasePath ); |
98 CSISController* GetStubControllerInDir( const std::wstring& aDirectory, const TUint32 aUid); |
100 CSISController* GetStubControllerInDir( const std::wstring& aDirectory, const TUint32 aUid); |
|
101 CSISController* GetStubControllerInDir( const std::wstring& aDirectory, const std::wstring& aTarget); |
99 CSISController* ReadStubController( const wchar_t* aFilename ); |
102 CSISController* ReadStubController( const wchar_t* aFilename ); |
100 void GenerateRegistryEntry(SisRegistryObject& aObj, const SisFile& aSis); |
103 void GenerateRegistryEntry(SisRegistryObject& aObj, const SisFile& aSis); |
101 void ExtractRegistryFiles(const std::wstring& path); |
104 void ExtractRegistryFiles(const std::wstring& path); |
102 void RemoveInstalledFiles(const FileDescriptions& aFileDes, std::wstring& aLocalPath); |
105 void RemoveInstalledFiles(const FileDescriptions& aFileDes, std::wstring& aLocalPath); |
103 void GenerateStubRegistry(SisRegistryObject* aSisRegistryObject, CSISController* aSisController); |
106 void GenerateStubRegistry(SisRegistryObject* aSisRegistryObject, CSISController* aSisController); |
104 void SetNextIndex(SisRegistryObject& aObj) const; |
107 void SetNextIndex(SisRegistryObject& aObj) const; |
105 std::wstring GetRegistryDir( const std::wstring& aDrivePath, TUint32 aUid ) const; |
108 std::wstring GetRegistryDir( const std::wstring& aDrivePath, TUint32 aUid ) const; |
106 void GenerateRegFile(SisRegistryObject& aObj) const; |
109 void GenerateRegFile(SisRegistryObject& aObj) const; |
107 void GenerateCtlFile(SisRegistryObject& aObj, const SisFile& aSis) const; |
110 void GenerateCtlFile(SisRegistryObject& aObj, const SisFile& aSis) const; |
|
111 void SetRomStubFile(const std::wstring& aRomStubFile); |
108 |
112 |
109 public: |
113 public: |
110 TUint32 GetUid(TUint32 aSid) const; |
114 TUint32 GetUid(TUint32 aSid) const; |
111 TUint32 GetUid(const std::wstring& aSidFile) const; |
115 TUint32 GetUid(const std::wstring& aSidFile) const; |
112 bool GetInRom(TUint32 aUid) const; |
116 bool GetInRom(TUint32 aUid) const; |
142 |
146 |
143 private: // Data members |
147 private: // Data members |
144 std::wstring iCDrive; |
148 std::wstring iCDrive; |
145 TInt iSystemDrive; |
149 TInt iSystemDrive; |
146 CParameterList& iParamList; |
150 CParameterList& iParamList; |
147 RomManager& iRomManager; |
151 RomManager& iRomManager; |
148 ConfigManager& iConfigManager; |
152 ConfigManager& iConfigManager; |
149 EntryMap iEntries; |
153 EntryMap iEntries; |
150 |
154 std::wstring iRomStubFile; |
151 |
155 |
152 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
156 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
153 private: |
157 private: |
154 // internal methods for accessing database |
158 // internal methods for accessing database |
155 void RemovePkgWithScr(TUint32 aUid, bool aSkipRomStub=false); |
159 void RemovePkgWithScr(TUint32 aUid, bool aSkipRomStub=false); |