summaryrefslogtreecommitdiffstats
path: root/kresources/caldav/resource.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-28 01:04:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-28 01:04:18 +0000
commit75502cb30b6b56c4ab65ef7f3e315c3298408937 (patch)
treeac69c6b9094c7c03bde546308c4f43459c34ee21 /kresources/caldav/resource.h
parentcfa6b4114cea52b167caaaeb417f98f83edd690f (diff)
downloadtdepim-75502cb30b6b56c4ab65ef7f3e315c3298408937.tar.gz
tdepim-75502cb30b6b56c4ab65ef7f3e315c3298408937.zip
Added tasks support to CalDAV resource
This nearly completes Zimbra integration git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1168963 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/caldav/resource.h')
-rw-r--r--kresources/caldav/resource.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/kresources/caldav/resource.h b/kresources/caldav/resource.h
index ba1f3e9af..bb69807be 100644
--- a/kresources/caldav/resource.h
+++ b/kresources/caldav/resource.h
@@ -85,13 +85,20 @@ protected:
struct LoadingTask {
TQString url;
+ TQString tasksUrl;
};
struct WritingTask {
TQString url;
+ TQString tasksUrl;
+
TQString added;
TQString changed;
TQString deleted;
+
+ TQString tasksAdded;
+ TQString tasksChanged;
+ TQString tasksDeleted;
};
@@ -121,8 +128,9 @@ protected:
/**
* Initiates calendar loading process.
* @param url URL to load calendar data from.
+ * @param tasksUrl URL to load task data from.
*/
- void startLoading(const TQString& url);
+ void startLoading(const TQString& url, const TQString& tasksUrl);
/**
* Checks if the data is correct and can be parsed.
@@ -139,11 +147,19 @@ protected:
bool parseData(const TQString& data);
/**
+ * Parses the data and adds tasks to the calendar.
+ * Unlike @ref parseData, this function does NOT clear the cache.
+ * @param data calendar data.
+ * @return true on success, false on fail.
+ */
+ bool parseTasksData(const TQString& data);
+
+ /**
* Initiates calendar writing process.
* @param url URL to save calendar data to.
* @return true if write was queued successfully, false if not
*/
- bool startWriting(const TQString& url);
+ bool startWriting(const TQString& url, const TQString& tasksUrl);
/**
* Returns a list of incidences as a valid iCalendar string.