MPD
0.20.18
|
A utility class that loads a DetachedSong object by its URI. More...
#include <SongLoader.hxx>
Public Member Functions | |
SongLoader (const Client &_client) | |
SongLoader (std::nullptr_t, std::nullptr_t) | |
DetachedSong * | LoadSong (const LocatedUri &uri) const |
gcc_nonnull_all DetachedSong * | LoadSong (const char *uri_utf8) const |
Throws #std::runtime_error on error. More... | |
A utility class that loads a DetachedSong object by its URI.
If the URI is an absolute local file, it applies security checks via Client::AllowFile(). If no Client pointer was specified, then it is assumed that all local files are allowed.
Definition at line 41 of file SongLoader.hxx.
|
inlineexplicit |
Definition at line 58 of file SongLoader.hxx.
|
inlineexplicit |
Definition at line 60 of file SongLoader.hxx.
DetachedSong* SongLoader::LoadSong | ( | const LocatedUri & | uri | ) | const |
gcc_nonnull_all DetachedSong* SongLoader::LoadSong | ( | const char * | uri_utf8 | ) | const |
Throws #std::runtime_error on error.