summaryrefslogtreecommitdiffstats
path: root/kresources/caldav/reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/caldav/reader.cpp')
-rw-r--r--kresources/caldav/reader.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kresources/caldav/reader.cpp b/kresources/caldav/reader.cpp
index 892b490c6..92501e4f7 100644
--- a/kresources/caldav/reader.cpp
+++ b/kresources/caldav/reader.cpp
@@ -44,26 +44,26 @@ void CalDavReader::cleanJournalsJob() {
}
int CalDavReader::runJob(runtime_info* RT) {
- kdDebug() << "reader::run, url: " << url();
+ kdDebug() << "reader::run, url: " << url() << '\n';
response* result = caldav_get_response();
CALDAV_RESPONSE res = OK;
if ((OK == res) && (url() != "")) {
if (mGetAll) {
- kdDebug() << "getting all objects";
+ kdDebug() << "getting all objects" << '\n';
res = caldav_getall_object(result, std::string(url().ascii()).c_str(), RT);
} else {
- kdDebug() << "getting object from the specified time range";
+ kdDebug() << "getting object from the specified time range" << '\n';
res = caldav_get_object(result, mTimeStart.toTime_t(), mTimeEnd.toTime_t(), std::string(url().ascii()).c_str(), RT);
}
if (OK == res) {
- kdDebug() << "success";
+ kdDebug() << "success" << '\n';
if (result->msg) {
mData = result->msg;
} else {
- kdDebug() << "empty collection";
+ kdDebug() << "empty collection" << '\n';
// empty collection
mData = "";
}
@@ -76,28 +76,28 @@ int CalDavReader::runJob(runtime_info* RT) {
}
int CalDavReader::runTasksJob(runtime_info* RT) {
- kdDebug() << "reader::run, tasksUrl: " << tasksUrl();
+ kdDebug() << "reader::run, tasksUrl: " << tasksUrl() << '\n';
response* result = caldav_get_response();
CALDAV_RESPONSE tasksres = OK;
if ((OK == tasksres) && (tasksUrl() != "")) {
- kdDebug() << "reader::run, url: " << tasksUrl();
+ kdDebug() << "reader::run, url: " << tasksUrl() << '\n';
if (mGetAll) {
- kdDebug() << "getting all objects";
+ kdDebug() << "getting all objects" << '\n';
tasksres = caldav_tasks_getall_object(result, std::string(tasksUrl().ascii()).c_str(), RT);
} else {
- kdDebug() << "getting object from the specified time range";
+ kdDebug() << "getting object from the specified time range" << '\n';
tasksres = caldav_tasks_get_object(result, mTimeStart.toTime_t(), mTimeEnd.toTime_t(), std::string(tasksUrl().ascii()).c_str(), RT);
}
if (OK == tasksres) {
- kdDebug() << "success";
+ kdDebug() << "success" << '\n';
if (result->msg) {
mTasksData = result->msg;
} else {
- kdDebug() << "empty collection";
+ kdDebug() << "empty collection" << '\n';
// empty collection
mTasksData = "";
}
@@ -110,28 +110,28 @@ int CalDavReader::runTasksJob(runtime_info* RT) {
}
int CalDavReader::runJournalsJob(runtime_info* RT) {
- kdDebug() << "reader::run, journalsUrl: " << journalsUrl();
+ kdDebug() << "reader::run, journalsUrl: " << journalsUrl() << '\n';
response* result = caldav_get_response();
CALDAV_RESPONSE journalsres = OK;
if ((OK == journalsres) && (journalsUrl() != "")) {
- kdDebug() << "reader::run, url: " << journalsUrl();
+ kdDebug() << "reader::run, url: " << journalsUrl() << '\n';
if (mGetAll) {
- kdDebug() << "getting all objects";
+ kdDebug() << "getting all objects" << '\n';
journalsres = caldav_tasks_getall_object(result, std::string(journalsUrl().ascii()).c_str(), RT);
} else {
- kdDebug() << "getting object from the specified time range";
+ kdDebug() << "getting object from the specified time range" << '\n';
journalsres = caldav_tasks_get_object(result, mTimeStart.toTime_t(), mTimeEnd.toTime_t(), std::string(journalsUrl().ascii()).c_str(), RT);
}
if (OK == journalsres) {
- kdDebug() << "success";
+ kdDebug() << "success" << '\n';
if (result->msg) {
mJournalsData = result->msg;
} else {
- kdDebug() << "empty collection";
+ kdDebug() << "empty collection" << '\n';
// empty collection
mJournalsData = "";
}