Fix compile without dbus
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
# include <dbus/notification.h>
|
||||
#endif
|
||||
|
||||
#include <QObject>
|
||||
#include <QCoreApplication>
|
||||
#include <QList>
|
||||
@@ -41,10 +45,6 @@
|
||||
#include "core/systemtrayicon.h"
|
||||
#include "covermanager/currentartloader.h"
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
# include "dbus/notification.h"
|
||||
#endif
|
||||
|
||||
const char *OSD::kSettingsGroup = "OSD";
|
||||
|
||||
OSD::OSD(SystemTrayIcon *tray_icon, Application *app, QObject *parent)
|
||||
|
||||
@@ -100,7 +100,9 @@ class OSD : public QObject {
|
||||
QString ReplaceVariable(const QString &variable, const Song &song);
|
||||
|
||||
private slots:
|
||||
#if defined(HAVE_DBUS) && defined(HAVE_X11)
|
||||
void CallFinished(QDBusPendingCallWatcher *watcher);
|
||||
#endif
|
||||
void AlbumArtLoaded(const Song &song, const QString &uri, const QImage &image);
|
||||
|
||||
private:
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
#include <stdbool.h>
|
||||
#include <memory>
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
# include <dbus/notification.h>
|
||||
#endif
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
#include <QByteArray>
|
||||
@@ -48,7 +52,6 @@
|
||||
#include "osd.h"
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
# include "dbus/notification.h"
|
||||
|
||||
QDBusArgument& operator<<(QDBusArgument& arg, const QImage& image) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user