WAC::ServiceIPCRequest Class Reference

#include <mw/wac/wacserviceipcrequest.h>

Link against: wacserviceipcserver.lib

class WAC::ServiceIPCRequest : public QObject, public QObject

Inherits from

  • WAC::ServiceIPCRequest
    Public Member Functions
    ServiceIPCRequest(ServiceIPCSession *, qint64, const QString &)
    virtual ~ServiceIPCRequest()
    booladdRequestdata(const QByteArray &)
    const ClientInfo *clientInfo()
    boolcompleteRequest()
    const QByteArray &getData()
    const QString &getOperation()
    boolrequestCompleted()
    voidsetClientInfo(ClientInfo *)
    boolwrite(const QByteArray &)
    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

    Class to encapsulate a service request

    Constructor & Destructor Documentation

    ServiceIPCRequest ( ServiceIPCSession *, qint64, const QString & )

    ServiceIPCRequest(ServiceIPCSession *aSession,
    qint64aDataLength,
    const QString &aRequestOp
    )

    Constructor

    Parameters
    aSessionsession associated with this request
    aDataLengthamount of data to be received in this request
    aRequestOpoperaion name

    ~ServiceIPCRequest ( )

    ~ServiceIPCRequest()[virtual]

    Destructor

    Member Function Documentation

    addRequestdata ( const QByteArray & )

    booladdRequestdata(const QByteArray &aMoreData)
    Append more data when creating the request
    • aMoreData data to be appended to the request

    Return Value
    true if m_Datalength now equals the full length

    clientInfo ( )

    const ClientInfo *clientInfo()

    Gets the client info.

    Return Value
    Client Information object. NULL if none is available

    completeRequest ( )

    boolcompleteRequest()

    Complete the request

    Return Value
    true if request completed successfully

    getData ( )

    const QByteArray &getData()

    Get the requested data

    Return Value
    QByteArray data for this operation

    getOperation ( )

    const QString &getOperation()

    Get the requested operation

    Return Value
    QString operation ID

    requestCompleted ( )

    boolrequestCompleted()const

    Checks if completeRequest is already called for request

    Return Value
    true if request already completed

    setClientInfo ( ClientInfo * )

    voidsetClientInfo(ClientInfo *aClientInfo)
    Sets the client info. Onwership of the object is passed in.
    • aClientInfo Client information

    write ( const QByteArray & )

    boolwrite(const QByteArray &aData)

    Write some data to the request

    Parameters
    aDatadata to write to the socket