WAC::ServiceIPCSession Class Reference

#include <mw/wac/wacserviceipcserversession.h>

Link against: wacserviceipcserver.lib

class WAC::ServiceIPCSession : public QObject, public QObject

Inherits from

  • WAC::ServiceIPCSession
    Protected Attributes
    boolm_appendToBList
    ClientInfo *m_clientInfo
    ServiceIPCRequest *m_curRequest
    boolm_isPendingRequest
    MServiceIPCObserver *m_observer
    Public Member Functions
    ServiceIPCSession(MServiceIPCObserver *)
    virtual ~ServiceIPCSession()
    pure virtual voidappendBroadcastList(int, ServiceIPCSession *)
    voidappendMessageList(const QByteArray &)
    pure virtual voidclose()
    pure virtual boolcompleteRequest()
    boolgetReadyToSend()
    boolmessageListIsEmpty()
    pure virtual voidreleaseSessionId(int)
    voidsetClientInfo(ClientInfo *)
    voidsetReadyToSend(bool)
    pure virtual boolwrite(const QByteArray &)
    Protected Member Functions
    voidhandleReq()
    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

    Session class to hold the state of each connected client

    Member Attribute Documentation

    m_appendToBList

    boolm_appendToBList[protected]

    m_clientInfo

    ClientInfo *m_clientInfo[protected]

    m_curRequest

    ServiceIPCRequest *m_curRequest[protected]

    m_isPendingRequest

    boolm_isPendingRequest[protected]

    m_observer

    MServiceIPCObserver *m_observer[protected]

    Constructor & Destructor Documentation

    ServiceIPCSession ( MServiceIPCObserver * )

    ServiceIPCSession(MServiceIPCObserver *aObserver)[explicit]

    Constructor

    Parameters
    aObserverobserver to the session

    ~ServiceIPCSession ( )

    ~ServiceIPCSession()[virtual]

    Destructor

    Member Function Documentation

    appendBroadcastList ( int, ServiceIPCSession * )

    voidappendBroadcastList(intaSessionId,
    ServiceIPCSession *aSession
    )[pure virtual]

    appendMessageList ( const QByteArray & )

    voidappendMessageList(const QByteArray &aMessage)[inline]

    close ( )

    voidclose()[pure virtual]

    Close a session and gracefully shutdown

    completeRequest ( )

    boolcompleteRequest()[pure virtual]

    Complete a Request

    Return Value
    bool if request completed

    getReadyToSend ( )

    boolgetReadyToSend()const [inline]

    handleReq ( )

    voidhandleReq()[protected]

    messageListIsEmpty ( )

    boolmessageListIsEmpty()const [inline]

    releaseSessionId ( int )

    voidreleaseSessionId(intaSessionId)[pure virtual]

    setClientInfo ( ClientInfo * )

    voidsetClientInfo(ClientInfo *aClientInfo)[inline]

    setReadyToSend ( bool )

    voidsetReadyToSend(boolreadyToSend)[inline]

    write ( const QByteArray & )

    boolwrite(const QByteArray &aData)[pure virtual]

    Write some data in response to a request

    Parameters
    aDatasome data to write as response
    Return Value
    bool if write was successful