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) {
100void KApplicationScopeListerPrivate::handleUnitNew(const QString &id, const QDBusObjectPath &path)
112void KApplicationScopeListerPrivate::handleUnitRemoved(const QString &name, const QDBusObjectPath &path)
123void KApplicationScopeListerPrivate::setError(KApplicationScopeLister::ErrorCode code, const QString &message)
Keeps an updated list of desktop application systemd scopes.
Definition kapplicationscopelister.h:18
ErrorCode lastError
code of the last error that occurred (NoError if none) @accessors lastError() @notifySignal errorOccu...
Definition kapplicationscopelister.h:26
QStringList paths
list of dbus paths that corresponds to currently running applications @accessors paths() @notifySigna...
Definition kapplicationscopelister.h:33
@ CannotSubscribeError
Error while trying to subscribe to systemd manager signals.
Definition kapplicationscopelister.h:53
NoError
QString name(GameStandardAction id)
QString path(const QString &relativePath)
QDBusConnection sessionBus()
QString message() const const
void finished(QDBusPendingCallWatcher *self)
QVariant argumentAt(int index) const const
QDBusError error() const const
bool isError() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
QString wildcardToRegularExpression(QStringView pattern, WildcardConversionOptions options)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.