#include <swinstapi.h>
Inheritance diagram for SwiUI::RSWInstLauncher:
Public Member Functions | |
IMPORT_C | RSWInstLauncher () |
IMPORT_C TInt | Connect () |
IMPORT_C void | Close () |
IMPORT_C TInt | Install (const TDesC &aFileName) |
IMPORT_C void | Install (TRequestStatus &aReqStatus, const TDesC &aFileName) |
IMPORT_C TInt | Install (RFile &aFile) |
IMPORT_C void | Install (TRequestStatus &aReqStatus, RFile &aFile) |
IMPORT_C TInt | Install (const TDesC &aFileName, const TDesC8 &aParams) |
IMPORT_C void | Install (TRequestStatus &aReqStatus, const TDesC &aFileName, const TDesC8 &aParams) |
IMPORT_C TInt | Install (RFile &aFile, const TDesC8 &aParams) |
IMPORT_C void | Install (TRequestStatus &aReqStatus, RFile &aFile, const TDesC8 &aParams) |
IMPORT_C TInt | SilentInstall (const TDesC &aFileName, const TDesC8 &aOptions) |
IMPORT_C void | SilentInstall (TRequestStatus &aReqStatus, const TDesC &aFileName, const TDesC8 &aOptions) |
IMPORT_C TInt | SilentInstall (RFile &aFile, const TDesC8 &aOptions) |
IMPORT_C void | SilentInstall (TRequestStatus &aReqStatus, RFile &aFile, const TDesC8 &aOptions) |
IMPORT_C TInt | SilentInstall (const TDesC &aFileName, const TDesC8 &aParams, const TDesC8 &aOptions) |
IMPORT_C void | SilentInstall (TRequestStatus &aReqStatus, const TDesC &aFileName, const TDesC8 &aParams, const TDesC8 &aOptions) |
IMPORT_C TInt | SilentInstall (RFile &aFile, const TDesC8 &aParams, const TDesC8 &aOptions) |
IMPORT_C void | SilentInstall (TRequestStatus &aReqStatus, RFile &aFile, const TDesC8 &aParams, const TDesC8 &aOptions) |
IMPORT_C TInt | Uninstall (const TUid &aUid, const TDesC8 &aMIME) |
IMPORT_C void | Uninstall (TRequestStatus &aReqStatus, const TUid &aUid, const TDesC8 &aMIME) |
IMPORT_C TInt | SilentUninstall (const TUid &aUid, const TDesC8 &aOptions, const TDesC8 &aMIME) |
IMPORT_C void | SilentUninstall (TRequestStatus &aReqStatus, const TUid &aUid, const TDesC8 &aOptions, const TDesC8 &aMIME) |
IMPORT_C TInt | CancelAsyncRequest (TInt aReqToCancel) |
IMPORT_C CErrDetails * | GetLastErrorL () |
IMPORT_C TInt | CustomUninstall (TOperation aOperation, const TDesC8 &aParams, const TDesC8 &aMIME) |
IMPORT_C void | CustomUninstall (TRequestStatus &aReqStatus, TOperation aOperation, const TDesC8 &aParams, const TDesC8 &aMIME) |
IMPORT_C TInt | SilentCustomUninstall (TOperation aOperation, const TDesC8 &aOptions, const TDesC8 &aParams, const TDesC8 &aMIME) |
IMPORT_C void | SilentCustomUninstall (TRequestStatus &aReqStatus, TOperation aOperation, const TDesC8 &aOptions, const TDesC8 &aParams, const TDesC8 &aMIME) |
Protected Member Functions | |
void | PanicClient (TInt aPanic) const |
Protected Attributes | |
TBool | iConnected |
swinst.lib
Definition at line 46 of file swinstapi.h.
IMPORT_C SwiUI::RSWInstLauncher::RSWInstLauncher | ( | ) |
Constructor.
IMPORT_C TInt SwiUI::RSWInstLauncher::Connect | ( | ) |
Creates connection to the server. This will launch the installer as server application.
Reimplemented in SwiUI::RSWInstSilentLauncher.
IMPORT_C void SwiUI::RSWInstLauncher::Close | ( | ) |
Closes the connection to the server and close the installer server application.
IMPORT_C TInt SwiUI::RSWInstLauncher::Install | ( | const TDesC & | aFileName | ) |
Start Installation of the package. The call will return when the installation if over.
aFileName | - Path to the installation package |
IMPORT_C void SwiUI::RSWInstLauncher::Install | ( | TRequestStatus & | aReqStatus, | |
const TDesC & | aFileName | |||
) |
Asynchronous version. The aReqStatus will be completed when installation is finished. To cancel the request, use CancelAsyncRequest with ERequestInstall.
IMPORT_C TInt SwiUI::RSWInstLauncher::Install | ( | RFile & | aFile | ) |
Start Installation of the package
aFile | - Handle to the installation package. |
IMPORT_C void SwiUI::RSWInstLauncher::Install | ( | TRequestStatus & | aReqStatus, | |
RFile & | aFile | |||
) |
Asynchronous version. To cancel the request, use CancelAsyncRequest with ERequestInstall.
IMPORT_C TInt SwiUI::RSWInstLauncher::Install | ( | const TDesC & | aFileName, | |
const TDesC8 & | aParams | |||
) |
Start Installation of the package
aFileName | - Path to the installation package | |
aParams | - Installer parameters. Use TInstallReqPckg to package. |
IMPORT_C void SwiUI::RSWInstLauncher::Install | ( | TRequestStatus & | aReqStatus, | |
const TDesC & | aFileName, | |||
const TDesC8 & | aParams | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestInstallParams.
IMPORT_C TInt SwiUI::RSWInstLauncher::Install | ( | RFile & | aFile, | |
const TDesC8 & | aParams | |||
) |
Start Installation of the package
aFile | - Handle to the installation package. | |
aParams | - Installer parameters. Use TInstallReqPckg to package. |
IMPORT_C void SwiUI::RSWInstLauncher::Install | ( | TRequestStatus & | aReqStatus, | |
RFile & | aFile, | |||
const TDesC8 & | aParams | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestInstallParams.
IMPORT_C TInt SwiUI::RSWInstLauncher::SilentInstall | ( | const TDesC & | aFileName, | |
const TDesC8 & | aOptions | |||
) |
Start silent installation of the package (client must have TrustedUI capabilities)
aFileName | - Path to the installation package | |
aOptions | - Default options for installation. Use TInstallOptionsPckg to package. |
IMPORT_C void SwiUI::RSWInstLauncher::SilentInstall | ( | TRequestStatus & | aReqStatus, | |
const TDesC & | aFileName, | |||
const TDesC8 & | aOptions | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestSilentInstall.
IMPORT_C TInt SwiUI::RSWInstLauncher::SilentInstall | ( | RFile & | aFile, | |
const TDesC8 & | aOptions | |||
) |
Start silent installation of the package (client must have TrustedUI capabilities)
aFile | - Handle to the installation package. | |
aOptions | - Default options for installation. Use TInstallOptionsPckg to package. |
IMPORT_C void SwiUI::RSWInstLauncher::SilentInstall | ( | TRequestStatus & | aReqStatus, | |
RFile & | aFile, | |||
const TDesC8 & | aOptions | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestSilentInstall.
IMPORT_C TInt SwiUI::RSWInstLauncher::SilentInstall | ( | const TDesC & | aFileName, | |
const TDesC8 & | aParams, | |||
const TDesC8 & | aOptions | |||
) |
Start silent installation of the package (client must have TrustedUI capabilities)
aFileName | - Path to the installation package | |
aParams | - Installer parameters. Use TInstallReqPckg to package. | |
aOptions | - Default options for installation. Use TInstallOptionsPckg to package. |
IMPORT_C void SwiUI::RSWInstLauncher::SilentInstall | ( | TRequestStatus & | aReqStatus, | |
const TDesC & | aFileName, | |||
const TDesC8 & | aParams, | |||
const TDesC8 & | aOptions | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestSilentInstallParams.
IMPORT_C TInt SwiUI::RSWInstLauncher::SilentInstall | ( | RFile & | aFile, | |
const TDesC8 & | aParams, | |||
const TDesC8 & | aOptions | |||
) |
Start silent installation of the package (client must have TrustedUI capabilities)
aFile | - Handle to the installation package. | |
aParams | - Installer parameters. Use TInstallReqPckg to package. | |
aOptions | - Default options for installation. Use TInstallOptionsPckg to package. |
IMPORT_C void SwiUI::RSWInstLauncher::SilentInstall | ( | TRequestStatus & | aReqStatus, | |
RFile & | aFile, | |||
const TDesC8 & | aParams, | |||
const TDesC8 & | aOptions | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestSilentInstallParams.
IMPORT_C TInt SwiUI::RSWInstLauncher::Uninstall | ( | const TUid & | aUid, | |
const TDesC8 & | aMIME | |||
) |
Start UnInstallation of the package
aUid | - uid of the installed package | |
aMIME | - Data type of the package to be uninstalled. |
IMPORT_C void SwiUI::RSWInstLauncher::Uninstall | ( | TRequestStatus & | aReqStatus, | |
const TUid & | aUid, | |||
const TDesC8 & | aMIME | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestUninstall.
IMPORT_C TInt SwiUI::RSWInstLauncher::SilentUninstall | ( | const TUid & | aUid, | |
const TDesC8 & | aOptions, | |||
const TDesC8 & | aMIME | |||
) |
Start silent UnInstallation of the package, (client must have TrustedUI capabilities)
aUid | - uid of the installed package | |
aOptions | - Default options for uninstallation. Use TUninstallOptionsPckg to package. | |
aMIME | - Data type of the package to be uninstalled. |
IMPORT_C void SwiUI::RSWInstLauncher::SilentUninstall | ( | TRequestStatus & | aReqStatus, | |
const TUid & | aUid, | |||
const TDesC8 & | aOptions, | |||
const TDesC8 & | aMIME | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestSilentUninstall.
IMPORT_C TInt SwiUI::RSWInstLauncher::CancelAsyncRequest | ( | TInt | aReqToCancel | ) |
Cancel Asynchronous requests
IMPORT_C CErrDetails* SwiUI::RSWInstLauncher::GetLastErrorL | ( | ) |
IMPORT_C TInt SwiUI::RSWInstLauncher::CustomUninstall | ( | TOperation | aOperation, | |
const TDesC8 & | aParams, | |||
const TDesC8 & | aMIME | |||
) |
Performs a custom uninstallation.
aOperation | - The operation to be performed. | |
aParams | - Parameters for the operation |
IMPORT_C void SwiUI::RSWInstLauncher::CustomUninstall | ( | TRequestStatus & | aReqStatus, | |
TOperation | aOperation, | |||
const TDesC8 & | aParams, | |||
const TDesC8 & | aMIME | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestCustomUninstall.
IMPORT_C TInt SwiUI::RSWInstLauncher::SilentCustomUninstall | ( | TOperation | aOperation, | |
const TDesC8 & | aOptions, | |||
const TDesC8 & | aParams, | |||
const TDesC8 & | aMIME | |||
) |
Performs a silent custom uninstallation.
aOptions | - Default options for uninstallation. | |
aOperation | - The operation to be performed. | |
aParams | - Parameters for the operation |
IMPORT_C void SwiUI::RSWInstLauncher::SilentCustomUninstall | ( | TRequestStatus & | aReqStatus, | |
TOperation | aOperation, | |||
const TDesC8 & | aOptions, | |||
const TDesC8 & | aParams, | |||
const TDesC8 & | aMIME | |||
) |
Asynchronous version To cancel the request, use CancelAsyncRequest with ERequestSilentCustomUninstall.
void SwiUI::RSWInstLauncher::PanicClient | ( | TInt | aPanic | ) | const [protected] |
Panics the client.
aPanic | - Panic ID. |
TBool SwiUI::RSWInstLauncher::iConnected [protected] |
Definition at line 317 of file swinstapi.h.