#include <mw/wac/wacWidgetManager.h>
Link against: wacWidgetUtils.lib
class WidgetManager : public QObject, public QObject |
Install and uninstall web applications. Public class for installing widgets for 3rd party.
Public Member Functions | |
---|---|
WidgetManager(QWidget *, bool) | |
~WidgetManager() | |
void | asyncInstall(const QString &, bool, const QString &, bool) |
bool | backupRestoreInstall(const QString &, bool) |
void | cancel(int) |
bool | getContentType(QString &) |
WidgetProperties * | getProperties(const QString &) |
WidgetProperties * | getProperties() |
WidgetInstallError | install(const QString &, QString &, bool, bool, const QString &) |
QString | installSisx(const QString &, const QString &) |
int | installWidget(const QString &, const QMap< QString, QVariant > &) |
bool | isRegistered(const QString &) |
bool | isValidWidgetType(const QString &, const QString &) |
bool | isValidWidgetType(const QString &) |
QString | launcherPath(const QString &) |
QHash< QString, uint > | readSisxWidgetList() |
void | removeWidgetFromCache(const QString &) |
void | setContentType(const QString &) |
void | setInstallationAttributes(const WAC::InstallationAttributes &) |
QString | sisxWidgetFile() |
WidgetUninstallError | uninstall(const QString &, bool) |
void | uninstallProgress(int) |
WidgetUninstallError | uninstallSisx(const QString &, bool) |
void | writeSisxWidgetList(QHash< QString, uint > &) |
Protected Member Functions | |
---|---|
bool | createDir(const QString &) |
SuperWidget * | getWidgetFromCache(const QString &) |
QString | getWidgetInstallPath(const QString &) |
WidgetInstallError | install(const QString &, QString &, const QString &, const QString &, bool, bool, const QString &) |
void | setWidgetIntoCache(const QString &, SuperWidget *) |
Public Slots | |
---|---|
void | cancelInstallation() |
void | handleAborted(int, WidgetErrorType) |
void | handleCompleted(int) |
void | handleInteractiveRequest(int, QMap< WidgetPropertyType, QVariant > &) |
void | handleProgress(int, int, WidgetOperationType) |
void | tryContinueInstallation() |
Public Signals | |
---|---|
void | aborted(int, WidgetErrorType) |
void | aboutToInstallUntrustedWidget(WidgetInstallError) |
void | aboutToInstallWidgetWithFeatures(QList< QString >) |
void | aboutToReplaceExistingWidget(QString) |
void | completed(int) |
void | installComplete(QString, WidgetInstallError) |
void | installProgress(int) |
void | installationCancelled() |
void | installationError(WidgetInstallError) |
void | installationSucceed() |
void | interactiveRequest(int, QMap< WidgetPropertyType, QVariant > &) |
void | progress(int, int, WidgetOperationType) |
void | queryConfirmation() |
void | queryInstallationDestination(unsigned long, bool) |
Inherited Attributes | |
---|---|
QObject::d_ptr | |
QObject::objectName | |
QObject::staticQtMetaObject |
Inherited Functions | |
---|---|
QObject::QObject(QObjectPrivate &,QObject *) | |
QObject::blockSignals(bool) | |
QObject::childEvent(QChildEvent *) | |
QObject::children()const | |
QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const | |
QObject::connectNotify(const char *) | |
QObject::customEvent(QEvent *) | |
QObject::deleteLater | |
QObject::destroyed | |
QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &) | |
QObject::disconnect(const QObject *,const char *) | |
QObject::disconnect(const QObject *,const char *,const QObject *,const char *) | |
QObject::disconnect(const char *,const QObject *,const char *) | |
QObject::disconnectNotify(const char *) | |
QObject::dumpObjectInfo() | |
QObject::dumpObjectTree() | |
QObject::dynamicPropertyNames()const | |
QObject::event(QEvent *) | |
QObject::eventFilter(QObject *,QEvent *) | |
QObject::findChild(const QString &)const | |
QObject::findChildren(const QRegExp &)const | |
QObject::findChildren(const QString &)const | |
QObject::inherits(const char *)const | |
QObject::installEventFilter(QObject *) | |
QObject::isWidgetType()const | |
QObject::killTimer(int) | |
QObject::moveToThread(QThread *) | |
QObject::objectName()const | |
QObject::parent()const | |
QObject::property(const char *)const | |
QObject::receivers(const char *)const | |
QObject::registerUserData() | |
QObject::removeEventFilter(QObject *) | |
QObject::sender()const | |
QObject::senderSignalIndex()const | |
QObject::setObjectName(const QString &) | |
QObject::setParent(QObject *) | |
QObject::setProperty(const char *,const QVariant &) | |
QObject::setUserData(uint,QObjectUserData *) | |
QObject::signalsBlocked()const | |
QObject::startTimer(int) | |
QObject::thread()const | |
QObject::timerEvent(QTimerEvent *) | |
QObject::userData(uint)const | |
QObject::~QObject() |
WidgetManager | ( | QWidget * | parent, |
bool | isChromeless = false | ||
) | [explicit] |
Widget manager deletes all temporary created files on destructor
widget pointer for displaying confirmation
~WidgetManager | ( | ) |
void | aborted | ( | int | transId, |
WidgetErrorType | errCode | |||
) | [signal] |
void | aboutToInstallUntrustedWidget | ( | WidgetInstallError | errorCode | ) | [signal] |
This signal is emitted when a not signed widget is being installed.
If you intend to install the widget when this message is signaled, you should invoke tryContinueInstallation() method when you're handling this signal.
Parameters | |
---|---|
errorCode | tells reasons for installed widget being untrusted |
void | aboutToInstallWidgetWithFeatures | ( | QList< QString > | capList | ) | [signal] |
This signal is emitted whenever a widget with features is about to be installed.
If you intend to install the widget when this message is signaled, you should tryContinueInstallation() method when you're handling this signal.
void | aboutToReplaceExistingWidget | ( | QString | widgetTitle | ) | [signal] |
This signal is emitted whenever an existing widget is about to be replaced during installation phase.
If you intend to replace the widget when this message is signaled, you should tryContinueInstallation() method when you're handling this signal.
void | asyncInstall | ( | const QString & | pkgPath, |
bool | silent, | |||
const QString & | rootDirectory = "", | |||
bool | update = false | |||
) |
bool | backupRestoreInstall | ( | const QString & | pkgPath, |
bool | disableUnsigWidgetSignCheck | |||
) |
void | cancel | ( | int | trxId | ) |
void | cancelInstallation | ( | ) | [slot] |
void | completed | ( | int | transId | ) | [signal] |
bool | createDir | ( | const QString & | path | ) | [protected] |
bool | getContentType | ( | QString & | contentType | ) |
WidgetProperties * | getProperties | ( | const QString & | pkgPath | ) |
WidgetProperties * | getProperties | ( | ) |
SuperWidget * | getWidgetFromCache | ( | const QString & | pkgPath | ) | [protected] |
QString | getWidgetInstallPath | ( | const QString & | rootDirectory | ) | [protected] |
void | handleAborted | ( | int | transId, |
WidgetErrorType | errCode | |||
) | [slot] |
void | handleCompleted | ( | int | transId | ) | [slot] |
void | handleInteractiveRequest | ( | int | transId, |
QMap< WidgetPropertyType, QVariant > & | ||||
) | [slot] |
void | handleProgress | ( | int | transId, |
int | percentCompleted, | |||
WidgetOperationType | operationType | |||
) | [slot] |
WidgetInstallError | install | ( | const QString & | pkgPath, |
QString & | widgetId, | |||
bool | silent = false, | |||
bool | update = false, | |||
const QString & | rootDirectory = "" | |||
) |
WidgetInstallError | install | ( | const QString & | pkgPath, |
QString & | widgetId, | |||
const QString & | contentType, | |||
const QString & | rootDirectory = "", | |||
bool | silent = false, | |||
bool | update = false, | |||
const QString & | sigId = "" | |||
) | [protected] |
void | installComplete | ( | QString | widgetId, |
WidgetInstallError | status | |||
) | [signal] |
void | installProgress | ( | int | percentComplete | ) | [signal] |
QString | installSisx | ( | const QString & | pkgPath, |
const QString & | rootDirectory = "" | |||
) |
install's the SISX package file passed. Registers the application in registry if package file is valid pkgPath package file path
int | installWidget | ( | const QString & | pkgPath, |
const QMap< QString, QVariant > & | configDetails | |||
) |
install's the package file passed. Registers the application in registry if package file is valid o pkgPath package file path
void | installationCancelled | ( | ) | [signal] |
This signal is emitted when installation process is cancelled by the user
void | installationError | ( | WidgetInstallError | error | ) | [signal] |
This signal is emitted whenever an error occurs during installation phase.
If you intend to continue installation when error is signaled, you should invoke tryContinueInstallation() method when you're handling installation error.
void | installationSucceed | ( | ) | [signal] |
This signal is emitted whenever an existing widget is about to be replaced during installation phase.
void | interactiveRequest | ( | int | transId, |
QMap< WidgetPropertyType, QVariant > & | ||||
) | [signal] |
bool | isRegistered | ( | const QString & | pkgPath | ) |
pkgPath package file path
bool | isValidWidgetType | ( | const QString & | widgetPath, |
const QString & | contentType | |||
) |
bool | isValidWidgetType | ( | const QString & | widgetPath | ) |
QString | launcherPath | ( | const QString & | pkgPath | ) |
already installed web applications executable file/path
pkgPath package file path
void | progress | ( | int | transId, |
int | percentComplete, | |||
WidgetOperationType | operationType | |||
) | [signal] |
void | queryConfirmation | ( | ) | [signal] |
void | queryInstallationDestination | ( | unsigned long | spaceRequired, |
bool | allowRemovableInstallation | |||
) | [signal] |
This signal is emitted whenever a widget destination is to be selected
If you intend to continue installation of the widget when this message is signaled, you should tryContinueInstallation) method when you're handling this signal.
QHash< QString, uint > | readSisxWidgetList | ( | ) |
Reads the SISX widget list from file
void | removeWidgetFromCache | ( | const QString & | pkgPath | ) |
void | setContentType | ( | const QString & | contentType | ) |
void | setInstallationAttributes | ( | const WAC::InstallationAttributes & | attributes | ) |
void | setWidgetIntoCache | ( | const QString & | pkgPath, |
SuperWidget * | widget | |||
) | [protected] |
void | tryContinueInstallation | ( | ) | [slot] |
Try to continue installation process when and installation is about to do something.
See also: aboutToReplaceExistingWidget(QString) aboutToInstallUntrustedWidget(WidgetInstallError) aboutToInstallWidgetWithFeatures(QList<QString> capList)
WidgetUninstallError | uninstall | ( | const QString & | uniqueIdentifier, |
bool | silent = false | |||
) |
uninstall's the web app. Removes the entry from registry.
pkgPath package file path
void | uninstallProgress | ( | int | progress | ) |
WidgetUninstallError | uninstallSisx | ( | const QString & | uniqueIdentifier, |
bool | aRemoveFromList | |||
) |
Uninstall's the SISX package file passed. uniqueIdentifier ID of the widget to uninstall aRemoveFromlist Flag to remove widget from installed list