From db3295ba92d6c761e34640248c790f9a1d037296 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 23 Apr 2015 12:39:59 +0200 Subject: [PATCH] fix mac backend (in theory) --- .../backends/osxnotificationcenter/osxnotificationcenter.h | 4 ++-- .../osxnotificationcenter/osxnotificationcenter.mm | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.h b/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.h index 2feb698..2d8d627 100644 --- a/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.h +++ b/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.h @@ -1,6 +1,6 @@ /* SnoreNotify is a Notification Framework based on Qt - Copyright (C) 2013-2014 Patrick von Reth + Copyright (C) 2013-2015 Patrick von Reth SnoreNotify is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -19,7 +19,7 @@ #ifndef OSXNOTIFICATIONCENTER_H #define OSXNOTIFICATIONCENTER_H -#include "core/plugins/snorebackend.h" +#include "libsnore/plugins/snorebackend.h" class OSXNotificationCenter : public Snore::SnoreBackend { diff --git a/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm b/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm index 8b3c9d2..95cd07b 100644 --- a/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm +++ b/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm @@ -1,5 +1,6 @@ #include "osxnotificationcenter.h" -#include "core/plugins/snorebackend.h" +#include "libsnore/plugins/snorebackend.h" +#include "libsnore/utils.h" #import #import @@ -36,8 +37,8 @@ bool OSXNotificationCenter::initialize(SnoreCore *snore) void OSXNotificationCenter::slotNotify(Snore::Notification notification) { NSUserNotification *osx_notification = [[NSUserNotification alloc] init]; - osx_notification.title = NSStringFromQString(Snore::toPlainText(notification.title())); - osx_notification.informativeText = NSStringFromQString(Snore::toPlainText(notification.text())); + osx_notification.title = NSStringFromQString(Utils::toPlainText(notification.title())); + osx_notification.informativeText = NSStringFromQString(Utils::toPlainText(notification.text())); [notification_center deliverNotification: osx_notification];