WebAppRegistry Class Reference

#include <mw/wac/wacWebAppRegistry.h>

class WebAppRegistry : public WebAppRegistryInterface, public WebAppRegistryInterface

WebAppRegistry class maintains the secured database for registered web applications. This is a single-ton class and WebAppRegistry::create() has to be called before using any API's in this class.

Inherits from

  • WebAppRegistry
    Public Member Functions
    virtual intappIdTonativeId(const QString &)
    virtual QVariant getAttribute(const QString &, const QString &, const QVariant &)
    WebAppRegistry *instance()
    virtual boolisRegistered(const QString &)
    virtual boolisRegistered(const QString &, WebAppInfo &)
    virtual boolisWidgetIdRegistered(const QString &)
    virtual QString nativeIdToAppId(const QString &)
    virtual intnextAvailableUid()
    virtual QList< WebAppInfo > *notPresentOnDrive(const QString &)
    virtual QList< WebAppInfo > *present(bool)
    virtual QList< WebAppInfo > *presentOnDrive(const QString &)
    virtual boolregisterApp(const QString &, const QString &, const QString &, const QString &, const AttributeMap &, const QString &, unsigned long, const QString &, bool, const QSet< QString > &, const QString &, const QString &)
    virtual QList< WebAppInfo > *registered()
    virtual boolsetCapabilityCheck(const QString &, bool)
    virtual boolsetCertificateAki(const QString &, const QString &)
    virtual voidsetIsActive(const QString &, bool)
    virtual voidsetIsFullView(const QString &, bool)
    virtual voidsetIsMiniView(const QString &, bool)
    virtual boolsetIsPresent(const QString &, bool)
    virtual boolsetNativeId(const QString &, const QString &)
    virtual boolsetUid(const QString &, int)
    virtual boolsetWebAppAttribute(const QString &, const QString &, const QVariant &)
    virtual boolsetWebAppVersion(const QString &, const QVariant &, const QString &)
    virtual QString uniqueIdToWidgetId(const QString &)
    virtual boolunregister(const QString &, bool)
    virtual QString widgetIdToUniqueId(const QString &)
    virtual QStringList widgetIdToUniqueIdList(const QString &)
    Protected Member Functions
    WebAppRegistry()
    virtual ~WebAppRegistry()

    Detailed Description

    This class is the public API for Web Application Framework. (TBD)

    Constructor & Destructor Documentation

    WebAppRegistry ( )

    WebAppRegistry()[protected]

    ~WebAppRegistry ( )

    ~WebAppRegistry()[protected, virtual]

    Member Function Documentation

    appIdTonativeId ( const QString & )

    intappIdTonativeId(const QString &appID)[virtual]

    Reimplemented from WebAppRegistryInterface::appIdTonativeId(const QString &)

    getAttribute ( const QString &, const QString &, const QVariant & )

    QVariant getAttribute(const QString &appID,
    const QString &attribute,
    const QVariant &defaultValue =  QVariant()
    )[virtual]

    Reimplemented from WebAppRegistryInterface::getAttribute(const QString &,const QString &,const QVariant &)

    instance ( )

    WebAppRegistry *instance()[static]

    Static function returns singleton object of WebAppRegistry

    Return Value
    singleton WebAppRegistry pointer object

    isRegistered ( const QString & )

    boolisRegistered(const QString &appID)const [virtual]

    Reimplemented from WebAppRegistryInterface::isRegistered(const QString &)const

    appID id to check if already registered

    Return Value
    true if webapp is registered

    isRegistered ( const QString &, WebAppInfo & )

    boolisRegistered(const QString &appID,
    WebAppInfo &info
    )[virtual]

    Reimplemented from WebAppRegistryInterface::isRegistered(const QString &,WebAppInfo &)

    This is an overloaded member function, provided for convenience

    appID web app ID to unregister WebAppInfo to fill related information for the webApp

    Return Value
    true if webApp is registered.

    isWidgetIdRegistered ( const QString & )

    boolisWidgetIdRegistered(const QString &widgetId)[virtual]

    Reimplemented from WebAppRegistryInterface::isWidgetIdRegistered(const QString &)

    nativeIdToAppId ( const QString & )

    QString nativeIdToAppId(const QString &nativeID)[virtual]

    Reimplemented from WebAppRegistryInterface::nativeIdToAppId(const QString &)

    nextAvailableUid ( )

    intnextAvailableUid()[virtual]

    Reimplemented from WebAppRegistryInterface::nextAvailableUid()

    nextAvailableUid() returns the lowest non-used UID in the available ranges. This is a UID needed by Symbian only, but directly access the DB for used UIDs. only called from WidgetRegistrationS60::registerApp

    The WRT Widget Registry (platform) reserves a block of 999 UIDs to be allocated to widgets. This range is split in two, with the first half being reserved for widgets installed on drive C, and the rest for those installed on external drives.

    We have taken the latter half of each of these ranges to be used for cWRT widgets, so we allocate in the ranges of KWidgetUidCWRTInternalMemoryStart through KWidgetUidCWRTInternalMemoryStop (inclusive) and KWidgetUidCWRTExternalMemoryStart through KWidgetUidCWRTExternalMemoryStop (inclusive)

    If no UID could be found or platform is not Symbian, 0 is returned

    notPresentOnDrive ( const QString & )

    QList< WebAppInfo > *notPresentOnDrive(const QString &driveLetter)[virtual]

    present ( bool )

    QList< WebAppInfo > *present(boolisPresent)[virtual]

    Reimplemented from WebAppRegistryInterface::present(bool)

    Return Value
    list of all already registered web apps, note that reciever responsible to free the list

    presentOnDrive ( const QString & )

    QList< WebAppInfo > *presentOnDrive(const QString &driveLetter)[virtual]

    Reimplemented from WebAppRegistryInterface::presentOnDrive(const QString &)

    registerApp ( const QString &, const QString &, const QString &, const QString &, const AttributeMap &, const QString &, unsigned long, const QString &, bool, const QSet< QString > &, const QString &, const QString & )

    boolregisterApp(const QString &appId,
    const QString &appTitle,
    const QString &appPath,
    const QString &iconPath,
    const AttributeMap &attributes,
    const QString &type,
    unsigned longsize,
    const QString &startPath,
    boolhideIcon = false,
    const QSet< QString > &languages = QSet< QString >(),
    const QString &version =  QString(),
    const QString &author =  QString()
    )[virtual]

    Reimplemented from WebAppRegistryInterface::registerApp(const QString &,const QString &,const QString &,const QString &,const AttributeMap &,const QString &,unsigned long,const QString &,bool,const QSet< QString > &,const QString &,const QString &)

    register application, takes all required inputs to register.

    appID a unique ID for the webApp,(mandatory) title a display name for webApp(mandatory) appPath path to the executable. URL if its a link(mandatory) iconPath iconPath for the webApp. If not specified default icon will be used(not mandatory) attributes is a map having <key, value> pairs for attributes(not mandatory)

    Return Value
    true if registration is successful

    registered ( )

    QList< WebAppInfo > *registered()[virtual]

    Reimplemented from WebAppRegistryInterface::registered()

    Return Value
    list of all already registered web apps, note that reciever responsible to free the list

    setCapabilityCheck ( const QString &, bool )

    boolsetCapabilityCheck(const QString &appID,
    boolvalue
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setCapabilityCheck(const QString &,bool)

    setCertificateAki ( const QString &, const QString & )

    boolsetCertificateAki(const QString &appID,
    const QString &value
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setCertificateAki(const QString &,const QString &)

    setIsActive ( const QString &, bool )

    voidsetIsActive(const QString &appID,
    boolvalue
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setIsActive(const QString &,bool)

    QTWRT_USE_USIF.

    setIsFullView ( const QString &, bool )

    voidsetIsFullView(const QString &appID,
    boolvalue
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setIsFullView(const QString &,bool)

    QTWRT_USE_USIF.

    setIsMiniView ( const QString &, bool )

    voidsetIsMiniView(const QString &appID,
    boolvalue
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setIsMiniView(const QString &,bool)

    setIsPresent ( const QString &, bool )

    boolsetIsPresent(const QString &appID,
    boolvalue
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setIsPresent(const QString &,bool)

    setNativeId ( const QString &, const QString & )

    boolsetNativeId(const QString &appID,
    const QString &nativeID
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setNativeId(const QString &,const QString &)

    setUid ( const QString &, int )

    boolsetUid(const QString &appID,
    intuid
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setUid(const QString &,int)

    setWebAppAttribute ( const QString &, const QString &, const QVariant & )

    boolsetWebAppAttribute(const QString &appID,
    const QString &attribute,
    const QVariant &value
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setWebAppAttribute(const QString &,const QString &,const QVariant &)

    sets the web application attribute.

    appID a unique ID for the webApp attribute is attribute key value is value to be set.

    Return Value
    true if successful

    setWebAppVersion ( const QString &, const QVariant &, const QString & )

    boolsetWebAppVersion(const QString &appID,
    const QVariant &value,
    const QString &newIconPath
    )[virtual]

    Reimplemented from WebAppRegistryInterface::setWebAppVersion(const QString &,const QVariant &,const QString &)

    sets the web application version. appID a unique ID for the webApp value is value to be set.

    The newIconPath parameter is ignored in this implementation.

    Return Value
    true if successful

    uniqueIdToWidgetId ( const QString & )

    QString uniqueIdToWidgetId(const QString &uniqueId)[virtual]

    Reimplemented from WebAppRegistryInterface::uniqueIdToWidgetId(const QString &)

    unregister ( const QString &, bool )

    boolunregister(const QString &appID,
    boolupdate = false
    )[virtual]

    Reimplemented from WebAppRegistryInterface::unregister(const QString &,bool)

    unregister webapp

    appID web app ID to unregister

    Return Value
    true if unregister is successful.

    widgetIdToUniqueId ( const QString & )

    QString widgetIdToUniqueId(const QString &widgetId)[virtual]

    Reimplemented from WebAppRegistryInterface::widgetIdToUniqueId(const QString &)

    widgetIdToUniqueIdList ( const QString & )

    QStringList widgetIdToUniqueIdList(const QString &widgetId)[virtual]

    Reimplemented from WebAppRegistryInterface::widgetIdToUniqueIdList(const QString &)