diff options
author | Christian Kamm <mail@ckamm.de> | 2019-04-17 10:23:28 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2019-04-23 10:22:21 +0300 |
commit | 8848aba0745d997dcd3b3557c119ba513ccae8f3 (patch) | |
tree | 314e0d3b54bf9b1014e9d9e8bef12691519779bb /src/gui/sharelinkwidget.h | |
parent | 96831247e24118018b4ccfca70253cd47996e3e4 (diff) |
Link shares: Adjust creation flow
The important thing is that, similar to the web link share creation
flow, the share properties can be set before creation is done. This
allows better handling of error conditions. One such condition is the
password policy app restricting valid expire dates.
See owncloud/enterprise#3271
Diffstat (limited to 'src/gui/sharelinkwidget.h')
-rw-r--r-- | src/gui/sharelinkwidget.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/sharelinkwidget.h b/src/gui/sharelinkwidget.h index 365c596b7..ab65a81ec 100644 --- a/src/gui/sharelinkwidget.h +++ b/src/gui/sharelinkwidget.h @@ -19,6 +19,7 @@ #include "accountfwd.h" #include "sharepermissions.h" #include "QProgressIndicator.h" +#include "sharepermissions.h" #include <QDialog> #include <QSharedPointer> #include <QList> @@ -75,7 +76,7 @@ private slots: void slotDeleteShareFetched(); void slotCreateShareFetched(const QSharedPointer<LinkShare> &share); - void slotCreateShareRequiresPassword(const QString &message); + void slotCreateShareForbidden(const QString &message); void slotPasswordSet(); void slotExpireSet(); void slotPermissionsSet(); @@ -99,8 +100,13 @@ private: /** Retrieve a share's name, accounting for _namesSupported */ QString shareName(const LinkShare &share) const; + /** Permission implied by current ui state */ + SharePermissions uiPermissionState() const; + /** * Retrieve the selected share, returning 0 if none. + * + * Returning 0 means that the "Create new..." item is selected. */ QSharedPointer<LinkShare> selectedShare() const; |