Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2017-04-05 10:38:46 +0300
committerChristian Kamm <mail@ckamm.de>2017-04-21 11:10:12 +0300
commita1f7168d2a7d9f6d5181e55af644d15745fd2026 (patch)
tree481ac7aad0c38993c63263bcd3160a7e94b36b80 /src/gui/sharemanager.h
parent1e1c2f8de2d1b81cbff81272e08fc52581e2d4a9 (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/sharemanager.h')
-rw-r--r--src/gui/sharemanager.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/sharemanager.h b/src/gui/sharemanager.h
index eaec2e61f..742170dff 100644
--- a/src/gui/sharemanager.h
+++ b/src/gui/sharemanager.h
@@ -132,6 +132,7 @@ public:
explicit LinkShare(AccountPtr account,
const QString& id,
const QString& path,
+ const QString& name,
const Permissions permissions,
bool passwordSet,
const QUrl& url,
@@ -157,6 +158,11 @@ public:
void setPublicUpload(bool publicUpload);
/*
+ * Returns the name of the link share.
+ */
+ QString getName() const;
+
+ /*
* Set the password
*
* On success the passwordSet signal is emitted
@@ -195,6 +201,7 @@ private slots:
void slotSetPasswordError(int statusCode, const QString &message);
private:
+ QString _name;
bool _passwordSet;
QDate _expireDate;
QUrl _url;
@@ -214,14 +221,16 @@ public:
* Tell the manager to create a link share
*
* @param path The path of the linkshare relative to the user folder on the server
- * @param password The password of the share
+ * @param name The name of the created share, may be empty
+ * @param password The password of the share, may be empty
*
* On success the signal linkShareCreated is emitted
* For older server the linkShareRequiresPassword signal is emitted when it seems appropiate
* In case of a server error the serverError signal is emitted
*/
void createLinkShare(const QString& path,
- const QString& password="");
+ const QString& name,
+ const QString& password);
/**
* Tell the manager to create a new share