MPD  0.20.18
Public Member Functions
SongLoader Class Reference

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)
 
DetachedSongLoadSong (const LocatedUri &uri) const
 
gcc_nonnull_all DetachedSongLoadSong (const char *uri_utf8) const
 Throws #std::runtime_error on error. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SongLoader() [1/2]

SongLoader::SongLoader ( const Client _client)
inlineexplicit

Definition at line 58 of file SongLoader.hxx.

◆ SongLoader() [2/2]

SongLoader::SongLoader ( std::nullptr_t  ,
std::nullptr_t   
)
inlineexplicit

Definition at line 60 of file SongLoader.hxx.

Member Function Documentation

◆ LoadSong() [1/2]

DetachedSong* SongLoader::LoadSong ( const LocatedUri uri) const

◆ LoadSong() [2/2]

gcc_nonnull_all DetachedSong* SongLoader::LoadSong ( const char *  uri_utf8) const

Throws #std::runtime_error on error.


The documentation for this class was generated from the following file: