diff options
author | Christian Kamm <mail@ckamm.de> | 2017-05-10 10:37:10 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2017-07-07 11:49:51 +0300 |
commit | 0238a29c7cd8bffce79ac684d3aae15bed481412 (patch) | |
tree | 4593643a79402585a99c0476c2b22e2dd1e6a7ee /src/gui/sharedialog.cpp | |
parent | d01065b9a12e69ca493a232f3a8e8f3d416fed52 (diff) |
Introduce private link sharing #5023
* SocketAPI has COPL_LOCAL_LINK / EMAIL_LOCAL_LINK commands
* The nautilus and dolphing shell integrations show a submenu from which
one can share as well as access the private link.
* The SocketAPI provides a new GET_STRINGS command to access localized
strings.
* The private link can also be accessed from the user/group sharing
dialog.
* The numeric file id is extracted from the full id to create the
private link url.
Diffstat (limited to 'src/gui/sharedialog.cpp')
-rw-r--r-- | src/gui/sharedialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index 17399d1a4..24a912fdc 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -38,6 +38,7 @@ ShareDialog::ShareDialog(QPointer<AccountState> accountState, const QString &sharePath, const QString &localPath, SharePermissions maxSharingPermissions, + const QByteArray &numericFileId, QWidget *parent) : QDialog(parent) , _ui(new Ui::ShareDialog) @@ -45,6 +46,7 @@ ShareDialog::ShareDialog(QPointer<AccountState> accountState, , _sharePath(sharePath) , _localPath(localPath) , _maxSharingPermissions(maxSharingPermissions) + , _numericFileId(numericFileId) , _linkWidget(NULL) , _userGroupWidget(NULL) , _progressIndicator(NULL) @@ -192,7 +194,7 @@ void ShareDialog::showSharingUi() && _accountState->account()->serverVersionInt() >= Account::makeServerVersion(8, 2, 0); if (userGroupSharing) { - _userGroupWidget = new ShareUserGroupWidget(_accountState->account(), _sharePath, _localPath, _maxSharingPermissions, this); + _userGroupWidget = new ShareUserGroupWidget(_accountState->account(), _sharePath, _localPath, _maxSharingPermissions, _numericFileId, this); _ui->shareWidgets->addTab(_userGroupWidget, tr("Users and Groups")); _userGroupWidget->getShares(); } |