X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbufferviewoverlay.h;h=4f3ab46401d11ca11fa794bfe09df7699a1abc3e;hp=1b852160242abed1f6f20c0930de03ad4bf4d02c;hb=8f2ee00f4edef1693628d3af0bdee84d725eb754;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/client/bufferviewoverlay.h b/src/client/bufferviewoverlay.h index 1b852160..4f3ab464 100644 --- a/src/client/bufferviewoverlay.h +++ b/src/client/bufferviewoverlay.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,11 +15,12 @@ * 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 BUFFERVIEWOVERLAY_H -#define BUFFERVIEWOVERLAY_H +#pragma once + +#include "client-export.h" #include @@ -28,12 +29,12 @@ class BufferViewConfig; class ClientBufferViewConfig; -class BufferViewOverlay : public QObject +class CLIENT_EXPORT BufferViewOverlay : public QObject { Q_OBJECT public: - BufferViewOverlay(QObject *parent = 0); + BufferViewOverlay(QObject *parent = nullptr); inline const QSet &bufferViewIds() { return _bufferViewIds; } bool allNetworks(); @@ -64,7 +65,7 @@ signals: void initDone(); protected: - virtual void customEvent(QEvent *event); + void customEvent(QEvent *event) override; private slots: void viewInitialized(); @@ -74,14 +75,14 @@ private: void updateHelper(); QSet filterBuffersByConfig(const QList &buffers, const BufferViewConfig *config); - bool _aboutToUpdate; + bool _aboutToUpdate{false}; QSet _bufferViewIds; - int _uninitializedViewCount; + int _uninitializedViewCount{0}; QSet _networkIds; - int _allowedBufferTypes; - int _minimumActivity; + int _allowedBufferTypes{0}; + int _minimumActivity{0}; QSet _buffers; QSet _removedBuffers; @@ -89,6 +90,3 @@ private: static const int _updateEventId; }; - - -#endif //BUFFERVIEWOVERLAY_H