X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fdockmanagernotificationbackend.h;h=a32e4c691ec21f6ddb9c62fc7257a30193434896;hp=70efb006403706e2e8640f67186e44fdcce0b5e9;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=0bf922728d0d0e8c62f954dddc9b08b56cc0b69b diff --git a/src/qtui/dockmanagernotificationbackend.h b/src/qtui/dockmanagernotificationbackend.h index 70efb006..a32e4c69 100644 --- a/src/qtui/dockmanagernotificationbackend.h +++ b/src/qtui/dockmanagernotificationbackend.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013 by the Quassel Project * + * Copyright (C) 2013-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -34,11 +34,11 @@ class DockManagerNotificationBackend : public AbstractNotificationBackend Q_OBJECT public: - DockManagerNotificationBackend(QObject *parent = 0); + DockManagerNotificationBackend(QObject *parent = nullptr); - void notify(const Notification &); - void close(uint notificationId); - virtual SettingsPage *createConfigWidget() const; + void notify(const Notification &) override; + void close(uint notificationId) override; + SettingsPage *createConfigWidget() const override; private slots: void enabledChanged(const QVariant &); @@ -50,10 +50,11 @@ private slots: private: class ConfigWidget; bool _enabled; + bool _available; QDBusConnection _bus; - QDBusInterface *_dock; - QDBusInterface *_item; - int _count; + QDBusInterface *_dock{nullptr}; + QDBusInterface *_item{nullptr}; + int _count{0}; }; @@ -62,12 +63,12 @@ class DockManagerNotificationBackend::ConfigWidget : public SettingsPage Q_OBJECT public: - ConfigWidget(QWidget *parent = 0); + ConfigWidget(bool enabled, QWidget *parent = nullptr); - void save(); - void load(); - bool hasDefaults() const; - void defaults(); + void save() override; + void load() override; + bool hasDefaults() const override; + void defaults() override; private slots: void widgetChanged();