/***************************************************************************
-* 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 *
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);
private:
class ConfigWidget;
- SettingsPage *_configWidget;
org::freedesktop::Notifications *_dbusInterface;
bool _daemonSupportsMarkup;
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