WidgetManager Class Reference

#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.

Inherits from

  • WidgetManager
    Public Member Functions
    WidgetManager(QWidget *, bool)
    ~WidgetManager()
    voidasyncInstall(const QString &, bool, const QString &, bool)
    boolbackupRestoreInstall(const QString &, bool)
    voidcancel(int)
    boolgetContentType(QString &)
    WidgetProperties *getProperties(const QString &)
    WidgetProperties *getProperties()
    WidgetInstallError install(const QString &, QString &, bool, bool, const QString &)
    QString installSisx(const QString &, const QString &)
    intinstallWidget(const QString &, const QMap< QString, QVariant > &)
    boolisRegistered(const QString &)
    boolisValidWidgetType(const QString &, const QString &)
    boolisValidWidgetType(const QString &)
    QString launcherPath(const QString &)
    QHash< QString, uint >readSisxWidgetList()
    voidremoveWidgetFromCache(const QString &)
    voidsetContentType(const QString &)
    voidsetInstallationAttributes(const WAC::InstallationAttributes &)
    QString sisxWidgetFile()
    WidgetUninstallErroruninstall(const QString &, bool)
    voiduninstallProgress(int)
    WidgetUninstallErroruninstallSisx(const QString &, bool)
    voidwriteSisxWidgetList(QHash< QString, uint > &)
    Protected Member Functions
    boolcreateDir(const QString &)
    SuperWidget *getWidgetFromCache(const QString &)
    QString getWidgetInstallPath(const QString &)
    WidgetInstallError install(const QString &, QString &, const QString &, const QString &, bool, bool, const QString &)
    voidsetWidgetIntoCache(const QString &, SuperWidget *)
    Public Slots
    voidcancelInstallation()
    voidhandleAborted(int, WidgetErrorType)
    voidhandleCompleted(int)
    voidhandleInteractiveRequest(int, QMap< WidgetPropertyType, QVariant > &)
    voidhandleProgress(int, int, WidgetOperationType)
    voidtryContinueInstallation()
    Public Signals
    voidaborted(int, WidgetErrorType)
    voidaboutToInstallUntrustedWidget(WidgetInstallError)
    voidaboutToInstallWidgetWithFeatures(QList< QString >)
    voidaboutToReplaceExistingWidget(QString)
    voidcompleted(int)
    voidinstallComplete(QString, WidgetInstallError)
    voidinstallProgress(int)
    voidinstallationCancelled()
    voidinstallationError(WidgetInstallError)
    voidinstallationSucceed()
    voidinteractiveRequest(int, QMap< WidgetPropertyType, QVariant > &)
    voidprogress(int, int, WidgetOperationType)
    voidqueryConfirmation()
    voidqueryInstallationDestination(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()

    Constructor & Destructor Documentation

    WidgetManager ( QWidget *, bool )

    WidgetManager(QWidget *parent,
    boolisChromeless = false
    )[explicit]

    Widget manager deletes all temporary created files on destructor

    widget pointer for displaying confirmation

    ~WidgetManager ( )

    ~WidgetManager()

    Member Function Documentation

    aborted ( int, WidgetErrorType )

    voidaborted(inttransId,
    WidgetErrorTypeerrCode
    )[signal]

    aboutToInstallUntrustedWidget ( WidgetInstallError )

    voidaboutToInstallUntrustedWidget(WidgetInstallErrorerrorCode)[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
    errorCodetells reasons for installed widget being untrusted

    aboutToInstallWidgetWithFeatures ( QList< QString > )

    voidaboutToInstallWidgetWithFeatures(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.

    aboutToReplaceExistingWidget ( QString )

    voidaboutToReplaceExistingWidget(QStringwidgetTitle)[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.

    asyncInstall ( const QString &, bool, const QString &, bool )

    voidasyncInstall(const QString &pkgPath,
    boolsilent,
    const QString &rootDirectory = "",
    boolupdate = false
    )

    backupRestoreInstall ( const QString &, bool )

    boolbackupRestoreInstall(const QString &pkgPath,
    booldisableUnsigWidgetSignCheck
    )

    cancel ( int )

    voidcancel(inttrxId)

    cancelInstallation ( )

    voidcancelInstallation()[slot]

    completed ( int )

    voidcompleted(inttransId)[signal]

    createDir ( const QString & )

    boolcreateDir(const QString &path)[protected]

    getContentType ( QString & )

    boolgetContentType(QString &contentType)

    getProperties ( const QString & )

    WidgetProperties *getProperties(const QString &pkgPath)

    getProperties ( )

    WidgetProperties *getProperties()

    getWidgetFromCache ( const QString & )

    SuperWidget *getWidgetFromCache(const QString &pkgPath)[protected]

    getWidgetInstallPath ( const QString & )

    QString getWidgetInstallPath(const QString &rootDirectory)[protected]

    handleAborted ( int, WidgetErrorType )

    voidhandleAborted(inttransId,
    WidgetErrorTypeerrCode
    )[slot]

    handleCompleted ( int )

    voidhandleCompleted(inttransId)[slot]

    handleInteractiveRequest ( int, QMap< WidgetPropertyType, QVariant > & )

    voidhandleInteractiveRequest(inttransId,
    QMap< WidgetPropertyType, QVariant > &
    )[slot]

    handleProgress ( int, int, WidgetOperationType )

    voidhandleProgress(inttransId,
    intpercentCompleted,
    WidgetOperationTypeoperationType
    )[slot]

    install ( const QString &, QString &, bool, bool, const QString & )

    WidgetInstallError install(const QString &pkgPath,
    QString &widgetId,
    boolsilent = false,
    boolupdate = false,
    const QString &rootDirectory = ""
    )

    install ( const QString &, QString &, const QString &, const QString &, bool, bool, const QString & )

    WidgetInstallError install(const QString &pkgPath,
    QString &widgetId,
    const QString &contentType,
    const QString &rootDirectory = "",
    boolsilent = false,
    boolupdate = false,
    const QString &sigId = ""
    )[protected]

    installComplete ( QString, WidgetInstallError )

    voidinstallComplete(QStringwidgetId,
    WidgetInstallErrorstatus
    )[signal]

    installProgress ( int )

    voidinstallProgress(intpercentComplete)[signal]

    installSisx ( const QString &, const QString & )

    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

    Return Value
    UID of installed widget

    installWidget ( const QString &, const QMap< QString, QVariant > & )

    intinstallWidget(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

    Return Value
    returns true if installation is successful

    installationCancelled ( )

    voidinstallationCancelled()[signal]

    This signal is emitted when installation process is cancelled by the user

    installationError ( WidgetInstallError )

    voidinstallationError(WidgetInstallErrorerror)[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.

    installationSucceed ( )

    voidinstallationSucceed()[signal]

    This signal is emitted whenever an existing widget is about to be replaced during installation phase.

    interactiveRequest ( int, QMap< WidgetPropertyType, QVariant > & )

    voidinteractiveRequest(inttransId,
    QMap< WidgetPropertyType, QVariant > &
    )[signal]

    isRegistered ( const QString & )

    boolisRegistered(const QString &pkgPath)

    pkgPath package file path

    Return Value
    returns true if pkgPath is already installed

    isValidWidgetType ( const QString &, const QString & )

    boolisValidWidgetType(const QString &widgetPath,
    const QString &contentType
    )

    isValidWidgetType ( const QString & )

    boolisValidWidgetType(const QString &widgetPath)

    launcherPath ( const QString & )

    QString launcherPath(const QString &pkgPath)

    already installed web applications executable file/path

    pkgPath package file path

    Return Value
    returns launcher file path (html file path for widgets) or link for web applications

    progress ( int, int, WidgetOperationType )

    voidprogress(inttransId,
    intpercentComplete,
    WidgetOperationTypeoperationType
    )[signal]

    queryConfirmation ( )

    voidqueryConfirmation()[signal]

    queryInstallationDestination ( unsigned long, bool )

    voidqueryInstallationDestination(unsigned longspaceRequired,
    boolallowRemovableInstallation
    )[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.

    readSisxWidgetList ( )

    QHash< QString, uint >readSisxWidgetList()

    Reads the SISX widget list from file

    removeWidgetFromCache ( const QString & )

    voidremoveWidgetFromCache(const QString &pkgPath)

    setContentType ( const QString & )

    voidsetContentType(const QString &contentType)

    setInstallationAttributes ( const WAC::InstallationAttributes & )

    voidsetInstallationAttributes(const WAC::InstallationAttributes &attributes)

    setWidgetIntoCache ( const QString &, SuperWidget * )

    voidsetWidgetIntoCache(const QString &pkgPath,
    SuperWidget *widget
    )[protected]

    sisxWidgetFile ( )

    QString sisxWidgetFile()

    Gets the name of the SISX widget list file

    tryContinueInstallation ( )

    voidtryContinueInstallation()[slot]

    Try to continue installation process when and installation is about to do something.

    See also: aboutToReplaceExistingWidget(QString) aboutToInstallUntrustedWidget(WidgetInstallError) aboutToInstallWidgetWithFeatures(QList<QString> capList)

    uninstall ( const QString &, bool )

    WidgetUninstallErroruninstall(const QString &uniqueIdentifier,
    boolsilent = false
    )

    uninstall's the web app. Removes the entry from registry.

    pkgPath package file path

    Return Value
    returns true if uninstallation is successful

    uninstallProgress ( int )

    voiduninstallProgress(intprogress)

    uninstallSisx ( const QString &, bool )

    WidgetUninstallErroruninstallSisx(const QString &uniqueIdentifier,
    boolaRemoveFromList
    )

    Uninstall's the SISX package file passed. uniqueIdentifier ID of the widget to uninstall aRemoveFromlist Flag to remove widget from installed list

    Return Value
    returns An error code from WidgetUninstallError enum

    writeSisxWidgetList ( QHash< QString, uint > & )

    voidwriteSisxWidgetList(QHash< QString, uint > &aWidgetList)

    Writes the SISX widget list to file