db/simple/ExportedSong: add option to own a Tag
This commit is contained in:
parent
6d08e761c8
commit
3a7c9c7c84
|
@ -21,6 +21,7 @@
|
||||||
#define MPD_DB_SIMPLE_EXPORTED_SONG_HXX
|
#define MPD_DB_SIMPLE_EXPORTED_SONG_HXX
|
||||||
|
|
||||||
#include "song/LightSong.hxx"
|
#include "song/LightSong.hxx"
|
||||||
|
#include "tag/Tag.hxx"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The return type for Song::Export(). In addition to implementing
|
* The return type for Song::Export(). In addition to implementing
|
||||||
|
@ -28,8 +29,14 @@
|
||||||
* a #LightSong, e.g. a merged #Tag.
|
* a #LightSong, e.g. a merged #Tag.
|
||||||
*/
|
*/
|
||||||
class ExportedSong : public LightSong {
|
class ExportedSong : public LightSong {
|
||||||
|
Tag tag_buffer;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
using LightSong::LightSong;
|
using LightSong::LightSong;
|
||||||
|
|
||||||
|
ExportedSong(const char *_uri, Tag &&_tag) noexcept
|
||||||
|
:LightSong(_uri, tag_buffer),
|
||||||
|
tag_buffer(std::move(_tag)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue