Purpose
devicesmodel.cpp
19 new OrgKdeKdeconnectDaemonInterface(QStringLiteral("org.kde.kdeconnect"), QStringLiteral("/modules/kdeconnect"), QDBusConnection::sessionBus(), this))
21 connect(m_daemonInterface, &OrgKdeKdeconnectDaemonInterface::deviceAdded, this, &DevicesModel::deviceAdded);
22 connect(m_daemonInterface, &OrgKdeKdeconnectDaemonInterface::deviceVisibilityChanged, this, &DevicesModel::deviceUpdated);
23 connect(m_daemonInterface, &OrgKdeKdeconnectDaemonInterface::deviceRemoved, this, &DevicesModel::deviceRemoved);
26 new QDBusServiceWatcher(QStringLiteral("org.kde.kdeconnect"), QDBusConnection::sessionBus(), QDBusServiceWatcher::WatchForOwnerChange, this);
61 auto dev = std::make_unique<OrgKdeKdeconnectDeviceInterface>(QStringLiteral("org.kde.kdeconnect"),
113 QDBusPendingReply<QStringList> call = m_daemonInterface->devices(true /*onlyReachable*/, true /*onlyPaired*/);
116 QObject::connect(watcher, &QDBusPendingCallWatcher::finished, this, &DevicesModel::gotDeviceList);
137 auto interface = std::make_unique<OrgKdeKdeconnectDeviceInterface>(QStringLiteral("org.kde.kdeconnect"),
151 connect(dev.interface.get(), &OrgKdeKdeconnectDeviceInterface::nameChanged, this, [this, id = dev.id]() {
void beginInsertRows(const QModelIndex &parent, int first, int last)
void beginRemoveRows(const QModelIndex &parent, int first, int last)
void beginResetModel()
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles)
void endInsertRows()
void endRemoveRows()
void endResetModel()
virtual QHash< int, QByteArray > roleNames() const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QDBusConnection sessionBus()
QString message() const const
void finished(QDBusPendingCallWatcher *self)
QDBusError error() const const
bool isError() const const
typename Select< 0 >::Type value() const const
WatchForOwnerChange
void serviceRegistered(const QString &serviceName)
void serviceUnregistered(const QString &serviceName)
iterator insert(const Key &key, const T &value)
qsizetype count() const const
bool isEmpty() const const
bool isValid() const const
int row() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:49:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:49:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.