64 |
64 |
65 typedef std::vector<std::wstring> Filenames; |
65 typedef std::vector<std::wstring> Filenames; |
66 |
66 |
67 void SanitiseSISFileAttributes(const InstallSISFile& aInstallSISFile); |
67 void SanitiseSISFileAttributes(const InstallSISFile& aInstallSISFile); |
68 |
68 |
69 void UninstallPkg(const SisFile& aSis, const bool aGenerateRomStub); // Uninstall the same package (if found) |
69 void UninstallPkg(const SisFile& aSis); // Uninstall the same package (if found) |
70 // prior to installation |
70 // prior to installation |
71 |
71 |
72 bool DependenciesOk(const SisFile& aFile); // Check to see if the sis file |
72 bool DependenciesOk(const SisFile& aFile); // Check to see if the sis file |
73 // meets it's dependencies |
73 // meets it's dependencies |
74 |
74 |
75 bool IsValidUpgrade(const SisFile& aFile, bool aSUFlag, bool aNonRemovable, bool aGenerateRomStub); // Check to see if this is a valid upgrade |
75 bool IsValidUpgrade(const SisFile& aFile, bool aSUFlag, bool aNonRemovable); // Check to see if this is a valid upgrade |
76 // to the existing packages |
76 // to the existing packages |
77 void ValidateRegistry(const SisFile& aFile, TUint32 aPckgUid, TUint32 aInstallFlags, |
77 void ValidateRegistry(const SisFile& aFile, TUint32 aPckgUid, TUint32 aInstallFlags, bool aRUFlag, bool aNonRemovable); |
78 bool aRUFlag, bool aNonRemovable, bool aGenerateRomStub); |
|
79 void InitializeRegistryDetails ( const TUint32 aPckgUid, bool& aIsBaseRemovable, bool& aInRom, bool& aIsPreInstalled, TUint32& aUid, std::wstring& aPackageName ); |
78 void InitializeRegistryDetails ( const TUint32 aPckgUid, bool& aIsBaseRemovable, bool& aInRom, bool& aIsPreInstalled, TUint32& aUid, std::wstring& aPackageName ); |
80 |
79 |
81 |
80 |
82 bool GetInstallableFiles( |
81 bool GetInstallableFiles( |
83 const SisFile& aFile, InstallableFiles& aList, ExpressionEvaluator& aEvaluator, |
82 const SisFile& aFile, InstallableFiles& aList, ExpressionEvaluator& aEvaluator, int aInstallingDrive); |
84 int aInstallingDrive, const int aSystemDrive, const bool aGenerateRomStub); |
|
85 |
83 |
86 void InstallFiles(const InstallableFiles& aList, int aInstallDrive, const bool aGenerateRomStub); // Retrieves the list of files |
84 void InstallFiles(const InstallableFiles& aList, const int aInstallDrive); // Retrieves the list of files |
87 // to install from the sis file |
85 // to install from the sis file |
88 |
86 |
89 static void Install(const InstallableFile& aFile); |
87 static void Install(const InstallableFile& aFile); |
90 |
88 |
91 void UpdateRegistry(const SisFile& aFile, const InstallableFiles& aInstalled, // Update the registry entries for |
89 void UpdateRegistry(const SisFile& aFile, const InstallableFiles& aInstalled, // Update the registry entries for |
106 const SisRegistry& aSisRegistry, |
104 const SisRegistry& aSisRegistry, |
107 RomManager& aRomManager ); |
105 RomManager& aRomManager ); |
108 |
106 |
109 void CreateStubSisFile(const InstallSISFile& aInstallSISFile, SisFile& aSis); |
107 void CreateStubSisFile(const InstallSISFile& aInstallSISFile, SisFile& aSis); |
110 |
108 |
111 void CreateRomStubSisFile(const InstallSISFile& aInstallSISFile, SisFile& aSis); |
|
112 |
|
113 // Eclipsing check methods |
109 // Eclipsing check methods |
114 void PrepareEclipsableFilesList(const SisFile& aSis); |
110 void PrepareEclipsableFilesList(const SisFile& aSis); |
115 bool IsValidEclipsingUpgrade(const SisFile& aSis, const SisRegistryObject& registryEntry); |
111 bool IsValidEclipsingUpgrade(const SisFile& aSis, const SisRegistryObject& registryEntry); |
116 bool ValidEclipse(const SisFile& aFile, const std::wstring& target, const InstallableFile& aInstallableFile, bool aSUFlag); |
112 bool ValidEclipse(const SisFile& aFile, const std::wstring& target, const InstallableFile& aInstallableFile, bool aSUFlag); |
117 void HandleFileOverwriting(const SisFile& aFile, const std::wstring& target, bool aSUFlag); |
113 void HandleFileOverwriting(const SisFile& aFile, const std::wstring& target, bool aSUFlag); |
118 void HandleRomFileOverwriting(const SisFile& aFile, const std::wstring& target); |
|
119 #ifndef __TOOLS2_LINUX__ |
|
120 bool IsEclipsable(std::wstring& aRomFile, bool aSUFlag); |
114 bool IsEclipsable(std::wstring& aRomFile, bool aSUFlag); |
121 #else |
|
122 bool IsEclipsable(std::wstring& aRomFile, bool aSUFlag, const std::wstring& aDrivePath); |
|
123 #endif |
|
124 void FilterNonBlockingFilesOfFilename(const SisFile& aFile, const std::wstring& target); |
115 void FilterNonBlockingFilesOfFilename(const SisFile& aFile, const std::wstring& target); |
125 void WarnEclipseOverWrite(const SisFile& aFile); |
116 void WarnEclipseOverWrite(const SisFile& aFile); |
126 |
117 |
127 void ProcessConditionalBlockWarnings(const CSISInstallBlock& aInstallBlock, |
118 void ProcessConditionalBlockWarnings(const CSISInstallBlock& aInstallBlock, |
128 ExpressionEvaluator& aEvaluator, |
119 ExpressionEvaluator& aEvaluator, |