KCGroups
kapplicationscopelister.cpp
45 m_manager = new org::freedesktop::systemd1::Manager(service, path, QDBusConnection::sessionBus(), q);
47 const auto *watcher = new QDBusPendingCallWatcher(m_manager->ListUnitsByPatterns({}, {glob}), q);
48 QObject::connect(watcher, &QDBusPendingCallWatcher::finished, q, [this](QDBusPendingCallWatcher *watcher) {
53 QObject::connect(subscribeWatcher, &QDBusPendingCallWatcher::finished, q, [this](QDBusPendingCallWatcher *watcher) {
100 void KApplicationScopeListerPrivate::handleUnitNew(const QString &id, const QDBusObjectPath &path)
112 void KApplicationScopeListerPrivate::handleUnitRemoved(const QString &name, const QDBusObjectPath &path)
123 void KApplicationScopeListerPrivate::setError(KApplicationScopeLister::ErrorCode code, const QString &message)
QStringList paths
list of dbus paths that corresponds to currently running applications @accessors paths() @notifySigna...
Definition: kapplicationscopelister.h:33
void finished(QDBusPendingCallWatcher *self)
QString wildcardToRegularExpression(const QString &pattern)
QString message() const const
@ CannotSubscribeError
Error while trying to subscribe to systemd manager signals.
Definition: kapplicationscopelister.h:53
bool isError() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void deleteLater()
QDBusConnection sessionBus()
Keeps an updated list of desktop application systemd scopes.
Definition: kapplicationscopelister.h:17
QDBusError error() const const
QString path(const QString &relativePath)
const char * name(StandardAction id)
QVariant argumentAt(int index) const const
ErrorCode lastError
code of the last error that occurred (NoError if none) @accessors lastError() @notifySignal errorOccu...
Definition: kapplicationscopelister.h:26
QString message
QString & append(QChar ch)
NoError
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:13:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:13:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.