class Swi::CApplication : public CBase |
Container class for an application that is going to be installed.
Private Member Functions | |
---|---|
CApplication () | |
void | ConstructL () |
Public Member Enumerations | |
---|---|
enum |
TFlags
{
EUpgrade = 1, EUninstall = 2, EInstall = 4, EAugmentation = 8, EPreInstalled = 16, EPartialUpgrade = 32, EPreInstalledApp = 64, EPreInstalledPatch = 128, EInRom = 256, EInstallSuCertBased = 512 } |
Public Attributes | |
---|---|
const TInt | KInstallFlags |
IMPORT_C void | AddEmbeddedApplicationL | ( | CApplication * | aApplication | ) |
Adds an embedded Application object to class
CApplication * aApplication | - Embedded Application to add to class |
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.
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be added |
TChar aDrive | The drive where the file will be installed |
IMPORT_C void | AddFileL | ( | const CSisRegistryFileDescription & | aFileDescription | ) |
Add a file to the list of files that need to be added during the installation, removed during uninstallation.
const CSisRegistryFileDescription & aFileDescription | Description of the file which needs to be added |
IMPORT_C void | AddPropertyL | ( | const TProperty & | aProperty | ) |
Adds a property which will need to be added
const TProperty & aProperty | The property to be added. |
IMPORT_C void | AddSisStubFileL | ( | const CSisRegistryFileDescription & | aFileDescription | ) |
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
const CSisRegistryFileDescription & aFileDescription | Description of the SIS stub file that needs to be added |
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)
IMPORT_C const Sis::CController & | ControllerL | ( | ) | const |
IMPORT_C void | CopyDeviceSupportedLanguagesL | ( | const RArray < TInt > & | aDeviceSupportedLanguages | ) |
Copies the device supported languages
IMPORT_C void | DisplayFileOnInstallL | ( | const Sis::CFileDescription & | aFileDescription, |
TChar | aDrive | |||
) |
Add files which need to be displayed during the installation.
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be displayed |
TChar aDrive |
IMPORT_C void | DisplayFileOnUninstallL | ( | const CSisRegistryFileDescription & | aFileName | ) |
Add files which need to be displayed during the uninstallation.
const CSisRegistryFileDescription & aFileName |
IMPORT_C const RPointerArray < CApplication > & | EmbeddedApplications | ( | ) | const |
IMPORT_C const RPointerArray < CSisRegistryFileDescription > & | FilesToAdd | ( | ) | const |
Accessor for the array of files to add during the installation
IMPORT_C const RPointerArray < CSisRegistryFileDescription > & | FilesToDisplayOnInstall | ( | ) | const |
Accessor for the array of files to display during the installation
IMPORT_C const RPointerArray < CSisRegistryFileDescription > & | FilesToDisplayOnUninstall | ( | ) | const |
Accessor for the array of files to display during the uninstallation
IMPORT_C const RPointerArray < CSisRegistryFileDescription > & | FilesToRemove | ( | ) | const |
Accessor for the array of files to remove during the installation
IMPORT_C const RPointerArray < CSisRegistryFileDescription > & | FilesToRunOnInstall | ( | ) | const |
Accessor for the array of files to run during the installation
IMPORT_C const RPointerArray < CSisRegistryFileDescription > & | FilesToRunOnUninstall | ( | ) | const |
Accessor for the array of files to run during the uninstallation
IMPORT_C const RPointerArray < CSisRegistryFileDescription > & | FilesToSkipOnInstall | ( | ) | const |
Accessor for the array of files to skip during the installation
const RArray < TInt > & | GetDeviceSupportedLanguages | ( | void | ) | [inline] |
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
void |
IMPORT_C TBool | IsDeviceMatchingLanguage | ( | TInt | alangId | ) | const |
Return flag indicating whether there is a language match(Exact match) or not.
TInt alangId | - language id |
TBool | IsDeviceSupportedLanguages | ( | ) | const [inline] |
Return the device supported language flag
IMPORT_C TBool | IsDrmProtected | ( | ) | const |
Get the DRM protection status of the package.
IMPORT_C CApplication * | NewLC | ( | ) | [static] |
This creates a new CApplication object and leaves it in the cleanup stack
IMPORT_C void | PopulateMatchingDeviceLanguagesL | ( | TInt | aLanguageId | ) |
Adds the matching language ID's on to languages Array
TInt aLanguageId |
IMPORT_C const RArray < TProperty > & | Properties | ( | ) | const |
Returns the list of properties associated with the application.
IMPORT_C void | RemoveFileL | ( | const CSisRegistryFileDescription & | aFileName | ) |
Add file to the list of files that need to be removed during the installation.
const CSisRegistryFileDescription & aFileName |
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.
const TDesC & aFileName | Name of file which needs to be removed |
IMPORT_C void | RunFileOnInstallL | ( | const Sis::CFileDescription & | aFileDescription, |
TChar | aDrive | |||
) |
Add files which need to be run during the installation.
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be run |
TChar aDrive |
IMPORT_C void | RunFileOnUninstallL | ( | const CSisRegistryFileDescription & | aFileName | ) |
Add files which need to be run during the uninstallation.
const CSisRegistryFileDescription & aFileName |
void | SetAbsoluteDataIndex | ( | TInt | aDataIndex | ) | [inline] |
TInt aDataIndex |
IMPORT_C void | SetAugmentation | ( | const Sis::CController & | aController | ) |
Informs the class, the Application is an augmentation
const Sis::CController & aController |
IMPORT_C void | SetController | ( | TUid | aUid | ) |
Sets the uid
TUid aUid | The Uid of the app |
IMPORT_C void | SetController | ( | const Sis::CController & | aController | ) |
Sets the controller
const Sis::CController & aController | - Signed contoller of app to install |
void | SetDeletablePreinstalled | ( | TBool | aDeletablePreinstalled | ) | [inline] |
TBool aDeletablePreinstalled |
void | SetDeviceSupportedLanguages | ( | const TBool | aIsDeviceSupportedLanguages | ) | [inline] |
Sets the device supported language flag
const TBool aIsDeviceSupportedLanguages |
IMPORT_C void | SetDrmProtected | ( | TBool | aIsDrmProtected | ) |
Set the DRM protection status of the package.
TBool aIsDrmProtected | ETrue if the package is DRM protected. EFalse otherwise. |
IMPORT_C void | SetInROM | ( | void | ) |
Informs the class, the Application is in ROM
void |
IMPORT_C void | SetInstall | ( | const Sis::CController & | aController | ) |
Informs the class, the Application is an install
const Sis::CController & aController |
IMPORT_C void | SetInstallSuCertBased | ( | ) |
Informs the class, the Application is allowed to install based on SU Cert rules
void | SetLanguageMatch | ( | const TBool | aIsLanguageMatch | ) | [inline] |
Sets the language match flag
const TBool aIsLanguageMatch |
IMPORT_C void | SetPackageL | ( | const CSisRegistryPackage & | aPackage | ) |
const CSisRegistryPackage & aPackage |
IMPORT_C void | SetPartialUpgrade | ( | const Sis::CController & | aController | ) |
Informs the class, the Application is a partial upgrade
const Sis::CController & aController |
IMPORT_C void | SetPreInstalledApp | ( | const Sis::CController & | aController | ) |
Informs the class that the application is a preinstalled app and sets the controller.
const Sis::CController & aController | - Identifies the application's controller. |
IMPORT_C void | SetPreInstalledApp | ( | ) |
Informs the class that the application is a preinstalled app.
IMPORT_C void | SetPreInstalledPatch | ( | const Sis::CController & | aController | ) |
Informs the class that the application is a preinstalled patch and sets the controller.
const Sis::CController & aController | - Identifies the application's controller. |
IMPORT_C void | SetPreInstalledPatch | ( | ) |
Informs the class that the application is a preinstalled patch
void | SetShutdownAllApps | ( | TBool | aShutdown | ) | [inline] |
TBool aShutdown |
IMPORT_C void | SetSisHelper | ( | const RSisHelper & | aSisHelper | ) |
Sets the sishelper
const RSisHelper & aSisHelper | - handle to sishelper |
IMPORT_C void | SetUninstallL | ( | const CSisRegistryPackage & | aPackage | ) |
Informs the class, the Application is a removal
const CSisRegistryPackage & aPackage |
IMPORT_C void | SetUpgrade | ( | const Sis::CController & | aController | ) |
Informs the class, the Application is an upgrade
const Sis::CController & aController |
IMPORT_C void | SkipFileOnInstallL | ( | const Sis::CFileDescription & | aFileDescription, |
TChar | aDrive | |||
) |
Add files which may be skipped during the installation.
const Sis::CFileDescription & aFileDescription | Description of the file which needs to be skipped |
TChar aDrive |
IMPORT_C TChar | StubDrive | ( | ) | const |
Returns the drive that the package should be propagated to.
TSisPackageTrust | Trust | ( | ) | const [inline] |
This is replaced by the TSisTrustStatus object in the SisController.
EUpgrade = 1 | |
EUninstall = 2 | |
EInstall = 4 | |
EAugmentation = 8 | |
EPreInstalled = 16 | |
EPartialUpgrade = 32 | |
EPreInstalledApp = 64 | |
EPreInstalledPatch = 128 | |
EInRom = 256 | |
EInstallSuCertBased = 512 |
TBool | iCanPropagate | [private] |
Member variables needed to determine if it is permitted to propagate this package as a stub
const Sis::CController * | iController | [private] |
The signed contoller of the application
RPointerArray < CApplication > | iEmbeddedApplications | [private] |
List of applications that are embedded in this one
RPointerArray < CSisRegistryFileDescription > | iFilesToAdd | [private] |
List of files to install
RPointerArray < CSisRegistryFileDescription > | iFilesToDisplayOnInstall | [private] |
RPointerArray < CSisRegistryFileDescription > | iFilesToDisplayOnUninstall | [private] |
RPointerArray < CSisRegistryFileDescription > | iFilesToRemove | [private] |
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 | [private] |
RPointerArray < CSisRegistryFileDescription > | iFilesToRunOnUninstall | [private] |
RPointerArray < CSisRegistryFileDescription > | iFilesToSkipOnInstall | [private] |
RArray < TProperty > | iProperties | [private] |
Properties associated with this application. The registry needs to add these to it's records.
TBool | iShutdown | [private] |
ETrue if all running applications should be shutdown on install and uninstall. EFalse otherwise.
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.