WRT::ServiceHandler Class Reference

#include <mw/cwrt/servicehandler.h>

Link against: wrtservicehandler.lib

class WRT::ServiceHandler : public QObject, public WRT::SFWErrorHandler, public QObject, public WRT::SFWErrorHandler

Inherits from

Protected Attributes
ServiceHandlerPrivate *d
Public Member Functions
ServiceHandler(QObject *)
~ServiceHandler()
voidgetInterface(T **, const QString &, const ServiceInterfaceInfo &, bool, SecSession *)
QStringList getServiceProviders(SecSession *)
QString getServiceVersion(const QString &)
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()
WRT::SFWErrorHandler::SFWErrorHandler()
WRT::SFWErrorHandler::getLastErrCode()
WRT::SFWErrorHandler::getLastErrDescription()
WRT::SFWErrorHandler::setLastErrCode(int)
WRT::SFWErrorHandler::setLastErrDescription(QString)

Detailed Description

Service Handler implementation. This class is used to resolve and load service provider plugins. This class also allows listing of service providers

This class is a service handler capable of returning instances of services. Current assumptions for this class are as follows: -Service is registered in the service db -Client DLL name is known -Ownership of instantiated service object is returned to the owner -Service class should make all Javascript accessible methods as public slots

Member Attribute Documentation

d

ServiceHandlerPrivate *d[protected]

Constructor & Destructor Documentation

ServiceHandler ( QObject * )

ServiceHandler(QObject *parent)

Constructor

Parameters
parentparent to this QObject

~ServiceHandler ( )

~ServiceHandler()

Destructor

Member Function Documentation

getInterface ( T **, const QString &, const ServiceInterfaceInfo &, bool, SecSession * )

voidgetInterface(T **aInterface,
const QString &aServiceName,
const ServiceInterfaceInfo &aInterfaceInfo,
boolaRefCounted,
SecSession *aSecSession
)[inline]

Creates an instance of a service and return interface pointer

Parameters
aServiceNameName of the service provider
aInterfaceInfoInterface info
aRefCountedtrue the underlying service object is reference counted. false the underlying service object is not reference counted and the object is owned by service handler
aSecSessionSecurity Session (not owned). If NULL then that means no security check will be done.
Return Value
IServiceBase* interface pointer to the service if the service is found, NULL if service is not found

getServiceProviders ( SecSession * )

QStringList getServiceProviders(SecSession *aSecSession = NULL)

Gets a list of all services from the service resolver

Return Value
QStringList of all services

getServiceVersion ( const QString & )

QString getServiceVersion(const QString &aServiceName)

Gets version of a service provider from the service resolver

Parameters
aServiceNameName of the service provider
Return Value
QString service version