Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadiserializer.cpp
Show First 20 Lines • Show All 506 Lines • ▼ Show 20 Lines | if (todo->attendeeCount() > 0) { | ||||
const auto delegate = std::find_if(attendees.begin(), attendees.end(), | const auto delegate = std::find_if(attendees.begin(), attendees.end(), | ||||
[] (const KCalCore::Attendee::Ptr &attendee) { | [] (const KCalCore::Attendee::Ptr &attendee) { | ||||
return attendee->status() == KCalCore::Attendee::Accepted || attendee->status() == KCalCore::Attendee::NeedsAction; | return attendee->status() == KCalCore::Attendee::Accepted || attendee->status() == KCalCore::Attendee::NeedsAction; | ||||
}); | }); | ||||
if (delegate != attendees.end()) { | if (delegate != attendees.end()) { | ||||
task->setDelegate(Domain::Task::Delegate((*delegate)->name(), (*delegate)->email())); | task->setDelegate(Domain::Task::Delegate((*delegate)->name(), (*delegate)->email())); | ||||
} | } | ||||
} | } | ||||
if(todo->organizer()) { | |||||
task->setProperty("organizer", todo->organizer()->fullName()); | |||||
} | |||||
if (!todo->alarms().isEmpty()) { | if (!todo->alarms().isEmpty()) { | ||||
task->setAlarms(fromKCalAlarm(todo->alarms())); | task->setAlarms(fromKCalAlarm(todo->alarms())); | ||||
} else { | } else { | ||||
task->setAlarms(Domain::Alarm::List()); | task->setAlarms(Domain::Alarm::List()); | ||||
} | } | ||||
if (todo->recurs()) { | if (todo->recurs()) { | ||||
Domain::Recurrence::Ptr recurrence(fromKCalRecurrence(todo->recurrence())); | Domain::Recurrence::Ptr recurrence(fromKCalRecurrence(todo->recurrence())); | ||||
task->setRecurrence(recurrence); | task->setRecurrence(recurrence); | ||||
▲ Show 20 Lines • Show All 528 Lines • Show Last 20 Lines |