Plasma-workspace
jobsmodel.cpp
43 connect(d, &JobsModelPrivate::jobViewChanged, this, [this](int row, Job *job, const QList<int> &roles) {
105 return i18nc("@info %1 notification body %2 job name", "%1 from %2", job->text(), job->applicationName());
QString text
User-friendly compact description text of the job, for example "42 of 1337 files to "~/some/folder",...
Definition job.h:46
QString applicationName
The user-visible name of the application owning the job, e.g.
Definition job.h:55
bool isValid() const
Whether the notification service could be registered.
Definition jobsmodel.cpp:70
@ JobStateStopped
The job is stopped. It has either finished (error is 0) or failed (error is not 0)
Definition notifications.h:331
@ ApplicationNameRole
The user-visible name of the application (e.g. Spectacle)
Definition notifications.h:242
@ ConfigurableRole
Whether the notification can be configured because a desktopEntry or notifyRcName is known,...
Definition notifications.h:266
@ UpdatedRole
When the notification was last updated, invalid when it hasn't been updated.
Definition notifications.h:233
@ JobDetailsRole
A pointer to a Job item itself containing more detailed information about the job.
Definition notifications.h:253
@ DismissedRole
The notification got temporarily hidden by the user but could still be interacted with.
Definition notifications.h:272
@ JobStateRole
The state of the job, either JobStateJopped, JobStateSuspended, or JobStateRunning.
Definition notifications.h:248
@ IdRole
A notification identifier. This can be uint notification ID or string application job source.
Definition notifications.h:221
@ DesktopEntryRole
The desktop entry (without .desktop suffix, e.g. org.kde.spectacle) of the application that sent the ...
Definition notifications.h:239
@ ExpiredRole
The notification timed out and closed. Actions on it cannot be invoked anymore.
Definition notifications.h:271
@ ClosableRole
Whether the item can be closed. Notifications are always closable, jobs are only when in JobStateStop...
Definition notifications.h:269
@ TypeRole
The type of model entry, either NotificationType or JobType.
Definition notifications.h:231
@ PercentageRole
The percentage of the job. Use jobsPercentage to get a global percentage for all jobs.
Definition notifications.h:249
QString i18nc(const char *context, const char *text, const TYPE &arg...)
bool checkIndex(const QModelIndex &index, CheckIndexOptions options) const const
virtual Qt::ItemFlags flags(const QModelIndex &index) const const override
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
bool isValid() const const
int row() const const
QObject * parent() const const
AccessibleDescriptionRole
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QVariant fromValue(T &&value)
bool toBool() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.