Add support for OpenBSD
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
|
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
|
||||||
#include <QtDBus/QDBusArgument>
|
#include <QtDBus/QDBusArgument>
|
||||||
#include <QtDBus/QDBusInterface>
|
#include <QtDBus/QDBusInterface>
|
||||||
#endif
|
#endif
|
||||||
@@ -25,7 +25,7 @@ class NotificationsManager : public QObject {
|
|||||||
void notificationClicked(const QString roomId, const QString eventId);
|
void notificationClicked(const QString roomId, const QString eventId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
|
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
|
||||||
QDBusInterface dbus;
|
QDBusInterface dbus;
|
||||||
bool serverSupportsHtml = false;
|
bool serverSupportsHtml = false;
|
||||||
uint showNotification(const QString summary,
|
uint showNotification(const QString summary,
|
||||||
@@ -50,7 +50,7 @@ class NotificationsManager : public QObject {
|
|||||||
const QImage& icon);
|
const QImage& icon);
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
|
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
|
||||||
QDBusArgument& operator<<(QDBusArgument& arg, const QImage& image);
|
QDBusArgument& operator<<(QDBusArgument& arg, const QImage& image);
|
||||||
const QDBusArgument& operator>>(const QDBusArgument& arg, QImage&);
|
const QDBusArgument& operator>>(const QDBusArgument& arg, QImage&);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user