class Swi::CAsyncLauncher : public CBase |
Installation or removal CAsyncLauncher class.
This class defines an asynchronous API to the software install which is intended to be used by a CActive object running within an active scheduler. CActiveSchedulerThe client needs to wait for the TRequestStatus object passed in to be updated, but MUST do so by using the active scheduler, otherwise the installer will be unable to initiate/process the multiple internal requests which make up an (un)install procedure.
Within a process, all calls must originate from the same thread.
It should be noted by users of this interface that starting an install causes an instance of a "helper" server to be started in process, sharing the same heap as the client process. This may lead to a number of side effects, including the heap being temporarily inbalanced after the client request is completed, due to the delay in the server thread shutting down.
Note that the EEventAbortedInstall and EEventAbortedUnInstall callbacks are no longer generated.
Public Member Functions | |
---|---|
~CAsyncLauncher() | |
void | CancelOperation() |
IMPORT_C void | InstallL(MUiHandler &, const TFileName &, const CInstallPrefs &, TRequestStatus &) |
IMPORT_C void | InstallL(MUiHandler &, MSisDataProvider &, const CInstallPrefs &, TRequestStatus &) |
IMPORT_C void | InstallL(MUiHandler &, RFile &, const CInstallPrefs &, TRequestStatus &) |
IMPORT_C void | InstallL(MUiHandler &, const TFileName &, const CInstallPrefs &, const RArray< TInt > &, TRequestStatus &) |
IMPORT_C void | InstallL(MUiHandler &, RFile &, const CInstallPrefs &, const RArray< TInt > &, TRequestStatus &) |
IMPORT_C void | InstallL(MUiHandler &, MSisDataProvider &, const CInstallPrefs &, const RArray< TInt > &, TRequestStatus &) |
IMPORT_C CAsyncLauncher * | NewL() |
IMPORT_C CAsyncLauncher * | NewLC() |
IMPORT_C void | UninstallL(MUiHandler &, const TUid &, TRequestStatus &) |
IMPORT_C void | UninstallL(MUiHandler &, const CSisRegistryPackage &, TRequestStatus &) |
Private Member Functions | |
---|---|
CAsyncLauncher(const CAsyncLauncher &) | |
CAsyncLauncher() | |
void | DoInstallL(TSisHelperStartParams &, MUiHandler &, const CInstallPrefs &, const RArray< TInt > &, TRequestStatus &) |
TBool | VerifyBusyL(TRequestStatus &) |
const CAsyncLauncher & | operator=(const CAsyncLauncher &) |
Private Attributes | |
---|---|
CUissClientHandler * | iUissClientHandler |
CAsyncLauncher | ( | const CAsyncLauncher & | ) | [private] |
const CAsyncLauncher & |
CAsyncLauncher | ( | ) | [private] |
Constructor for CAsyncLauncher is private - instance can only be created via NewLC or NewL.
void | CancelOperation | ( | ) | [virtual] |
Calling Cancelperation cancels the current operation of Software Install. On cancellation Software Install performs full rollback of the current operation.
Note that the cancellation is asynchronous and its completion will be notified by the completion of the original install/uninstall request (with a status of KErrCancel).
void | DoInstallL | ( | TSisHelperStartParams & | aHelperParams, |
MUiHandler & | aUiHandler, | |||
const CInstallPrefs & | aInstallPrefs, | |||
const RArray< TInt > & | aDeviceSupportedLanguages, | |||
TRequestStatus & | aRequest | |||
) | [private] |
TSisHelperStartParams & aHelperParams | |
MUiHandler & aUiHandler | |
const CInstallPrefs & aInstallPrefs | |
const RArray< TInt > & aDeviceSupportedLanguages | |
TRequestStatus & aRequest |
IMPORT_C void | InstallL | ( | MUiHandler & | aUiHandler, |
const TFileName & | aFileName, | |||
const CInstallPrefs & | aInstallPrefs, | |||
TRequestStatus & | aRequest | |||
) |
Starts software installation in case of a locally available SISX file.
MUiHandler & aUiHandler | UI implementation |
const TFileName & aFileName | Local name of the SISX file |
const CInstallPrefs & aInstallPrefs | Installation preferences |
TRequestStatus & aRequest | Client's CActive object's iStatus |
IMPORT_C void | InstallL | ( | MUiHandler & | aUiHandler, |
MSisDataProvider & | aDataProvider, | |||
const CInstallPrefs & | aInstallPrefs, | |||
TRequestStatus & | aRequest | |||
) |
Starts software installation with package data provided by means of IPC.
MUiHandler & aUiHandler | UI implementation |
MSisDataProvider & aDataProvider | SIS data provider implementation, which may supply data either by reading a file or by streaming |
const CInstallPrefs & aInstallPrefs | Installation preferences |
TRequestStatus & aRequest | Client's CActive object's iStatus |
IMPORT_C void | InstallL | ( | MUiHandler & | aUiHandler, |
RFile & | aFileHandle, | |||
const CInstallPrefs & | aInstallPrefs, | |||
TRequestStatus & | aRequest | |||
) |
Starts software installation with package data provided by means of IPC.
MUiHandler & aUiHandler | UI implementation |
RFile & aFileHandle | File handle of the file to install. |
const CInstallPrefs & aInstallPrefs | Installation preferences |
TRequestStatus & aRequest | Client's CActive object's iStatus |
IMPORT_C void | InstallL | ( | MUiHandler & | aUiHandler, |
const TFileName & | aFileName, | |||
const CInstallPrefs & | aInstallPrefs, | |||
const RArray< TInt > & | aDeviceSupportedLanguages, | |||
TRequestStatus & | aRequest | |||
) |
Starts software installation in case of a locally available SISX file.
MUiHandler & aUiHandler | UI implementation |
const TFileName & aFileName | Local name of the SISX file |
const CInstallPrefs & aInstallPrefs | Installation preferences |
const RArray< TInt > & aDeviceSupportedLanguages | Set of languages which device supports.If the array passed is empty, then the behavior will be same as the InstallL API without aDeviceSupportedLanguages option. |
TRequestStatus & aRequest | Client's CActive object's iStatus |
IMPORT_C void | InstallL | ( | MUiHandler & | aUiHandler, |
RFile & | aFileHandle, | |||
const CInstallPrefs & | aInstallPrefs, | |||
const RArray< TInt > & | aDeviceSupportedLanguages, | |||
TRequestStatus & | aRequest | |||
) |
Starts software installation with package data provided by means of IPC.
MUiHandler & aUiHandler | UI implementation |
RFile & aFileHandle | File handle of the file to install. |
const CInstallPrefs & aInstallPrefs | Installation preferences |
const RArray< TInt > & aDeviceSupportedLanguages | Set of languages which device supports.If the array passed is empty, then the behavior will be same as the InstallL API without aDeviceSupportedLanguages option. |
TRequestStatus & aRequest | Client's CActive object's iStatus |
IMPORT_C void | InstallL | ( | MUiHandler & | aUiHandler, |
MSisDataProvider & | aDataProvider, | |||
const CInstallPrefs & | aInstallPrefs, | |||
const RArray< TInt > & | aDeviceSupportedLanguages, | |||
TRequestStatus & | aRequest | |||
) |
Starts software installation with package data provided by means of IPC.
MUiHandler & aUiHandler | UI implementation |
MSisDataProvider & aDataProvider | SIS data provider implementation, which may supply data either by reading a file or by streaming |
const CInstallPrefs & aInstallPrefs | Installation preferences |
const RArray< TInt > & aDeviceSupportedLanguages | Set of languages which device supports. If the array passed is empty, then the behavior will be same as the InstallL API without aDeviceSupportedLanguages option. |
TRequestStatus & aRequest | Client's CActive object's iStatus |
IMPORT_C CAsyncLauncher * | NewLC | ( | ) | [static] |
Creates a new CAsyncLauncher object and places it on the cleanup stack.
IMPORT_C void | UninstallL | ( | MUiHandler & | aUiHandler, |
const TUid & | aUid, | |||
TRequestStatus & | aRequest | |||
) |
Uninstalls the main package identified by UID, and all the augmentations associated with this package.
MUiHandler & aUiHandler | UI implementation |
const TUid & aUid | UID of the application to remove |
TRequestStatus & aRequest | Client's CActive object's iStatus |
IMPORT_C void | UninstallL | ( | MUiHandler & | aUiHandler, |
const CSisRegistryPackage & | aPackage, | |||
TRequestStatus & | aRequest | |||
) |
Uninstalls a specific package.
MUiHandler & aUiHandler | UI implementation |
const CSisRegistryPackage & aPackage | The specific package to uninstall. |
TRequestStatus & aRequest | Client's CActive object's iStatus |
TBool | VerifyBusyL | ( | TRequestStatus & | aRequest | ) | [private] |
TRequestStatus & aRequest |
const CAsyncLauncher & | operator= | ( | const CAsyncLauncher & | ) | [private] |
const CAsyncLauncher & |
CUissClientHandler * | iUissClientHandler | [private] |
Pointer to our UISS handler.
Owned by this class.
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.