File indexing completed on 2024-04-28 05:52:37

0001 /*
0002     This file is part of the Okteta Gui library, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef OKTETA_ABSTRACTCOLUMNSTYLIST_HPP
0010 #define OKTETA_ABSTRACTCOLUMNSTYLIST_HPP
0011 
0012 // lib
0013 #include "oktetagui_export.hpp"
0014 // Qt
0015 #include <QtGlobal>
0016 // Std
0017 #include <memory>
0018 
0019 class QPalette;
0020 
0021 namespace Okteta {
0022 
0023 class AbstractColumnStylistPrivate;
0024 
0025 class OKTETAGUI_EXPORT AbstractColumnStylist
0026 {
0027 protected:
0028     OKTETAGUI_NO_EXPORT explicit AbstractColumnStylist(AbstractColumnStylistPrivate* d);
0029 
0030 public:
0031     AbstractColumnStylist();
0032     AbstractColumnStylist(const AbstractColumnStylist&) = delete;
0033 
0034     virtual ~AbstractColumnStylist();
0035 
0036     AbstractColumnStylist& operator=(const AbstractColumnStylist&) = delete;
0037 
0038 public: // API to be reimplemented in the subclasses
0039     virtual const QPalette& palette() const = 0;
0040 
0041 protected:
0042     const std::unique_ptr<AbstractColumnStylistPrivate> d_ptr;
0043 
0044 private:
0045     Q_DECLARE_PRIVATE(AbstractColumnStylist)
0046 };
0047 
0048 }
0049 
0050 #endif