/***************************************************************************
- * Copyright (C) 2005-2015 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 *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef ABSTRACTBUFFERCONTAINER_H_
-#define ABSTRACTBUFFERCONTAINER_H_
+#pragma once
+
+#include "uisupport-export.h"
#include "abstractitemview.h"
#include "buffermodel.h"
class AbstractUiMsg;
class Buffer;
-class AbstractBufferContainer : public AbstractItemView
+class UISUPPORT_EXPORT AbstractBufferContainer : public AbstractItemView
{
Q_OBJECT
public:
AbstractBufferContainer(QWidget *parent);
- virtual ~AbstractBufferContainer();
inline BufferId currentBuffer() const { return _currentBuffer; }
virtual inline bool autoMarkerLine() const { return true; }
protected slots:
- virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
- virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
+ void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override;
+ void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override;
//! Show the given chat view
/** This method is called when the given chat view should be displayed. Use this e.g. for
class AbstractChatView
{
public:
- virtual ~AbstractChatView() {};
+ virtual ~AbstractChatView() = default;
virtual MsgId lastMsgId() const = 0;
};
-
-
-#endif