#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.
Public Member Functions | |
---|---|
virtual int | appIdTonativeId(const QString &) |
virtual QVariant | getAttribute(const QString &, const QString &, const QVariant &) |
WebAppRegistry * | instance() |
virtual bool | isRegistered(const QString &) |
virtual bool | isRegistered(const QString &, WebAppInfo &) |
virtual bool | isWidgetIdRegistered(const QString &) |
virtual QString | nativeIdToAppId(const QString &) |
virtual int | nextAvailableUid() |
virtual QList< WebAppInfo > * | notPresentOnDrive(const QString &) |
virtual QList< WebAppInfo > * | present(bool) |
virtual QList< WebAppInfo > * | presentOnDrive(const QString &) |
virtual bool | 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 &) |
virtual QList< WebAppInfo > * | registered() |
virtual bool | setCapabilityCheck(const QString &, bool) |
virtual bool | setCertificateAki(const QString &, const QString &) |
virtual void | setIsActive(const QString &, bool) |
virtual void | setIsFullView(const QString &, bool) |
virtual void | setIsMiniView(const QString &, bool) |
virtual bool | setIsPresent(const QString &, bool) |
virtual bool | setNativeId(const QString &, const QString &) |
virtual bool | setUid(const QString &, int) |
virtual bool | setWebAppAttribute(const QString &, const QString &, const QVariant &) |
virtual bool | setWebAppVersion(const QString &, const QVariant &, const QString &) |
virtual QString | uniqueIdToWidgetId(const QString &) |
virtual bool | unregister(const QString &, bool) |
virtual QString | widgetIdToUniqueId(const QString &) |
virtual QStringList | widgetIdToUniqueIdList(const QString &) |
Protected Member Functions | |
---|---|
WebAppRegistry() | |
virtual | ~WebAppRegistry() |
This class is the public API for Web Application Framework. (TBD)
WebAppRegistry | ( | ) | [protected] |
~WebAppRegistry | ( | ) | [protected, virtual] |
int | appIdTonativeId | ( | const QString & | appID | ) | [virtual] |
Reimplemented from WebAppRegistryInterface::appIdTonativeId(const QString &)
QVariant | getAttribute | ( | const QString & | appID, |
const QString & | attribute, | |||
const QVariant & | defaultValue = QVariant() | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::getAttribute(const QString &,const QString &,const QVariant &)
WebAppRegistry * | instance | ( | ) | [static] |
Static function returns singleton object of WebAppRegistry
bool | isRegistered | ( | const QString & | appID | ) | const [virtual] |
Reimplemented from WebAppRegistryInterface::isRegistered(const QString &)const
appID id to check if already registered
bool | isRegistered | ( | 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
bool | isWidgetIdRegistered | ( | const QString & | widgetId | ) | [virtual] |
Reimplemented from WebAppRegistryInterface::isWidgetIdRegistered(const QString &)
QString | nativeIdToAppId | ( | const QString & | nativeID | ) | [virtual] |
Reimplemented from WebAppRegistryInterface::nativeIdToAppId(const QString &)
int | nextAvailableUid | ( | ) | [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
QList< WebAppInfo > * | notPresentOnDrive | ( | const QString & | driveLetter | ) | [virtual] |
QList< WebAppInfo > * | present | ( | bool | isPresent | ) | [virtual] |
Reimplemented from WebAppRegistryInterface::present(bool)
QList< WebAppInfo > * | presentOnDrive | ( | const QString & | driveLetter | ) | [virtual] |
Reimplemented from WebAppRegistryInterface::presentOnDrive(const QString &)
bool | registerApp | ( | const QString & | appId, |
const QString & | appTitle, | |||
const QString & | appPath, | |||
const QString & | iconPath, | |||
const AttributeMap & | attributes, | |||
const QString & | type, | |||
unsigned long | size, | |||
const QString & | startPath, | |||
bool | hideIcon = 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)
QList< WebAppInfo > * | registered | ( | ) | [virtual] |
Reimplemented from WebAppRegistryInterface::registered()
bool | setCapabilityCheck | ( | const QString & | appID, |
bool | value | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setCapabilityCheck(const QString &,bool)
bool | setCertificateAki | ( | const QString & | appID, |
const QString & | value | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setCertificateAki(const QString &,const QString &)
void | setIsActive | ( | const QString & | appID, |
bool | value | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setIsActive(const QString &,bool)
QTWRT_USE_USIF.
void | setIsFullView | ( | const QString & | appID, |
bool | value | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setIsFullView(const QString &,bool)
QTWRT_USE_USIF.
void | setIsMiniView | ( | const QString & | appID, |
bool | value | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setIsMiniView(const QString &,bool)
bool | setIsPresent | ( | const QString & | appID, |
bool | value | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setIsPresent(const QString &,bool)
bool | setNativeId | ( | const QString & | appID, |
const QString & | nativeID | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setNativeId(const QString &,const QString &)
bool | setUid | ( | const QString & | appID, |
int | uid | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::setUid(const QString &,int)
bool | setWebAppAttribute | ( | 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.
bool | setWebAppVersion | ( | 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.
QString | uniqueIdToWidgetId | ( | const QString & | uniqueId | ) | [virtual] |
Reimplemented from WebAppRegistryInterface::uniqueIdToWidgetId(const QString &)
bool | unregister | ( | const QString & | appID, |
bool | update = false | |||
) | [virtual] |
Reimplemented from WebAppRegistryInterface::unregister(const QString &,bool)
unregister webapp
appID web app ID to unregister