File indexing completed on 2025-01-26 05:24:20

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2008, 2010 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 KASTEN_ABSTRACTMODELSTREAMENCODERCONFIGEDITOR_HPP
0010 #define KASTEN_ABSTRACTMODELSTREAMENCODERCONFIGEDITOR_HPP
0011 
0012 // lib
0013 #include "kastengui_export.hpp"
0014 // Qt
0015 #include <QWidget>
0016 // Std
0017 #include <memory>
0018 
0019 namespace Kasten {
0020 
0021 class AbstractSelectionView;
0022 
0023 class KASTENGUI_EXPORT AbstractModelStreamEncoderConfigEditor : public QWidget
0024 {
0025     Q_OBJECT
0026 
0027 protected:
0028     explicit AbstractModelStreamEncoderConfigEditor(QWidget* parent = nullptr);
0029 
0030 public:
0031     ~AbstractModelStreamEncoderConfigEditor() override;
0032 
0033 public: // API to be implemented
0034     /// default returns true
0035     virtual bool isValid() const;
0036     /// default returns none
0037     virtual AbstractSelectionView* createPreviewView() const;
0038 
0039 Q_SIGNALS:
0040     void validityChanged(bool isValid);
0041 
0042 private:
0043     const std::unique_ptr<class AbstractModelStreamEncoderConfigEditorPrivate> d_ptr;
0044 };
0045 
0046 }
0047 
0048 #endif