Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Data Exporter
Commits
9cd60ef0
Commit
9cd60ef0
authored
Nov 06, 2021
by
Laurent Montel
😁
Browse files
Add dav resource support
parent
2bc6b5ea
Pipeline
#94722
passed with stage
in 11 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/calendar/exportcalendarjobinterface.cpp
View file @
9cd60ef0
...
...
@@ -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
);
}
...
...
core/calendar/importcalendarjobinterface.cpp
View file @
9cd60ef0
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment