summaryrefslogtreecommitdiffstats
path: root/src/daemon/NotificationsService.cpp
diff options
context:
space:
mode:
authorEmanoil Kotsev <[email protected]>2021-05-31 21:09:48 +0200
committerEmanoil Kotsev <[email protected]>2024-11-09 18:49:26 +0000
commit202ee25cb1c784abf9f13b74bfd2a27104e1e0e9 (patch)
tree5b46d5a0e857677e82d8585ecee4255928ce486b /src/daemon/NotificationsService.cpp
parent2da6bb1dc4d5e5b9f0801c102869c2fb4d98b5b2 (diff)
downloadkdbusnotification-202ee25cb1c784abf9f13b74bfd2a27104e1e0e9.tar.gz
kdbusnotification-202ee25cb1c784abf9f13b74bfd2a27104e1e0e9.zip
Code adjustments after revew
align copyright statements in header and cpp files explain why gdbus as example used in README remove iostream dependency in favour of tqDebug in main.cpp add again xml header in notificationdaemon.xml remove dbug-glib check from ConfigureChecks.cmake Signed-off-by: Emanoil Kotsev <[email protected]>
Diffstat (limited to 'src/daemon/NotificationsService.cpp')
-rw-r--r--src/daemon/NotificationsService.cpp33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/daemon/NotificationsService.cpp b/src/daemon/NotificationsService.cpp
index b5bd0ad..77e0962 100644
--- a/src/daemon/NotificationsService.cpp
+++ b/src/daemon/NotificationsService.cpp
@@ -1,23 +1,26 @@
/*
- * PropertiesService.cpp
*
- * Created on: Feb 7, 2021
- * Author: emanoil
+ * Notification DBus Service implementation
*
- * hardwarecontrol Copyright (C) 2009 hardwarecontrol development team
+ * Copyright (C) 2021 Emanoil Kotsev <[email protected]>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This file is part of kdbusnotification.
+ *
+ * kdbusnotification is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * kdbusnotification is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with kdbusnotification; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "NotificationsService.h"
@@ -104,7 +107,7 @@ void NotificationsService::NotifyAsync(
notificationMap[id]->setIcon(icon);
notificationMap[id]->setPaletteBackgroundColor(TQt::black);
notificationMap[id]->setPaletteForegroundColor(TQt::white);
- // FXIME: handle hypertext in the body
+ // TODO: handle hypertext in the body
notificationMap[id]->setText(app_name + ": " + summary + "\n" + body);
notificationMap[id]->setActions(actions);
notificationMap[id]->setHints(hints);