|
|
|
@ -50,24 +50,24 @@ int CalDavWriter::runJob(runtime_info* RT) {
|
|
|
|
|
int res = OK;
|
|
|
|
|
|
|
|
|
|
if ((OK == res) && (url() != "")) {
|
|
|
|
|
kdDebug() << "pushing added objects";
|
|
|
|
|
kdDebug() << "pushing added objects" << '\n';
|
|
|
|
|
res = pushObjects(mAdded, caldav_add_object, OK, RT);
|
|
|
|
|
if (OK == res) {
|
|
|
|
|
#ifdef USE_CALDAV_MODIFY
|
|
|
|
|
kdDebug() << "pushing changed objects";
|
|
|
|
|
kdDebug() << "pushing changed objects" << '\n';
|
|
|
|
|
res = pushObjects(mChanged, caldav_modify_object, OK, RT);
|
|
|
|
|
if (OK == res) {
|
|
|
|
|
kdDebug() << "pushing deleted objects";
|
|
|
|
|
kdDebug() << "pushing deleted objects" << '\n';
|
|
|
|
|
res = pushObjects(mDeleted, caldav_delete_object, OK, RT);
|
|
|
|
|
}
|
|
|
|
|
#else // if USE_CALDAV_MODIFY
|
|
|
|
|
kdDebug() << "pushing changed objects (delete)";
|
|
|
|
|
kdDebug() << "pushing changed objects (delete)" << '\n';
|
|
|
|
|
res = pushObjects(mChanged, caldav_delete_object, OK, RT);
|
|
|
|
|
if (OK == res) {
|
|
|
|
|
kdDebug() << "pushing changed objects (add)";
|
|
|
|
|
kdDebug() << "pushing changed objects (add)" << '\n';
|
|
|
|
|
res = pushObjects(mChanged, caldav_add_object, OK, RT);
|
|
|
|
|
if (OK == res) {
|
|
|
|
|
kdDebug() << "pushing deleted objects";
|
|
|
|
|
kdDebug() << "pushing deleted objects" << '\n';
|
|
|
|
|
res = pushObjects(mDeleted, caldav_delete_object, OK, RT);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -78,24 +78,24 @@ int CalDavWriter::runJob(runtime_info* RT) {
|
|
|
|
|
int tasksres = OK;
|
|
|
|
|
|
|
|
|
|
if ((OK == tasksres) && (tasksUrl() != "")) {
|
|
|
|
|
kdDebug() << "pushing added tasks objects";
|
|
|
|
|
kdDebug() << "pushing added tasks objects" << '\n';
|
|
|
|
|
tasksres = pushTasksObjects(mTasksAdded, caldav_add_object, OK, RT);
|
|
|
|
|
if (OK == tasksres) {
|
|
|
|
|
#ifdef USE_CALDAV_TASKS_MODIFY
|
|
|
|
|
kdDebug() << "pushing changed objects";
|
|
|
|
|
kdDebug() << "pushing changed objects" << '\n';
|
|
|
|
|
tasksres = pushTasksObjects(mTasksChanged, caldav_tasks_modify_object, OK, RT);
|
|
|
|
|
if (OK == tasksres) {
|
|
|
|
|
kdDebug() << "pushing deleted objects";
|
|
|
|
|
kdDebug() << "pushing deleted objects" << '\n';
|
|
|
|
|
tasksres = pushTasksObjects(mTasksDeleted, caldav_tasks_delete_object, OK, RT);
|
|
|
|
|
}
|
|
|
|
|
#else // if USE_CALDAV_TASKS_MODIFY
|
|
|
|
|
kdDebug() << "pushing changed objects (delete)";
|
|
|
|
|
kdDebug() << "pushing changed objects (delete)" << '\n';
|
|
|
|
|
tasksres = pushTasksObjects(mTasksChanged, caldav_tasks_delete_object, OK, RT);
|
|
|
|
|
if (OK == tasksres) {
|
|
|
|
|
kdDebug() << "pushing changed objects (add)";
|
|
|
|
|
kdDebug() << "pushing changed objects (add)" << '\n';
|
|
|
|
|
tasksres = pushTasksObjects(mTasksChanged, caldav_add_object, OK, RT);
|
|
|
|
|
if (OK == tasksres) {
|
|
|
|
|
kdDebug() << "pushing deleted objects";
|
|
|
|
|
kdDebug() << "pushing deleted objects" << '\n';
|
|
|
|
|
tasksres = pushTasksObjects(mTasksDeleted, caldav_tasks_delete_object, OK, RT);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -106,24 +106,24 @@ int CalDavWriter::runJob(runtime_info* RT) {
|
|
|
|
|
int journalsres = OK;
|
|
|
|
|
|
|
|
|
|
if ((OK == journalsres) && (tasksUrl() != "")) {
|
|
|
|
|
kdDebug() << "pushing added tasks objects";
|
|
|
|
|
kdDebug() << "pushing added tasks objects" << '\n';
|
|
|
|
|
journalsres = pushJournalsObjects(mJournalsAdded, caldav_add_object, OK, RT);
|
|
|
|
|
if (OK == journalsres) {
|
|
|
|
|
#ifdef USE_CALDAV_TASKS_MODIFY
|
|
|
|
|
kdDebug() << "pushing changed objects";
|
|
|
|
|
kdDebug() << "pushing changed objects" << '\n';
|
|
|
|
|
journalsres = pushJournalsObjects(mJournalsChanged, caldav_tasks_modify_object, OK, RT);
|
|
|
|
|
if (OK == journalsres) {
|
|
|
|
|
kdDebug() << "pushing deleted objects";
|
|
|
|
|
kdDebug() << "pushing deleted objects" << '\n';
|
|
|
|
|
journalsres = pushJournalsObjects(mJournalsDeleted, caldav_tasks_delete_object, OK, RT);
|
|
|
|
|
}
|
|
|
|
|
#else // if USE_CALDAV_TASKS_MODIFY
|
|
|
|
|
kdDebug() << "pushing changed objects (delete)";
|
|
|
|
|
kdDebug() << "pushing changed objects (delete)" << '\n';
|
|
|
|
|
journalsres = pushJournalsObjects(mJournalsChanged, caldav_tasks_delete_object, OK, RT);
|
|
|
|
|
if (OK == journalsres) {
|
|
|
|
|
kdDebug() << "pushing changed objects (add)";
|
|
|
|
|
kdDebug() << "pushing changed objects (add)" << '\n';
|
|
|
|
|
journalsres = pushJournalsObjects(mJournalsChanged, caldav_add_object, OK, RT);
|
|
|
|
|
if (OK == journalsres) {
|
|
|
|
|
kdDebug() << "pushing deleted objects";
|
|
|
|
|
kdDebug() << "pushing deleted objects" << '\n';
|
|
|
|
|
journalsres = pushJournalsObjects(mJournalsDeleted, caldav_tasks_delete_object, OK, RT);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|