Commit 9cd60ef0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add dav resource support

parent 2bc6b5ea
Pipeline #94722 passed with stage
in 11 minutes and 23 seconds
......@@ -61,6 +61,9 @@ void ExportCalendarJobInterface::slotWriteNextArchiveResource()
} else if (identifier.contains(QLatin1String("akonadi_ical_resource_"))) {
backupCalendarResourceFile(identifier, Utils::calendarPath());
QTimer::singleShot(0, this, &ExportCalendarJobInterface::slotCalendarJobTerminated);
} else if (identifier.contains(QLatin1String("akonadi_davgroupware_resource_"))) {
backupCalendarResourceFile(identifier, Utils::calendarPath());
QTimer::singleShot(0, this, &ExportCalendarJobInterface::slotCalendarJobTerminated);
} else {
QTimer::singleShot(0, this, &ExportCalendarJobInterface::slotCalendarJobTerminated);
}
......
......@@ -270,6 +270,7 @@ void ImportCalendarJobInterface::restoreResources()
increaseProgressDialog();
QStringList listResource;
listResource << restoreResourceFile(QStringLiteral("akonadi_ical_resource"), Utils::calendarPath(), Utils::storeCalendar());
listResource << restoreResourceFile(QStringLiteral("akonadi_davgroupware_resource_"), Utils::calendarPath(), Utils::storeCalendar());
if (!mListResourceFile.isEmpty()) {
QDir dir(mTempDirName);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment