Fix compile without dbus

This commit is contained in:
Jonas Kvinge
2018-07-03 21:21:33 +02:00
parent c818ce19e9
commit a554032823
8 changed files with 40 additions and 29 deletions

View File

@@ -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)

View File

@@ -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:

View File

@@ -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) {