X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fknotificationbackend.h;h=f70b852384399ce7af9aab2b5e1db13524576ebd;hp=5ab10cf8306c452e0ef3d4895781a2846c3e9333;hb=a95ad2de573027f9bee36db972bcae4195168d0c;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/qtui/knotificationbackend.h b/src/qtui/knotificationbackend.h index 5ab10cf8..f70b8523 100644 --- a/src/qtui/knotificationbackend.h +++ b/src/qtui/knotificationbackend.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 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 * @@ -15,11 +15,10 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 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