File indexing completed on 2025-01-05 05:23:51

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 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_BYTEARRAYBASE32STREAMENCODERCONFIGEDITOR_HPP
0010 #define KASTEN_BYTEARRAYBASE32STREAMENCODERCONFIGEDITOR_HPP
0011 
0012 // lib
0013 #include "bytearraybase32streamencoder.hpp"
0014 // Kasten gui
0015 #include <Kasten/AbstractModelStreamEncoderConfigEditor>
0016 
0017 class KComboBox;
0018 
0019 namespace Kasten {
0020 
0021 class ByteArrayBase32StreamEncoderConfigEditor : public AbstractModelStreamEncoderConfigEditor
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     explicit ByteArrayBase32StreamEncoderConfigEditor(ByteArrayBase32StreamEncoder* encoder, QWidget* parent = nullptr);
0027     ~ByteArrayBase32StreamEncoderConfigEditor() override;
0028 
0029 public: // AbstractModelStreamEncoderConfigEditor API
0030     AbstractSelectionView* createPreviewView() const override;
0031 
0032 private Q_SLOTS:
0033     void onSettingsChanged();
0034 
0035 private:
0036     ByteArrayBase32StreamEncoder* mEncoder;
0037     Base32StreamEncoderSettings mSettings;
0038 
0039     KComboBox* mEncodingSelect;
0040 };
0041 
0042 }
0043 
0044 #endif