diff options
author | Christian Kamm <mail@ckamm.de> | 2017-04-05 10:38:46 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2017-04-21 11:10:12 +0300 |
commit | a1f7168d2a7d9f6d5181e55af644d15745fd2026 (patch) | |
tree | 481ac7aad0c38993c63263bcd3160a7e94b36b80 /src/gui/ocssharejob.h | |
parent | 1e1c2f8de2d1b81cbff81272e08fc52581e2d4a9 (diff) |
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
Diffstat (limited to 'src/gui/ocssharejob.h')
-rw-r--r-- | src/gui/ocssharejob.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/ocssharejob.h b/src/gui/ocssharejob.h index beb7067f3..675c64592 100644 --- a/src/gui/ocssharejob.h +++ b/src/gui/ocssharejob.h @@ -86,10 +86,12 @@ public: * Create a new link share * * @param path The path of the file/folder to share + * @param name The name of the link share, empty name auto-generates one * @param password Optionally a password for the share */ void createLinkShare(const QString& path, - const QString& password = ""); + const QString& name, + const QString& password); /** * Create a new share |