4 #include <QHostAddress>
6 #include <QScriptEngine>
15 QSpecServer(doc, name),
16 m_RunSpecServer(saver, this,
"runSpecServer", 1,
"Run SPEC Server?"),
17 m_SpecServerPort(saver, this,
"specServerPort", -1,
"Port for SPEC Server")
20 printf(
"QxrdServer::QxrdServer(%p)\n",
this);
30 printf(
"QxrdServer::~QxrdServer(%p)\n",
this);
48 if (QThread::currentThread() != thread()) {
49 QMetaObject::invokeMethod(
this,
"runModeChanged");
51 if (get_RunSpecServer()) {
52 startServer(QHostAddress::Any, get_SpecServerPort());
61 if (QThread::currentThread() != thread()) {
62 QMetaObject::invokeMethod(
this,
"serverPortChanged");
66 if (get_RunSpecServer()) {
67 startServer(QHostAddress::Any, get_SpecServerPort());
80 return QSpecServer::readProperty(name);
QxrdServer(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr doc, QString name)
static void readSettings(QObject *object, QSettings *settings, QString section)
qint64 qcepDebug(int cond)
virtual void writeSettings(QSettings *settings, QString section)
virtual void readSettings(QSettings *settings, QString section)
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
QVariant readProperty(QString name)
static void writeSettings(QObject *object, QSettings *settings, QString section)
void valueChanged(int val, int index)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr