Kstars
serialportassistant.cpp
25SerialPortAssistant::SerialPortAssistant(ProfileInfo *profile, QWidget *parent) : QDialog(parent),
33 else if (im.load(QDir(QCoreApplication::applicationDirPath() + "/../Resources/kstars").absolutePath() +
47 connect(rulesView->selectionModel(), &QItemSelectionModel::selectionChanged, [&](const QItemSelection & selected)
92 i18n("To assign a permanent designation to the device, you need to unplug the device from stellarmate "
101 QPushButton *homeButton = new QPushButton(QIcon::fromTheme("go-home"), i18n("Home"), devicePage);
127 i18n("Assign the permanent name based on which physical port the device is plugged to in StellarMate. "
128 "This is useful to distinguish between two identical USB adapters. The device must <b>always</b> be "
191 QUrl url(QString("http://%1:%2/api/udev/rules").arg(m_Profile->host).arg(m_Profile->INDIWebManagerPort));
233 QUrl url(QString("http://%1:%2/api/udev/remove_rule").arg(m_Profile->host).arg(m_Profile->INDIWebManagerPort));
246 if (INDI::WebManager::getWebManagerResponse(QNetworkAccessManager::PostOperation, url, nullptr, &data))
258 QButtonGroup *actionGroup = serialPortWizard->currentWidget()->findChild<QButtonGroup*>("actionGroup");
263 QPushButton *startButton = serialPortWizard->currentWidget()->findChild<QPushButton*>("startButton");
274 QUrl url(QString("http://%1:%2/api/udev/watch").arg(m_Profile->host).arg(m_Profile->INDIWebManagerPort));
300 i18n("Failed to detect any devices. Please make sure device is powered and connected to StellarMate via USB."));
311 i18n("Failed to detect any devices. Please make sure device is powered and connected to StellarMate via USB."));
334 QCheckBox *hardwareSlot = serialPortWizard->currentWidget()->findChild<QCheckBox*>("hardwareSlot");
350 KSNotification::error(i18n("Duplicate devices detected. You must remove one mapping or enable hardware slot mapping."));
365 QUrl url(QString("http://%1:%2/api/udev/add_rule").arg(m_Profile->host).arg(m_Profile->INDIWebManagerPort));
367 if (INDI::WebManager::getWebManagerResponse(QNetworkAccessManager::PostOperation, url, nullptr, &data))
374 devicePort->at(0)->setText(QString("/dev/%1").arg(rule["symlink"].toString()).toLatin1().constData());
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
char * toString(const EngineQuery &query)
KCOREADDONS_EXPORT Result match(QStringView pattern, QStringView str)
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
KIOCORE_EXPORT SimpleJob * symlink(const QString &target, const QUrl &dest, JobFlags flags=DefaultFlags)
const QList< QKeySequence > & close()
bool isChecked() const const
void clicked(bool checked)
void setText(const QString &text)
void toggled(bool checked)
void rowsRemoved(const QModelIndex &parent, int first, int last)
virtual void addItem(QLayoutItem *item) override
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void addButton(QAbstractButton *button, int id)
QList< QAbstractButton * > buttons() const const
void setExclusive(bool)
QString applicationDirPath()
QIcon fromTheme(const QString &name)
QString errorString() const const
QByteArray readAll()
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
bool isEmpty() const const
Compact
QJsonArray array() const const
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
bool isObject() const const
QJsonObject object() const const
QByteArray toJson(JsonFormat format) const const
bool contains(QLatin1StringView key) const const
iterator insert(QLatin1StringView key, const QJsonValue &value)
void clear()
QMovie * movie() const const
void setMovie(QMovie *movie)
void setText(const QString &)
void setWordWrap(bool on)
void addWidget(QWidget *w)
void append(QList< T > &&value)
qsizetype count() const const
qsizetype indexOf(const AT &value, qsizetype from) const const
bool isValid() const const
int row() const const
void start()
void stop()
GetOperation
QNetworkReply * get(const QNetworkRequest &request)
NoError
NetworkError error() const const
void finished()
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
T findChild(const QString &name, Qt::FindChildOptions options) const const
objectName
T qobject_cast(QObject *object)
QObject * sender() const const
void setObjectName(QAnyStringView name)
bool load(const QString &fileName, const char *format, Qt::ImageConversionFlags flags)
Preferred
AppLocalDataLocation
QString arg(Args &&... args) const const
qsizetype lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const const
QString mid(qsizetype position, qsizetype n) const const
MatchExactly
Horizontal
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QWidget(QWidget *parent, Qt::WindowFlags f)
QLayout * layout() const const
void setFixedSize(const QSize &s)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:09:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:09:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.