QXRD
0.11.16
|
#include <qxrdsimpleserver.h>
Public Slots | |
void | runModeChanged () |
void | serverPortChanged () |
void | openNewConnection () |
void | connectionClosed () |
void | clientRead () |
void | shutdown () |
void | finishedCommand (QScriptValue result) |
Signals | |
void | executeCommand (QString cmd) |
Public Member Functions | |
QxrdSimpleServer (QcepSettingsSaverWPtr saver, QxrdExperimentWPtr doc, QString name) | |
virtual | ~QxrdSimpleServer () |
void | startServer (QHostAddress addr, int port) |
void | stopServer () |
virtual void | readSettings (QSettings *settings, QString section) |
virtual void | writeSettings (QSettings *settings, QString section) |
Protected Member Functions | |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) |
void | criticalMessage (QString msg) |
Properties | |
int | runSimpleServer |
int | simpleServerPort |
Private Attributes | |
QxrdExperimentWPtr | m_Experiment |
QString | m_Name |
int | m_Port |
QTcpSocket * | m_Socket |
Definition at line 13 of file qxrdsimpleserver.h.
QxrdSimpleServer::QxrdSimpleServer | ( | QcepSettingsSaverWPtr | saver, |
QxrdExperimentWPtr | doc, | ||
QString | name | ||
) |
Definition at line 10 of file qxrdsimpleserver.cpp.
References DEBUG_CONSTRUCTORS, openNewConnection(), qcepDebug(), runModeChanged(), serverPortChanged(), and QcepIntProperty::valueChanged().
|
virtual |
Definition at line 27 of file qxrdsimpleserver.cpp.
References DEBUG_CONSTRUCTORS, qcepDebug(), and stopServer().
|
slot |
Definition at line 135 of file qxrdsimpleserver.cpp.
References DEBUG_SERVER, executeCommand(), m_Socket, printMessage(), qcepDebug(), and str.
Referenced by openNewConnection().
|
slot |
Definition at line 128 of file qxrdsimpleserver.cpp.
References DEBUG_SERVER, printMessage(), and qcepDebug().
|
protected |
Definition at line 83 of file qxrdsimpleserver.cpp.
References m_Experiment.
Referenced by startServer().
|
signal |
Referenced by clientRead(), and QxrdExperiment::initialize().
|
slot |
Definition at line 150 of file qxrdsimpleserver.cpp.
References QxrdScriptEngine::convertToString(), DEBUG_SERVER, m_Socket, printMessage(), and qcepDebug().
Referenced by QxrdExperiment::initialize().
|
slot |
Definition at line 117 of file qxrdsimpleserver.cpp.
References clientRead(), DEBUG_SERVER, m_Socket, printMessage(), and qcepDebug().
Referenced by QxrdSimpleServer().
|
protected |
Definition at line 74 of file qxrdsimpleserver.cpp.
References m_Experiment.
Referenced by clientRead(), connectionClosed(), finishedCommand(), openNewConnection(), and startServer().
|
virtual |
Definition at line 36 of file qxrdsimpleserver.cpp.
References QcepProperty::readSettings(), and runModeChanged().
|
slot |
Definition at line 48 of file qxrdsimpleserver.cpp.
References startServer(), and stopServer().
Referenced by QxrdSimpleServer(), and readSettings().
|
slot |
Definition at line 61 of file qxrdsimpleserver.cpp.
References startServer(), and stopServer().
Referenced by QxrdSimpleServer().
|
slot |
Definition at line 161 of file qxrdsimpleserver.cpp.
void QxrdSimpleServer::startServer | ( | QHostAddress | addr, |
int | port | ||
) |
Definition at line 92 of file qxrdsimpleserver.cpp.
References criticalMessage(), DEBUG_SERVER, printMessage(), and qcepDebug().
Referenced by runModeChanged(), and serverPortChanged().
void QxrdSimpleServer::stopServer | ( | ) |
Definition at line 110 of file qxrdsimpleserver.cpp.
Referenced by runModeChanged(), serverPortChanged(), and ~QxrdSimpleServer().
|
virtual |
Definition at line 43 of file qxrdsimpleserver.cpp.
References QcepProperty::writeSettings().
|
private |
Definition at line 52 of file qxrdsimpleserver.h.
Referenced by criticalMessage(), and printMessage().
|
private |
Definition at line 53 of file qxrdsimpleserver.h.
|
private |
Definition at line 54 of file qxrdsimpleserver.h.
|
private |
Definition at line 55 of file qxrdsimpleserver.h.
Referenced by clientRead(), finishedCommand(), and openNewConnection().
|
readwrite |
Definition at line 20 of file qxrdsimpleserver.h.
|
readwrite |
Definition at line 23 of file qxrdsimpleserver.h.