NotificationManager::Job

Search for usage in LXR

NotificationManager::Job Class Reference

#include <job.h>

Inheritance diagram for NotificationManager::Job:

Properties

QString applicationIconName
 
QString applicationName
 
QString descriptionLabel1
 
QString descriptionLabel2
 
QUrl descriptionUrl
 
QString descriptionValue1
 
QString descriptionValue2
 
QString desktopEntry
 
QUrl destUrl
 
int error
 
bool hasDetails
 
bool killable
 
int percentage
 
qulonglong processedBytes
 
qulonglong processedDirectories
 
qulonglong processedFiles
 
qulonglong processedItems
 
qulonglong speed
 
Notifications::JobState state
 
QString summary
 
bool suspendable
 
QString text
 
qulonglong totalBytes
 
qulonglong totalDirectories
 
qulonglong totalFiles
 
qulonglong totalItems
 
- Properties inherited from QObject
 objectName
 

Signals

void descriptionLabel1Changed ()
 
void descriptionLabel2Changed ()
 
void descriptionUrlChanged ()
 
void descriptionValue1Changed ()
 
void descriptionValue2Changed ()
 
void destUrlChanged ()
 
void dismissedChanged ()
 
void errorChanged (int error)
 
void errorTextChanged (const QString &errorText)
 
void expiredChanged ()
 
void hasDetailsChanged ()
 
void percentageChanged (int percentage)
 
void processedAmountChanged ()
 
void processedBytesChanged ()
 
void processedDirectoriesChanged ()
 
void processedFilesChanged ()
 
void processedItemsChanged ()
 
void speedChanged ()
 
void stateChanged (Notifications::JobState jobState)
 
void summaryChanged ()
 
void textChanged ()
 
void totalAmountChanged ()
 
void totalBytesChanged ()
 
void totalDirectoriesChanged ()
 
void totalFilesChanged ()
 
void totalItemsChanged ()
 
void updatedChanged ()
 

Public Member Functions

 Job (uint id, QObject *parent=nullptr)
 
QString applicationIconName () const
 
QString applicationName () const
 
QDateTime created () const
 
QString descriptionLabel1 () const
 
QString descriptionLabel2 () const
 
QUrl descriptionUrl () const
 
QString descriptionValue1 () const
 
QString descriptionValue2 () const
 
QString desktopEntry () const
 
QUrl destUrl () const
 
bool dismissed () const
 
int error () const
 
QString errorText () const
 
bool expired () const
 
bool hasDetails () const
 
uint id () const
 
Q_INVOKABLE void kill ()
 
bool killable () const
 
int percentage () const
 
qulonglong processedBytes () const
 
qulonglong processedDirectories () const
 
qulonglong processedFiles () const
 
qulonglong processedItems () const
 
void resetUpdated ()
 
Q_INVOKABLE void resume ()
 
void setApplicationIconName (const QString &applicationIconName)
 
void setApplicationName (const QString &applicationName)
 
void setDesktopEntry (const QString &desktopEntry)
 
void setDismissed (bool dismissed)
 
void setError (int error)
 
void setErrorText (const QString &errorText)
 
void setExpired (bool expired)
 
void setKillable (bool killable)
 
void setState (Notifications::JobState jobState)
 
void setSuspendable (bool suspendable)
 
void setTransient (bool transient)
 
qulonglong speed () const
 
Notifications::JobState state () const
 
QString summary () const
 
Q_INVOKABLE void suspend ()
 
bool suspendable () const
 
QString text () const
 
qulonglong totalBytes () const
 
qulonglong totalDirectories () const
 
qulonglong totalFiles () const
 
qulonglong totalItems () const
 
bool transient () const
 
QDateTime updated () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

Represents a single job.

A Job represents a special notification that has some progress information and in some cases can be suspended or killed.

Author
Kai Uwe Broulik [email protected][email protected]riva[email protected]t.bro[email protected]ulik[email protected].de

Definition at line 29 of file job.h.

Property Documentation

◆ applicationIconName

QString Job::applicationIconName
read

The icon name of the application owning the job, e.g.

"system-file-manager".

Definition at line 55 of file job.h.

◆ applicationName

QString Job::applicationName
read

The user-visible name of the application owning the job, e.g.

"Dolphin".

Definition at line 51 of file job.h.

◆ descriptionUrl

QUrl Job::descriptionUrl
read

This tries to generate a valid URL for a file that's being processed by converting descriptionValue2 (which is assumed to be the Destination) and if that isn't valid, descriptionValue1 to a URL.

Definition at line 123 of file job.h.

◆ desktopEntry

QString Job::desktopEntry
read

The desktop entry of the application owning the job, e.g.

"org.kde.dolphin".

Definition at line 47 of file job.h.

◆ destUrl

QUrl Job::destUrl
read

The destination URL of a job.

Definition at line 85 of file job.h.

◆ error

int Job::error
read

The error code of the job failure.

Definition at line 67 of file job.h.

◆ hasDetails

bool Job::hasDetails
read

Whether there are any details available for this job.

This is true as soon as any of the following are available:

  • processed amount (of any unit)
  • total amount (of any unit)
  • description label or value (of any row)
  • speed

Definition at line 117 of file job.h.

◆ killable

bool Job::killable
read

Whether the job can be aborted.

See also
Notifications::killJob

Definition at line 80 of file job.h.

◆ percentage

int Job::percentage
read

The total percentage (0-100) of job completion.

Definition at line 63 of file job.h.

◆ speed

qulonglong Job::speed
read

Current transfer rate in Byte/s.

Definition at line 90 of file job.h.

◆ state

Notifications::JobState Job::state
read

The state the job is currently in.

Definition at line 59 of file job.h.

◆ summary

QString Job::summary
read

The job infoMessage, e.g.

"Copying".

Definition at line 36 of file job.h.

◆ suspendable

bool Job::suspendable
read

Whether the job can be suspended.

See also
Notifications::suspendJob
Notifications::resumeJob

Definition at line 74 of file job.h.

◆ text

QString Job::text
read

User-friendly compact description text of the job, for example "42 of 1337 files to "~/some/folder", or "SomeFile.txt to Downloads".

Definition at line 42 of file job.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 03:57:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.