Commit fcf12081 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Resurrect owncloud dav-storage service

Allows automatically setting up an owncloud entry in Dophin etc. Same conceptually as the existing nextcloud service.
parent e81ce1ac
......@@ -227,6 +227,8 @@ void OwncloudController::finish(bool contactsEnabled)
carddavUrl.setPath(carddavUrl.path() + QString("/remote.php/carddav/addressbooks/%1").arg(m_username));
data.insert("carddavUrl", carddavUrl);
data.insert("dav/host", carddavUrl.host());
data.insert("dav/storagePath", QStringLiteral("/remote.php/webdav"));
Q_EMIT wizardFinished(m_username, m_password, data);
}
......@@ -12,8 +12,5 @@
<setting name="method">password</setting>
<setting name="mechanism">password</setting>
</group>
<group name="dav">
<setting name="host"></setting>
</group>
</template>
</provider>
<?xml version="1.0" encoding="UTF-8"?>
<service id="owncloud-storage">
<type>dav-storage</type>
<!-- ownCloud's Storage - Service name being displayed as a checkbox label to enable/disable this service
Would be nice to use the localized name of this service if it exists/makes sense -->
<_name>Storage</_name>
<icon>owncloud-storage</icon>
<provider>owncloud</provider>
......@@ -10,7 +8,8 @@
<template>
<group name="dav">
<setting name="path">/remote.php/webdav/</setting>
<setting name="host"></setting>
<setting name="storagePath"></setting>
</group>
</template>
</service>
\ No newline at end of file
</service>
Markdown is supported
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