notifications/mananger: Follow Linux code paths on Haiku as well

This commit is contained in:
Alexander von Gluck IV 2021-02-03 14:40:14 -06:00
parent cf00abc03e
commit e8ff6c9486

View file

@ -4,7 +4,7 @@
#include <QObject> #include <QObject>
#include <QString> #include <QString>
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) #if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU)
#include <QtDBus/QDBusArgument> #include <QtDBus/QDBusArgument>
#include <QtDBus/QDBusInterface> #include <QtDBus/QDBusInterface>
#endif #endif
@ -41,7 +41,7 @@ signals:
public slots: public slots:
void removeNotification(const QString &roomId, const QString &eventId); void removeNotification(const QString &roomId, const QString &eventId);
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) #if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU)
public: public:
void closeNotifications(QString roomId); void closeNotifications(QString roomId);
@ -61,7 +61,7 @@ private slots:
void notificationReplied(uint id, QString reply); void notificationReplied(uint id, QString reply);
}; };
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) #if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU)
QDBusArgument & QDBusArgument &
operator<<(QDBusArgument &arg, const QImage &image); operator<<(QDBusArgument &arg, const QImage &image);
const QDBusArgument & const QDBusArgument &