common: Make SyncableObject non-copyable
[quassel.git] / src / qtui / snorenotificationbackend.h
index ba600f9..02d48fe 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2011-2016 by Hannah von Reth                            *
+ *   Copyright (C) 2011-2020 by Hannah von Reth                            *
  *   vonreth@kde.org                                                       *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 #ifndef SNORENOTIFICATIONBACKEND_H_
 #define SNORENOTIFICATIONBACKEND_H_
 
-#include "abstractnotificationbackend.h"
+#include <libsnore/notification/notification.h>
+#include <libsnore/snore.h>
 
+#include "abstractnotificationbackend.h"
 #include "settingspage.h"
 
 #include "ui_snorentificationconfigwidget.h"
 
-#include <libsnore/snore.h>
-#include <libsnore/notification/notification.h>
-
 class SystrayNotificationBackend;
 
-class SnoreNotificationBackend : public AbstractNotificationBackend {
+class SnoreNotificationBackend : public AbstractNotificationBackend
+{
     Q_OBJECT
 public:
-    SnoreNotificationBackend (QObject *parent);
+    SnoreNotificationBackend(QObject* parent);
     ~SnoreNotificationBackend();
 
-    void notify(const Notification &);
+    void notify(const Notification&);
     void close(uint notificationId);
 
-    virtual SettingsPage *createConfigWidget() const;
-
-signals:
-    void activated(uint notificationId = 0);
+    virtual SettingsPage* createConfigWidget() const;
 
 public slots:
     void actionInvoked(Snore::Notification);
 
 private slots:
-    void setTraybackend(const QVariant &b);
+    void setTraybackend(const QVariantb);
 
 private:
-
     class ConfigWidget;
 #ifndef HAVE_KDE
-    SystrayNotificationBackend * m_systrayBackend = nullptr;
+    SystrayNotificationBackend* m_systrayBackend = nullptr;
 #endif
     QHash<uint, uint> m_notificationIds;
     Snore::Icon m_icon;
@@ -64,18 +60,19 @@ private:
     Snore::Alert m_alert;
 };
 
-class SnoreNotificationBackend::ConfigWidget : public SettingsPage {
+class SnoreNotificationBackend::ConfigWidget : public SettingsPage
+{
     Q_OBJECT
 
 public:
-    ConfigWidget(QWidget *parent = 0);
+    ConfigWidget(QWidgetparent = 0);
 
     bool hasDefaults() const;
     void defaults();
     void load();
     void save();
 private slots:
-    void useSnnoreChanged(bool);
+    void useSnoreChanged(bool);
 
 private:
     Ui::SnoreNotificationConfigWidget ui;