X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fknotificationbackend.h;h=f70b852384399ce7af9aab2b5e1db13524576ebd;hb=518cd2bc478ab3675a60ec46d3ef183cace0cae7;hp=2f21c9ef47450ea50c11d2f8e4e5a1f8c36ec486;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/qtui/knotificationbackend.h b/src/qtui/knotificationbackend.h index 2f21c9ef..f70b8523 100644 --- a/src/qtui/knotificationbackend.h +++ b/src/qtui/knotificationbackend.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef KNOTIFICATIONBACKEND_H_ -#define KNOTIFICATIONBACKEND_H_ +#pragma once #include @@ -35,11 +34,11 @@ class KNotificationBackend : public AbstractNotificationBackend Q_OBJECT public: - KNotificationBackend(QObject *parent = 0); + KNotificationBackend(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 notificationActivated(); @@ -52,26 +51,22 @@ private: void removeNotificationById(uint id); void updateToolTip(); - QList > > _notifications; + QList>> _notifications; }; - class KNotificationBackend::ConfigWidget : public SettingsPage { Q_OBJECT public: - ConfigWidget(QWidget *parent = 0); + ConfigWidget(QWidget* parent = nullptr); - void save(); - void load(); + void save() override; + void load() override; private slots: void widgetChanged(bool); private: - KNotifyConfigWidget *_widget; + KNotifyConfigWidget* _widget; }; - - -#endif