WAC::ServiceFwIPCServer Class Reference

#include <mw/wac/wacserviceipcserver.h>

Link against: wacserviceipcserver.lib

class WAC::ServiceFwIPCServer : public QObject, public QObject

Inherits from

  • WAC::ServiceFwIPCServer
    Protected Attributes
    MServiceIPCObserver *m_Observer
    Public Member Functions
    ServiceFwIPCServer(MServiceIPCObserver *, QObject *, const TServiceIPCBackends &)
    virtual ~ServiceFwIPCServer()
    voidbroadcast(const QByteArray &)
    voidconfigIpcServerLifetime(bool)
    voiddisconnect()
    boollisten(const QString &)
    voidsendMessage(qint32, QByteArray &)
    Public Signals
    voidhandleExit()
    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()

    Detailed Description

    Service Framework IPC Server public class

    Member Attribute Documentation

    m_Observer

    MServiceIPCObserver *m_Observer[protected]

    Constructor & Destructor Documentation

    ServiceFwIPCServer ( MServiceIPCObserver *, QObject *, const TServiceIPCBackends & )

    ServiceFwIPCServer(MServiceIPCObserver *aObserver,
    QObject *aParent,
    const TServiceIPCBackends &aBackend = EDefaultIPC
    )

    Constructor

    Parameters
    aObserverengine observer to call back to handle new requests
    aParentQObject's parent
    aBackendbackend to instantiate

    ~ServiceFwIPCServer ( )

    ~ServiceFwIPCServer()[virtual]

    Destructor

    Member Function Documentation

    broadcast ( const QByteArray & )

    voidbroadcast(const QByteArray &aMessage)

    Send a broadcast message to all clients connected to this server Send a message to all broadcast clients connected to this server

    Parameters
    aMessagethe contents of the message

    configIpcServerLifetime ( bool )

    voidconfigIpcServerLifetime(boolaKeepServer)

    IPC server lifetime should be configurable

    Return Value
    void

    disconnect ( )

    voiddisconnect()

    Shutdown the server and stop serving clients

    Return Value
    void

    handleExit ( )

    voidhandleExit()[signal]

    Handle server shutdown Emitted when all client sessions were closed and server should shutdown

    Return Value
    void

    listen ( const QString & )

    boollisten(const QString &aServerName)

    Start listening for new service requests

    Parameters
    aServerNamename of the server
    Return Value
    bool if connected

    sendMessage ( qint32, QByteArray & )

    voidsendMessage(qint32aSessionId,
    QByteArray &aMessage
    )

    Send a message to a particular client connected to this server

    Parameters
    aMessagethe contents of the message