aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/basejob.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index 5c054ed1..a0b89ef7 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -136,6 +136,14 @@ public:
{
return !operator==(other);
}
+ bool operator==(int otherCode) const
+ {
+ return code == otherCode;
+ }
+ bool operator!=(int otherCode) const
+ {
+ return !operator==(otherCode);
+ }
int code;
QString message;