Move "Appearance" to "Interface" in settingspages
[quassel.git] / src / qtui / desktopnotificationbackend.h
index 4427afe..c83a3a1 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
-*   Copyright (C) 2005-08 by the Quassel Project                          *
+*   Copyright (C) 2005-09 by the Quassel Project                          *
 *   devel@quassel-irc.org                                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
@@ -41,11 +41,10 @@ class DesktopNotificationBackend : public AbstractNotificationBackend {
 
 public:
   DesktopNotificationBackend(QObject *parent = 0);
-  ~DesktopNotificationBackend();
 
   void notify(const Notification &);
   void close(uint notificationId);
-  SettingsPage *configWidget() const;
+  virtual SettingsPage *createConfigWidget() const;
 
 private slots:
   void desktopNotificationClosed(uint id, uint reason);
@@ -61,7 +60,6 @@ private slots:
 
 private:
   class ConfigWidget;
-  SettingsPage *_configWidget;
 
   org::freedesktop::Notifications *_dbusInterface;
   bool _daemonSupportsMarkup;
@@ -78,23 +76,23 @@ private:
 class DesktopNotificationBackend::ConfigWidget : public SettingsPage {
   Q_OBJECT
 
-  public:
-    ConfigWidget(QWidget *parent = 0);
-    void save();
-    void load();
-    bool hasDefaults() const;
-    void defaults();
-
-  private slots:
-    void widgetChanged();
-
-  private:
-    Ui::DesktopNotificationConfigWidget ui;
-    int xHint, yHint;
-    bool useHints, queueNotifications;
-    int timeout;
-    bool useTimeout;
-    bool enabled;
+public:
+  ConfigWidget(QWidget *parent = 0);
+  void save();
+  void load();
+  bool hasDefaults() const;
+  void defaults();
+
+private slots:
+  void widgetChanged();
+
+private:
+  Ui::DesktopNotificationConfigWidget ui;
+  int xHint, yHint;
+  bool useHints, queueNotifications;
+  int timeout;
+  bool useTimeout;
+  bool enabled;
 };
 
 #endif