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) ...@@ -227,6 +227,8 @@ void OwncloudController::finish(bool contactsEnabled)
carddavUrl.setPath(carddavUrl.path() + QString("/remote.php/carddav/addressbooks/%1").arg(m_username)); carddavUrl.setPath(carddavUrl.path() + QString("/remote.php/carddav/addressbooks/%1").arg(m_username));
data.insert("carddavUrl", carddavUrl); data.insert("carddavUrl", carddavUrl);
data.insert("dav/storagePath", QStringLiteral("/remote.php/webdav"));
Q_EMIT wizardFinished(m_username, m_password, data); Q_EMIT wizardFinished(m_username, m_password, data);
} }
...@@ -12,8 +12,5 @@ ...@@ -12,8 +12,5 @@
<setting name="method">password</setting> <setting name="method">password</setting>
<setting name="mechanism">password</setting> <setting name="mechanism">password</setting>
</group> </group>
<group name="dav">
<setting name="host"></setting>
</template> </template>
</provider> </provider>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<service id="owncloud-storage"> <service id="owncloud-storage">
<type>dav-storage</type> <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> <_name>Storage</_name>
<icon>owncloud-storage</icon> <icon>owncloud-storage</icon>
<provider>owncloud</provider> <provider>owncloud</provider>
...@@ -10,7 +8,8 @@ ...@@ -10,7 +8,8 @@
<template> <template>
<group name="dav"> <group name="dav">
<setting name="path">/remote.php/webdav/</setting> <setting name="host"></setting>
<setting name="storagePath"></setting>
</group> </group>
</template> </template>
</service> </service>
\ No newline at end of file
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