Kstars
servermanager.cpp
69 QString gscDirPath = QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("gsc");
101 args << "-m" << QString::number(Options::serverTransferBufferSize()) << "-r" << "0" << "-f" << fifoFile;
119 connect(serverProcess.get(), &QProcess::errorOccurred, this, &ServerManager::processServerError);
120 connect(serverProcess.get(), &QProcess::readyReadStandardError, this, &ServerManager::processStandardError);
134 void ServerManager::insertEnvironmentPath(QProcessEnvironment *env, const QString &variable, const QString &relativePath)
154 int nset = std::count_if(m_ManagedDrivers.begin(), m_ManagedDrivers.end(), [label](auto & oneDriver)
184 qCDebug(KSTARS_INDI) << dv->getUniqueLabel() << ": Executing pre-driver delay for" << PreDelay << "second(s)";
194 QObject::connect(&script, static_cast<void (QProcess::*)(int exitCode, QProcess::ExitStatus status)>(&QProcess::finished), &loop, &QEventLoop::quit);
204 emit driverFailed(dv, i18n("Pre driver startup script failed with exit code: %1", script.exitCode()));
228 emit driverFailed(dv, i18n("Driver %1 was not found on the system. Please make sure the package that "
255 qCDebug(KSTARS_INDI) << dv->getUniqueLabel() << ": Executing post-driver delay for" << PreDelay << "second(s)";
265 QObject::connect(&script, static_cast<void (QProcess::*)(int exitCode, QProcess::ExitStatus status)>(&QProcess::finished), &loop, &QEventLoop::quit);
275 emit driverFailed(dv, i18n("Post driver startup script failed with exit code: %1", script.exitCode()));
281 m_PendingDrivers.erase(std::remove_if(m_PendingDrivers.begin(), m_PendingDrivers.end(), [dv](const auto & oneDriver)
427 //if (driverCrashed == false && (stderr.contains("stdin EOF") || stderr.contains("stderr EOF")))
435 //KSNotification::info(i18n("KStars detected INDI driver %1 crashed. Please check INDI server log in the Device Manager.", driverName));
455 KSMessageBox::Instance()->warningContinueCancel(i18n("INDI Driver <b>%1</b> crashed. Restart it?",
void start(const QString &program, const QStringList &arguments, QIODevice::OpenMode mode)
void append(const T &value)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QTextStream & endl(QTextStream &stream)
QString number(int n, int base)
ReadWrite
bool remove()
virtual bool open(QIODevice::OpenMode mode) override
singleShot
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
QChar separator()
virtual void close() override
QProcessEnvironment systemEnvironment()
void removeManagedDriver(DriverInfo *dv)
removeManagedDriver Remove managed driver from pool of drivers managed by this client manager.
Definition: clientmanager.cpp:242
ProcessError
QString applicationDirPath()
QByteArray toLatin1() const const
int exec(QEventLoop::ProcessEventsFlags flags)
void finished(int exitCode)
bool exists() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: driverinfo.h:45
virtual QString fileName() const const override
QString findExecutable(const QString &executableName, const QStringList &paths)
void flush()
Definition: clientmanager.h:37
QString i18n(const char *text, const TYPE &arg...)
void quit()
char * toString(const T &value)
ExitStatus
bool removeOne(const T &value)
bool isEmpty() const const
NETWORKMANAGERQT_EXPORT NetworkManager::Status status()
QUuid createUuid()
void setFileName(const QString &name)
void insert(const QString &name, const QString &value)
void readyReadStandardError()
void appendManagedDriver(DriverInfo *dv)
appendManagedDriver Add driver to pool of managed drivers by this client manager.
Definition: clientmanager.cpp:231
virtual void close() override
QString path() const const
QString label(StandardShortcut id)
ScriptableExtension * host() const
bool flush()
AppLocalDataLocation
QList::iterator erase(QList::iterator pos)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
KCOREADDONS_EXPORT Result match(QStringView pattern, QStringView str)
QString filePath(const QString &fileName) const const
QList::iterator begin()
QByteArray readAll()
void errorOccurred(QProcess::ProcessError error)
bool open()
QList::iterator end()
int exitCode() const const
qint64 write(const char *data, qint64 maxSize)
QDir dir() const const
SeparateChannels
void accepted()
StandardError
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.