Song: Only include mpris when built with DBUS
This commit is contained in:
parent
27ee6e7643
commit
2ccb0af75e
|
@ -55,8 +55,10 @@
|
|||
#include "utilities/timeconstants.h"
|
||||
#include "song.h"
|
||||
#include "sqlquery.h"
|
||||
#include "mpris_common.h"
|
||||
#include "sqlrow.h"
|
||||
#ifdef HAVE_DBUS
|
||||
# include "mpris_common.h"
|
||||
#endif
|
||||
#include "tagreadermessages.pb.h"
|
||||
|
||||
const QStringList Song::kColumns = QStringList() << "title"
|
||||
|
@ -1745,6 +1747,7 @@ void Song::BindToFtsQuery(SqlQuery *query) const {
|
|||
|
||||
}
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
void Song::ToXesam(QVariantMap *map) const {
|
||||
|
||||
using mpris::AddMetadata;
|
||||
|
@ -1771,6 +1774,7 @@ void Song::ToXesam(QVariantMap *map) const {
|
|||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
bool Song::MergeFromEngineMetadata(const EngineMetadata &engine_metadata) {
|
||||
|
||||
|
|
|
@ -433,7 +433,9 @@ class Song {
|
|||
// Save
|
||||
void BindToQuery(SqlQuery *query) const;
|
||||
void BindToFtsQuery(SqlQuery *query) const;
|
||||
#ifdef HAVE_DBUS
|
||||
void ToXesam(QVariantMap *map) const;
|
||||
#endif
|
||||
void ToProtobuf(spb::tagreader::SongMetadata *pb) const;
|
||||
|
||||
bool MergeFromEngineMetadata(const EngineMetadata &engine_metadata);
|
||||
|
|
Loading…
Reference in New Issue