File indexing completed on 2024-04-28 17:07:10

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 #include <QScopedPointer>
0017 
0018 class QPalette;
0019 
0020 namespace Okteta {
0021 
0022 class AbstractColumnStylistPrivate;
0023 
0024 class OKTETAGUI_EXPORT AbstractColumnStylist
0025 {
0026 protected:
0027     OKTETAGUI_NO_EXPORT explicit AbstractColumnStylist(AbstractColumnStylistPrivate* d);
0028 
0029 public:
0030     AbstractColumnStylist();
0031     AbstractColumnStylist(const AbstractColumnStylist&) = delete;
0032 
0033     virtual ~AbstractColumnStylist();
0034 
0035     AbstractColumnStylist& operator=(const AbstractColumnStylist&) = delete;
0036 
0037 public: // API to be reimplemented in the subclasses
0038     virtual const QPalette& palette() const = 0;
0039 
0040 protected:
0041     const QScopedPointer<AbstractColumnStylistPrivate> d_ptr;
0042 
0043 private:
0044     Q_DECLARE_PRIVATE(AbstractColumnStylist)
0045 };
0046 
0047 }
0048 
0049 #endif