summaryrefslogtreecommitdiffstats
path: root/kresources/caldav/job.h
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/caldav/job.h')
-rw-r--r--kresources/caldav/job.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/kresources/caldav/job.h b/kresources/caldav/job.h
index 853ef5610..4f3430c90 100644
--- a/kresources/caldav/job.h
+++ b/kresources/caldav/job.h
@@ -20,6 +20,7 @@
#include <qthread.h>
#include <qstring.h>
#include <qdatetime.h>
+#include <qapplication.h>
extern "C" {
#include <libcaldav/caldav.h>
@@ -53,6 +54,20 @@ public:
}
/**
+ * Sets the parent qobject.
+ */
+ virtual void setParent(QObject *s) {
+ mParent = s;
+ }
+
+ /**
+ * Sets the type (0==read, 1==write)
+ */
+ virtual void setType(int s) {
+ mType = s;
+ }
+
+ /**
* @return URL to load.
*/
virtual QString url() const {
@@ -60,6 +75,20 @@ public:
}
/**
+ * @return parent object
+ */
+ virtual QObject *parent() {
+ return mParent;
+ }
+
+ /**
+ * @return type
+ */
+ virtual int type() {
+ return mType;
+ }
+
+ /**
* @return true if downloading process failed.
*/
virtual bool error() const {
@@ -121,6 +150,8 @@ private:
bool mError;
QString mErrorString;
long mErrorNumber;
+ QObject *mParent;
+ int mType;
void enableCaldavDebug(runtime_info*);
};