16#ifndef _CONTROLSOCKET_H
17#define _CONTROLSOCKET_H
24#include <QLocalSocket>
46 void connectToHost(
const QHostAddress &address, quint16 port);
57 static QString
toString(
const QAbstractSocket::SocketError
error);
64 void error(QAbstractSocket::SocketError);
73 bool readLine(QString &line, QString *errmsg = 0);
bool readLine(QString &line, QString *errmsg=0)
ControlMethod::Method getMethod()
void customEvent(QEvent *event)
static QString toString(const QAbstractSocket::SocketError error)
bool readLineData(QString &line, QString *errmsg=0)
void disconnectFromHost()
void connectToHost(const QHostAddress &address, quint16 port)
bool readReply(ControlReply &reply, QString *errmsg=0)
void disconnectFromServer()
QLocalSocket * _localSocket
ControlMethod::Method _method
bool sendCommand(ControlCommand cmd, QString *errmsg=0)
void error(QAbstractSocket::SocketError)
void connectToServer(const QString &name)
ControlSocket(ControlMethod::Method method=ControlMethod::Port)