Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonical URL/URI for track objects #2162

Merged
merged 3 commits into from
Jun 13, 2019
Merged

Canonical URL/URI for track objects #2162

merged 3 commits into from
Jun 13, 2019

Conversation

uklotzde
Copy link
Contributor

Consolidate the URL/URI handling for tracks:

  • Remove URL code from DragAndDropHelper
  • Remove URL code from SoundSourceProxy
  • Let TrackRef handle the creation of URLs from QFileInfo and formatting of URIs

The URI is obtained by normalizing and formatting (percent-encoded) the QUrl. It soon becomes the new track location in aoide.

Next step for a follow-up PR: Split the QFileInfo-related part from TrackRef into a separate class TrackFile. This will simplify our Track object, but will cause many small changes in dependent code.

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

Thank you. I have left some comments.

src/track/trackref.cpp Outdated Show resolved Hide resolved
src/track/trackref.cpp Outdated Show resolved Hide resolved
src/track/trackref.cpp Outdated Show resolved Hide resolved
@daschuer
Copy link
Member

Thank you. LGTM

@daschuer daschuer merged commit 5fb3542 into mixxxdj:master Jun 13, 2019
@uklotzde uklotzde deleted the dev_track_uriurl branch June 15, 2019 16:01
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