ShareDialog: Add support for multiple public link shares #5655
authorChristian Kamm <mail@ckamm.de>
Wed, 5 Apr 2017 07:38:46 +0000 (09:38 +0200)
committerChristian Kamm <mail@ckamm.de>
Fri, 21 Apr 2017 08:10:12 +0000 (10:10 +0200)
commita1f7168d2a7d9f6d5181e55af644d15745fd2026
tree481ac7aad0c38993c63263bcd3160a7e94b36b80
parent1e1c2f8de2d1b81cbff81272e08fc52581e2d4a9
ShareDialog: Add support for multiple public link shares #5655

Starting from oC 10.0.0 having several public link shares with
different attributes for a path will be supported. This adds
functionality to create, edit and delete these public link shares.

The behavior is currently gated by server version, but should be
adapted to use a capability as soon as one is introduced, see
owncloud/core#27622.

The UI reduces to a single-share version when talking to older servers.

Testing scenarios:
* Link sharing is disabled (by capability, not by theme)
* Required passwords
* Required expiry
* Forbidden 'allow upload' for folders
* New and old servers
src/gui/ocssharejob.cpp
src/gui/ocssharejob.h
src/gui/sharedialog.cpp
src/gui/sharelinkwidget.cpp
src/gui/sharelinkwidget.h
src/gui/sharelinkwidget.ui
src/gui/sharemanager.cpp
src/gui/sharemanager.h