Review Request: Remove QFSFileEngine useage from Phonon five.
Harald Sitter
sitter at kde.org
Sun Oct 21 10:30:53 UTC 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106974/#review20616
-----------------------------------------------------------
Changing the behavior of a function to that extent seems unwise to me, plus it allows even further misuse of the function. One should only ever have local files thrown at that function, hence why I think Phonon 5 should not have that ctor at all but force QUrls. Allowing people to throw more non-local files at it is a bit counter productive.
To address your worries though... :)
file:// URLs are valid everywhere in fact I personally would argue that it is the only way to specify a valid local file path.
On unix:
file:///home/foo/bar.mp3 (note the second /)
On windows
file://C:/Users/foo/bar.mp3 (possibly \, but I am reasonable certain / works ;))
This is true to such an extent that what we actually do in the backends is check if the url() has a defined protocol and if it does not we simply throw a file:// in front of it.
phonon/mediasource.cpp
<http://git.reviewboard.kde.org/r/106974/#comment16264>
documentation on why path and url would be useful
- Harald Sitter
On Oct. 21, 2012, 9:59 a.m., Jon Severinsson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/106974/
> -----------------------------------------------------------
>
> (Updated Oct. 21, 2012, 9:59 a.m.)
>
>
> Review request for KDE Frameworks and Phonon.
>
>
> Description
> -------
>
> QFSFileEngine has been removed from Qt5, so rip it out of phonon/mediasource.cpp. Any pointers to a propper fix would be welcome.
>
>
> Diffs
> -----
>
> phonon/mediasource.cpp 9e35094
>
> Diff: http://git.reviewboard.kde.org/r/106974/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Jon Severinsson
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20121021/cedf1461/attachment.html>
More information about the Kde-frameworks-devel
mailing list