Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadiserializer.cpp
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | 186 | case KCalCore::Recurrence::rDaily: | |||
---|---|---|---|---|---|
187 | task->setRecurrence(Domain::Task::RecursDaily); | 187 | task->setRecurrence(Domain::Task::RecursDaily); | ||
188 | break; | 188 | break; | ||
189 | case KCalCore::Recurrence::rWeekly: | 189 | case KCalCore::Recurrence::rWeekly: | ||
190 | task->setRecurrence(Domain::Task::RecursWeekly); | 190 | task->setRecurrence(Domain::Task::RecursWeekly); | ||
191 | break; | 191 | break; | ||
192 | case KCalCore::Recurrence::rMonthlyDay: | 192 | case KCalCore::Recurrence::rMonthlyDay: | ||
193 | task->setRecurrence(Domain::Task::RecursMonthly); | 193 | task->setRecurrence(Domain::Task::RecursMonthly); | ||
194 | break; | 194 | break; | ||
195 | case KCalCore::Recurrence::rYearlyDay: | ||||
196 | task->setRecurrence(Domain::Task::RecursYearly); | ||||
197 | break; | ||||
195 | default: | 198 | default: | ||
196 | // Other cases are not supported for now and as such just ignored | 199 | // Other cases are not supported for now and as such just ignored | ||
197 | break; | 200 | break; | ||
198 | } | 201 | } | ||
199 | 202 | | |||
200 | QMimeDatabase mimeDb; | 203 | QMimeDatabase mimeDb; | ||
201 | const auto attachmentsInput = todo->attachments(); | 204 | const auto attachmentsInput = todo->attachments(); | ||
202 | Domain::Task::Attachments attachments; | 205 | Domain::Task::Attachments attachments; | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 261 | case Domain::Task::RecursDaily: | |||
259 | todo->recurrence()->setDaily(1); | 262 | todo->recurrence()->setDaily(1); | ||
260 | break; | 263 | break; | ||
261 | case Domain::Task::RecursWeekly: | 264 | case Domain::Task::RecursWeekly: | ||
262 | todo->recurrence()->setWeekly(1); | 265 | todo->recurrence()->setWeekly(1); | ||
263 | break; | 266 | break; | ||
264 | case Domain::Task::RecursMonthly: | 267 | case Domain::Task::RecursMonthly: | ||
265 | todo->recurrence()->setMonthly(1); | 268 | todo->recurrence()->setMonthly(1); | ||
266 | break; | 269 | break; | ||
270 | case Domain::Task::RecursYearly: | ||||
271 | todo->recurrence()->setYearly(1); | ||||
272 | break; | ||||
267 | } | 273 | } | ||
268 | 274 | | |||
269 | for (const auto &attachment : task->attachments()) { | 275 | for (const auto &attachment : task->attachments()) { | ||
270 | KCalCore::Attachment::Ptr attach(new KCalCore::Attachment(QByteArray())); | 276 | KCalCore::Attachment::Ptr attach(new KCalCore::Attachment(QByteArray())); | ||
271 | if (attachment.isUri()) | 277 | if (attachment.isUri()) | ||
272 | attach->setUri(attachment.uri().toString()); | 278 | attach->setUri(attachment.uri().toString()); | ||
273 | else | 279 | else | ||
274 | attach->setDecodedData(attachment.data()); | 280 | attach->setDecodedData(attachment.data()); | ||
▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines |