#include <mw/wac/wacserviceipcclient.h>
Link against: wacserviceipcclient.lib
| class WAC::ServiceIPCClient : public QObject, public QObject |
| Protected Attributes | |
|---|---|
| ServiceFwIPC * | m_asyncIPC |
| ServiceFwIPC * | m_broadcastIPC |
| ServiceFwIPC * | m_syncIPC |
| Public Member Functions | |
|---|---|
| ServiceIPCClient(QObject *, const TServiceIPCBackends &) | |
| virtual | ~ServiceIPCClient() |
| bool | connect(const QString &) |
| void | disconnect() |
| QByteArray | readAll() |
| void | sendAsync(const QString &, const QByteArray &) |
| bool | sendSync(const QString &, const QByteArray &) |
| qint32 | sessionId() |
| bool | startServer(const QString &, const QString &) |
| Public Signals | |
|---|---|
| void | error(int) |
| void | handleMessage(QByteArray) |
| void | readAsync(QByteArray) |
| void | readyRead() |
| 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() | |
This class is an extension to the current ServiceIPCClient interface with the additional functionality of receiving messages from the server
| ServiceFwIPC * | m_asyncIPC | [protected] |
| ServiceFwIPC * | m_broadcastIPC | [protected] |
| ServiceFwIPC * | m_syncIPC | [protected] |
| ServiceIPCClient | ( | QObject * | aParent, |
| const TServiceIPCBackends & | aBackend = EDefaultIPC | ||
| ) | [explicit] | ||
Constructor
| Parameters | |
|---|---|
| aParent | Parent to this QObject |
| aBackend | IPC backend to use |
| bool | connect | ( | const QString & | aServerName | ) |
Connect to the server
| Parameters | |
|---|---|
| aServerName | name of the server to connect to |
| void | error | ( | int | aError | ) | [signal] |
: For local socket implementation, the error can be interpreted as QLocalSocket::LocalSocketError
| Parameters | |
|---|---|
| aError | error code |
| void | handleMessage | ( | QByteArray | aMessage | ) | [signal] |
| QByteArray | readAll | ( | ) |
Reads all data pending in the buffer. For Sync version this will wait until all of the data is available.
| void | readAsync | ( | QByteArray | ipcResult | ) | [signal] |
| void | readyRead | ( | ) | [signal] |
Handle when a reply has been received for async requests Emitted when the entire data packet has been received
| void | sendAsync | ( | const QString & | aRequestType, |
| const QByteArray & | aData | |||
| ) | ||||
Errors will be emitted via errors() signal
| Parameters | |
|---|---|
| aRequestType | name of the request |
| aData | data to send |