Swi::CApplication Class Reference
class Swi::CApplication : public CBase |
Container class for an application that is going to be installed.
Nested Classes and Structures
Constructor & Destructor Documentation
Member Functions Documentation
AbsoluteDataIndex()
TInt
| AbsoluteDataIndex | ( | ) | const [inline] |
AddEmbeddedApplicationL(CApplication *)
IMPORT_C void | AddEmbeddedApplicationL | ( | CApplication * | aApplication | ) | |
Adds an embedded Application object to class
Parameters
CApplication * aApplication | - Embedded Application to add to class |
AddFileL(const Sis::CFileDescription &, TChar)
IMPORT_C void | AddFileL | ( | const Sis::CFileDescription & | aFileDescription, |
| TChar | aDrive |
| ) | |
Add a file to the list of files that need to be added during the installation, removed during uninstallation.
Parameters
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be added |
TChar aDrive | The drive where the file will be installed |
AddFileL(const CSisRegistryFileDescription &)
Add a file to the list of files that need to be added during the installation, removed during uninstallation.
AddPropertyL(const TProperty &)
IMPORT_C void | AddPropertyL | ( | const TProperty & | aProperty | ) | |
Adds a property which will need to be added
Parameters
const TProperty & aProperty | The property to be added. |
AddSisStubFileL(const CSisRegistryFileDescription &)
Add the file description for a removable media SIS stub file generated during this installation. This allows the SIS stub to be removed during an uninstallation
CanPropagate()
IMPORT_C TBool | CanPropagate | ( | ) | const |
Returns if the package is currently allowed to be propagated as a SIS stub (this means it has at least one file description and all the files are on the same drive)
ConstructL()
void | ConstructL | ( | ) | [private] |
ControllerL()
-
leave
- KErrGeneral The application is an uninstall and doesn't have a controller
CopyDeviceSupportedLanguagesL(const RArray< TInt > &)
IMPORT_C void | CopyDeviceSupportedLanguagesL | ( | const RArray< TInt > & | aDeviceSupportedLanguages | ) | |
Copies the device supported languages
DisplayFileOnInstallL(const Sis::CFileDescription &, TChar)
IMPORT_C void | DisplayFileOnInstallL | ( | const Sis::CFileDescription & | aFileDescription, |
| TChar | aDrive |
| ) | |
Add files which need to be displayed during the installation.
Parameters
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be displayed |
TChar aDrive | |
DisplayFileOnUninstallL(const CSisRegistryFileDescription &)
Add files which need to be displayed during the uninstallation.
FilesToAdd()
Accessor for the array of files to add during the installation
FilesToDisplayOnInstall()
Accessor for the array of files to display during the installation
FilesToDisplayOnUninstall()
Accessor for the array of files to display during the uninstallation
FilesToRemove()
Accessor for the array of files to remove during the installation
FilesToRunOnInstall()
Accessor for the array of files to run during the installation
FilesToRunOnUninstall()
Accessor for the array of files to run during the uninstallation
FilesToSkipOnInstall()
Accessor for the array of files to skip during the installation
GetDeviceSupportedLanguages(void)
const RArray< TInt > & | GetDeviceSupportedLanguages | ( | void | | ) | [inline] |
GetMatchingDeviceLanguages(void)
IMPORT_C const RArray< TInt > & | GetMatchingDeviceLanguages | ( | void | | ) | |
Return RArray containing list of language ID's that are present in both device supported languages and with SUPPORTED_LANGUAGE token used in PKG file
GetSisHelper()
IMPORT_C RSisHelper & | GetSisHelper | ( | ) | |
IsAugmentation()
IMPORT_C TBool | IsAugmentation | ( | ) | const |
IsDeletablePreinstalled()
TBool
| IsDeletablePreinstalled | ( | ) | const [inline] |
IsDeviceMatchingLanguage(TInt)
IMPORT_C TBool | IsDeviceMatchingLanguage | ( | TInt | alangId | ) | const |
Return flag indicating whether there is a language match(Exact match) or not.
Parameters
TInt alangId | - language id |
IsDeviceSupportedLanguages()
TBool
| IsDeviceSupportedLanguages | ( | ) | const [inline] |
Return the device supported language flag
IsDrmProtected()
IMPORT_C TBool | IsDrmProtected | ( | ) | const |
Get the DRM protection status of the package.
IsInROM(void)
IMPORT_C TBool | IsInROM | ( | void | | ) | const |
IsInstall(void)
IMPORT_C TBool | IsInstall | ( | void | | ) | const |
IsInstallSuCertBased()
IMPORT_C TBool | IsInstallSuCertBased | ( | ) | const |
IsLanguageMatch()
TBool
| IsLanguageMatch | ( | ) | const [inline] |
Return the language match flag
IsPartialUpgrade()
IMPORT_C TBool | IsPartialUpgrade | ( | ) | const |
IsPreInstalledApp()
IMPORT_C TBool | IsPreInstalledApp | ( | ) | const |
IsPreInstalledPatch()
IMPORT_C TBool | IsPreInstalledPatch | ( | ) | const |
IsStub()
TBool
| IsStub | ( | ) | const [inline] |
IsUninstall()
IMPORT_C TBool | IsUninstall | ( | ) | const |
IsUpgrade()
IMPORT_C TBool | IsUpgrade | ( | ) | const |
NewLC()
This creates a new CApplication object and leaves it in the cleanup stack
PopulateMatchingDeviceLanguagesL(TInt)
IMPORT_C void | PopulateMatchingDeviceLanguagesL | ( | TInt | aLanguageId | ) | |
Adds the matching language ID's on to languages Array
Properties()
Returns the list of properties associated with the application.
RemoveFileL(const CSisRegistryFileDescription &)
Add file to the list of files that need to be removed during the installation.
RemoveFileL(const TDesC &)
IMPORT_C void | RemoveFileL | ( | const TDesC & | aFileName | ) | |
Add file to the list of files that need to be removed during the installation. This is used for a file which is not actually part of an existing registry entry.
Parameters
const TDesC & aFileName | Name of file which needs to be removed |
RunFileOnInstallL(const Sis::CFileDescription &, TChar)
IMPORT_C void | RunFileOnInstallL | ( | const Sis::CFileDescription & | aFileDescription, |
| TChar | aDrive |
| ) | |
Add files which need to be run during the installation.
Parameters
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be run |
TChar aDrive | |
RunFileOnUninstallL(const CSisRegistryFileDescription &)
Add files which need to be run during the uninstallation.
SetAbsoluteDataIndex(TInt)
void | SetAbsoluteDataIndex | ( | TInt | aDataIndex | ) | [inline] |
SetAugmentation(const Sis::CController &)
Informs the class, the Application is an augmentation
SetController(TUid)
IMPORT_C void | SetController | ( | TUid | aUid | ) | |
Parameters
TUid aUid | The Uid of the app |
SetController(const Sis::CController &)
SetDeletablePreinstalled(TBool)
void | SetDeletablePreinstalled | ( | TBool | aDeletablePreinstalled | ) | [inline] |
Parameters
TBool aDeletablePreinstalled | |
SetDeviceSupportedLanguages(const TBool)
void | SetDeviceSupportedLanguages | ( | const TBool | aIsDeviceSupportedLanguages | ) | [inline] |
Sets the device supported language flag
Parameters
const TBool aIsDeviceSupportedLanguages | |
SetDrmProtected(TBool)
IMPORT_C void | SetDrmProtected | ( | TBool | aIsDrmProtected | ) | |
Set the DRM protection status of the package.
Parameters
TBool aIsDrmProtected | ETrue if the package is DRM protected. EFalse otherwise. |
SetInROM(void)
IMPORT_C void | SetInROM | ( | void | | ) | |
Informs the class, the Application is in ROM
SetInstall(const Sis::CController &)
Informs the class, the Application is an install
SetInstallSuCertBased()
IMPORT_C void | SetInstallSuCertBased | ( | ) | |
Informs the class, the Application is allowed to install based on SU Cert rules
SetLanguageMatch(const TBool)
void | SetLanguageMatch | ( | const TBool | aIsLanguageMatch | ) | [inline] |
Sets the language match flag
Parameters
const TBool aIsLanguageMatch | |
SetPackageL(const CSisRegistryPackage &)
SetPartialUpgrade(const Sis::CController &)
Informs the class, the Application is a partial upgrade
SetPreInstalledApp(const Sis::CController &)
Informs the class that the application is a preinstalled app and sets the controller.
SetPreInstalledApp()
IMPORT_C void | SetPreInstalledApp | ( | ) | |
Informs the class that the application is a preinstalled app.
SetPreInstalledPatch(const Sis::CController &)
Informs the class that the application is a preinstalled patch and sets the controller.
SetPreInstalledPatch()
IMPORT_C void | SetPreInstalledPatch | ( | ) | |
Informs the class that the application is a preinstalled patch
SetShutdownAllApps(TBool)
void | SetShutdownAllApps | ( | TBool | aShutdown | ) | [inline] |
SetSisHelper(const RSisHelper &)
IMPORT_C void | SetSisHelper | ( | const RSisHelper & | aSisHelper | ) | |
Parameters
const RSisHelper & aSisHelper | - handle to sishelper |
SetStub(TBool)
void | SetStub | ( | TBool | aIsStub | ) | [inline] |
SetUninstallL(const CSisRegistryPackage &)
Informs the class, the Application is a removal
SetUpgrade(const Sis::CController &)
Informs the class, the Application is an upgrade
ShutdownAllApps()
TBool
| ShutdownAllApps | ( | ) | const [inline] |
SkipFileOnInstallL(const Sis::CFileDescription &, TChar)
IMPORT_C void | SkipFileOnInstallL | ( | const Sis::CFileDescription & | aFileDescription, |
| TChar | aDrive |
| ) | |
Add files which may be skipped during the installation.
Parameters
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be skipped |
TChar aDrive | |
StubDrive()
IMPORT_C TChar | StubDrive | ( | ) | const |
Returns the drive that the package should be propagated to.
Member Enumerations Documentation
Enum TFlags
Enumerators
EUpgrade = 1 | |
EUninstall = 2 | |
EInstall = 4 | |
EAugmentation = 8 | |
EPreInstalled = 16 | |
EPartialUpgrade = 32 | |
EPreInstalledApp = 64 | |
EPreInstalledPatch = 128 | |
EInRom = 256 | |
EInstallSuCertBased = 512 | |
Member Data Documentation
const TInt KInstallFlags
const TInt | KInstallFlags | [static] |
TInt
iAbsoluteDataIndex
TInt
| iAbsoluteDataIndex | [private] |
TBool
iCanPropagate
TBool
| iCanPropagate | [private] |
Member variables needed to determine if it is permitted to propagate this package as a stub
const Sis::CController * iController
The signed contoller of the application
TBool
iDeletablePreinstalled
TBool
| iDeletablePreinstalled | [private] |
RArray< TInt > iDeviceSupportedLanguages
RPointerArray< CApplication > iEmbeddedApplications
List of applications that are embedded in this one
RPointerArray< CSisRegistryFileDescription > iFilesToAdd
RPointerArray< CSisRegistryFileDescription > iFilesToDisplayOnInstall
RPointerArray< CSisRegistryFileDescription > iFilesToDisplayOnUninstall
RPointerArray< CSisRegistryFileDescription > iFilesToRemove
List of existing file (for partial upgrade), that need backing up and placing back into install directory once upgrade is completed. i.e. user data files
RPointerArray< CSisRegistryFileDescription > iFilesToRunOnInstall
RPointerArray< CSisRegistryFileDescription > iFilesToRunOnUninstall
RPointerArray< CSisRegistryFileDescription > iFilesToSkipOnInstall
TBool
iHasDeviceSupportedLanguages
TBool
| iHasDeviceSupportedLanguages | [private] |
TBool
iHasMatchingLanguages
TBool
| iHasMatchingLanguages | [private] |
RArray< TInt > iMatchingDeviceLanguages
CSisRegistryPackage * iPackage
TChar
iPropagateDrive
TChar
| iPropagateDrive | [private] |
RArray< TProperty > iProperties
Properties associated with this application. The registry needs to add these to it's records.
TBool
iShutdown
ETrue if all running applications should be shutdown on install and uninstall. EFalse otherwise.
const RSisHelper * iSisHelper
const RSisHelper * | iSisHelper | [private] |
CUserSelections * iUserSelections
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.