Skip to content

Private links: Retrieve link through propfind property #6020#6037

Merged
ckamm merged 1 commit into
masterfrom
privatelinkproperty
Sep 19, 2017
Merged

Private links: Retrieve link through propfind property #6020#6037
ckamm merged 1 commit into
masterfrom
privatelinkproperty

Conversation

@ckamm

@ckamm ckamm commented Sep 18, 2017

Copy link
Copy Markdown
Contributor
  • The sharing ui does a propfind anyway: use that to query the new
    property as well!
  • For the socket api, asynchronously query the server for the right url
    when an action that needs it is triggered.

The old, manually generated URL will be used as fallback in case the
server doesn't support the new property or the property can't be
retrieved for some reason.

Depends on owncloud/core#29021
For #6020

@ckamm ckamm added this to the 2.4.0 milestone Sep 18, 2017
@ckamm ckamm self-assigned this Sep 18, 2017
@ckamm ckamm requested a review from ogoffart September 18, 2017 08:12
Comment thread src/gui/socketapi.cpp Outdated
void SocketApi::command_COPY_PRIVATE_LINK(const QString &localFile, SocketListener *)
// Fetches the private link url asynchronously and then calls the target slot
template <typename T>
void fetchPrivateLinkUrl(const QString &localFile, typename QtPrivate::FunctionPointer<T>::Object *target,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use QtPrivate, this is not Qt public API and it might be changed.
Just use SocketApi* or another template type.
(maybe no need to have a template: void fetchPrivateLinkUrl(const QString &localFile, SocketApi *target, void (SocketApi::*targetFunc)() )

@ckamm ckamm force-pushed the privatelinkproperty branch from 156d65a to e3953c3 Compare September 19, 2017 08:47
* The sharing ui does a propfind anyway: use that to query the new
property as well!
* For the socket api, asynchronously query the server for the right url
when an action that needs it is triggered.

The old, manually generated URL will be used as fallback in case the
server doesn't support the new property or the property can't be
retrieved for some reason.

Depends on owncloud/core#29021
@ckamm ckamm force-pushed the privatelinkproperty branch from e3953c3 to 3f56cb0 Compare September 19, 2017 08:50
@ckamm ckamm merged commit dca2664 into master Sep 19, 2017
@ckamm ckamm deleted the privatelinkproperty branch September 19, 2017 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants