KCGroups
kapplicationscopelistmodel.cpp
17KApplicationScopeListModel::KApplicationScopeListModel(KApplicationScopeLister *lister, QObject *parent)
35 return !app->description().isEmpty() ? app->description() : !app->desktopName().isEmpty() ? app->desktopName() : app->id();
54KApplicationScopeListModelPrivate::KApplicationScopeListModelPrivate(KApplicationScopeLister *lister,
64 QObject::connect(m_lister, &KApplicationScopeLister::pathRemoved, q_ptr, [this](const QString &path) {
88 m_apps.begin(), m_apps.end(), [&path](const KApplicationScope *app) { return app->path() == path; });
A ListModel for use in QML to interact with an updated list of KApplicationScope's.
Definition kapplicationscopelistmodel.h:22
Keeps an updated list of desktop application systemd scopes.
Definition kapplicationscopelister.h:18
void pathRemoved(const QString &path)
emitted when an application is stopped
void pathAdded(const QString &path, const QString &id)
emitted when a new application is launched
A desktop application in a systemd transient scope.
Definition kapplicationscope.h:20
void propertyChanged(const QString &propertyName)
emitted when any cgroup resource property has changed
QString path(const QString &relativePath)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
int row() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
DisplayRole
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.