35 QML_UNCREATABLE(
"Can only access Job via JobDetailsRole of JobsModel")
40 Q_PROPERTY(
QString summary READ summary NOTIFY summaryChanged)
46 Q_PROPERTY(
QString text READ text NOTIFY textChanged)
51 Q_PROPERTY(
QString desktopEntry READ desktopEntry CONSTANT)
55 Q_PROPERTY(
QString applicationName READ applicationName CONSTANT)
59 Q_PROPERTY(
QString applicationIconName READ applicationIconName CONSTANT)
63 Q_PROPERTY(
Notifications::JobState state READ state NOTIFY stateChanged)
67 Q_PROPERTY(
int percentage READ percentage NOTIFY percentageChanged)
71 Q_PROPERTY(
int error READ error NOTIFY errorChanged)
78 Q_PROPERTY(
bool suspendable READ suspendable CONSTANT)
84 Q_PROPERTY(
bool killable READ killable CONSTANT)
89 Q_PROPERTY(
QUrl destUrl READ destUrl NOTIFY destUrlChanged)
94 Q_PROPERTY(qulonglong speed READ speed NOTIFY speedChanged)
96 Q_PROPERTY(qulonglong processedBytes READ processedBytes NOTIFY processedBytesChanged)
97 Q_PROPERTY(qulonglong processedFiles READ processedFiles NOTIFY processedFilesChanged)
98 Q_PROPERTY(qulonglong processedDirectories READ processedDirectories NOTIFY processedDirectoriesChanged)
99 Q_PROPERTY(qulonglong processedItems READ processedItems NOTIFY processedItemsChanged)
101 Q_PROPERTY(qulonglong totalBytes READ totalBytes NOTIFY totalBytesChanged)
102 Q_PROPERTY(qulonglong totalFiles READ totalFiles NOTIFY totalFilesChanged)
103 Q_PROPERTY(qulonglong totalDirectories READ totalDirectories NOTIFY totalDirectoriesChanged)
104 Q_PROPERTY(qulonglong totalItems READ totalItems NOTIFY totalItemsChanged)
106 Q_PROPERTY(
QString descriptionLabel1 READ descriptionLabel1 NOTIFY descriptionLabel1Changed)
107 Q_PROPERTY(
QString descriptionValue1 READ descriptionValue1 NOTIFY descriptionValue1Changed)
109 Q_PROPERTY(
QString descriptionLabel2 READ descriptionLabel2 NOTIFY descriptionLabel2Changed)
110 Q_PROPERTY(
QString descriptionValue2 READ descriptionValue2 NOTIFY descriptionValue2Changed)
121 Q_PROPERTY(
bool hasDetails READ hasDetails NOTIFY hasDetailsChanged)
127 Q_PROPERTY(
QUrl descriptionUrl READ descriptionUrl NOTIFY descriptionUrlChanged)
133 Q_PROPERTY(
QUrl effectiveDestUrl READ effectiveDestUrl NOTIFY effectiveDestUrlChanged)
136 explicit
Job(uint
id,
QObject *parent =
nullptr);
151 void setDesktopEntry(const
QString &desktopEntry);
153 QString applicationName() const;
155 void setApplicationName(const
QString &applicationName);
157 QString applicationIconName() const;
159 void setApplicationIconName(const
QString &applicationIconName);
164 int percentage() const;
167 void setError(
int error);
170 void setErrorText(const
QString &errorText);
172 bool suspendable() const;
174 void setSuspendable(
bool suspendable);
176 bool killable() const;
178 void setKillable(
bool killable);
180 bool transient() const;
181 void setTransient(
bool transient);
183 QUrl destUrl() const;
185 QUrl effectiveDestUrl() const;
187 qulonglong speed() const;
189 qulonglong processedBytes() const;
190 qulonglong processedFiles() const;
191 qulonglong processedDirectories() const;
192 qulonglong processedItems() const;
194 qulonglong totalBytes() const;
195 qulonglong totalFiles() const;
196 qulonglong totalDirectories() const;
197 qulonglong totalItems() const;
199 QString descriptionLabel1() const;
200 QString descriptionValue1() const;
202 QString descriptionLabel2() const;
203 QString descriptionValue2() const;
205 bool hasDetails() const;
207 QUrl descriptionUrl() const;
209 bool expired() const;
210 void setExpired(
bool expired);
212 bool dismissed() const;
213 void setDismissed(
bool dismissed);
216 Q_INVOKABLE
void resume();
217 Q_INVOKABLE
void kill();
220 void updatedChanged();
221 void summaryChanged();
224 void percentageChanged(
int percentage);
225 void errorChanged(
int error);
226 void errorTextChanged(const
QString &errorText);
227 void destUrlChanged();
228 void effectiveDestUrlChanged();
230 void processedBytesChanged();
231 void processedFilesChanged();
232 void processedDirectoriesChanged();
233 void processedItemsChanged();
234 void processedAmountChanged();
235 void totalBytesChanged();
236 void totalFilesChanged();
237 void totalDirectoriesChanged();
238 void totalItemsChanged();
239 void totalAmountChanged();
240 void descriptionLabel1Changed();
241 void descriptionValue1Changed();
242 void descriptionLabel2Changed();
243 void descriptionValue2Changed();
244 void descriptionUrlChanged();
245 void hasDetailsChanged();
246 void expiredChanged();
247 void dismissedChanged();
253 friend class JobsModelPrivate;