MPD
0.20.18
|
#include <DetachedSong.hxx>
Public Member Functions | |
DetachedSong (const DetachedSong &)=default | |
DetachedSong (const char *_uri) | |
DetachedSong (const std::string &_uri) | |
DetachedSong (std::string &&_uri) | |
template<typename U > | |
DetachedSong (U &&_uri, Tag &&_tag) | |
DetachedSong (DetachedSong &&)=default | |
~DetachedSong () | |
gcc_pure const char * | GetURI () const noexcept |
template<typename T > | |
void | SetURI (T &&_uri) |
gcc_pure bool | HasRealURI () const noexcept |
Does this object have a "real" URI different from the displayed URI? More... | |
gcc_pure const char * | GetRealURI () const noexcept |
Returns "real" URI (#real_uri) and falls back to just GetURI(). More... | |
template<typename T > | |
void | SetRealURI (T &&_uri) |
gcc_pure bool | IsSame (const DetachedSong &other) const noexcept |
Returns true if both objects refer to the same physical song. More... | |
gcc_pure gcc_nonnull_all bool | IsURI (const char *other_uri) const noexcept |
gcc_pure bool | IsRemote () const noexcept |
gcc_pure bool | IsFile () const noexcept |
gcc_pure bool | IsAbsoluteFile () const noexcept |
gcc_pure bool | IsInDatabase () const noexcept |
const Tag & | GetTag () const noexcept |
Tag & | WritableTag () noexcept |
void | SetTag (const Tag &_tag) |
void | SetTag (Tag &&_tag) |
void | MoveTagFrom (DetachedSong &&other) |
void | MoveTagItemsFrom (DetachedSong &&other) |
Similar to the MoveTagFrom(), but move only the TagItem array. More... | |
time_t | GetLastModified () const |
void | SetLastModified (time_t _value) |
SongTime | GetStartTime () const |
void | SetStartTime (SongTime _value) |
SongTime | GetEndTime () const |
void | SetEndTime (SongTime _value) |
gcc_pure SignedSongTime | GetDuration () const noexcept |
bool | Update () |
Update the #tag and #mtime. More... | |
bool | LoadFile (Path path) |
Load #tag and #mtime from a local file. More... | |
Friends | |
DetachedSong | DatabaseDetachSong (const Storage &db, const LightSong &song) |
"Detach" the Song object, i.e. More... | |
Definition at line 37 of file DetachedSong.hxx.
|
explicitdefault |
|
inlineexplicit |
Definition at line 84 of file DetachedSong.hxx.
|
inlineexplicit |
Definition at line 87 of file DetachedSong.hxx.
|
inlineexplicit |
Definition at line 90 of file DetachedSong.hxx.
|
inline |
Definition at line 94 of file DetachedSong.hxx.
|
default |
DetachedSong::~DetachedSong | ( | ) |
|
noexcept |
|
inline |
Definition at line 209 of file DetachedSong.hxx.
|
inline |
Definition at line 193 of file DetachedSong.hxx.
|
inlinenoexcept |
Returns "real" URI (#real_uri) and falls back to just GetURI().
Definition at line 126 of file DetachedSong.hxx.
|
inline |
Definition at line 201 of file DetachedSong.hxx.
|
inlinenoexcept |
Definition at line 165 of file DetachedSong.hxx.
|
inlinenoexcept |
Definition at line 103 of file DetachedSong.hxx.
|
inlinenoexcept |
Does this object have a "real" URI different from the displayed URI?
Definition at line 117 of file DetachedSong.hxx.
|
noexcept |
|
inlinenoexcept |
Definition at line 155 of file DetachedSong.hxx.
|
noexcept |
|
noexcept |
|
inlinenoexcept |
Returns true if both objects refer to the same physical song.
Definition at line 140 of file DetachedSong.hxx.
|
inlinenoexcept |
Definition at line 147 of file DetachedSong.hxx.
bool DetachedSong::LoadFile | ( | Path | path | ) |
Load #tag and #mtime from a local file.
|
inline |
Definition at line 181 of file DetachedSong.hxx.
|
inline |
Similar to the MoveTagFrom(), but move only the TagItem array.
Definition at line 189 of file DetachedSong.hxx.
|
inline |
Definition at line 213 of file DetachedSong.hxx.
|
inline |
Definition at line 197 of file DetachedSong.hxx.
|
inline |
Definition at line 131 of file DetachedSong.hxx.
|
inline |
Definition at line 205 of file DetachedSong.hxx.
|
inline |
Definition at line 173 of file DetachedSong.hxx.
|
inline |
Definition at line 177 of file DetachedSong.hxx.
|
inline |
Definition at line 108 of file DetachedSong.hxx.
bool DetachedSong::Update | ( | ) |
Update the #tag and #mtime.
|
inlinenoexcept |
Definition at line 169 of file DetachedSong.hxx.
|
friend |
"Detach" the Song object, i.e.
convert it to a DetachedSong instance.