File indexing completed on 2024-05-05 04:50:00
0001 /* AUDEX CDDA EXTRACTOR 0002 * SPDX-FileCopyrightText: Copyright (C) 2007 Marco Nelles 0003 * <https://userbase.kde.org/Audex> 0004 * 0005 * SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 #ifndef OPUSENCWIDGET_H 0009 #define OPUSENCWIDGET_H 0010 0011 #include <QDir> 0012 #include <QWidget> 0013 0014 #include "utils/encoderassistant.h" 0015 #include "utils/error.h" 0016 #include "utils/parameters.h" 0017 0018 #include "ui_opusencwidgetUI.h" 0019 0020 class opusencWidgetUI : public QWidget, public Ui::OpusEncWidgetUI 0021 { 0022 public: 0023 explicit opusencWidgetUI(QWidget *parent) 0024 : QWidget(parent) 0025 { 0026 setupUi(this); 0027 } 0028 }; 0029 0030 class opusencWidget : public opusencWidgetUI 0031 { 0032 Q_OBJECT 0033 public: 0034 explicit opusencWidget(Parameters *parameters, QWidget *parent = nullptr); 0035 ~opusencWidget() override; 0036 Error lastError() const 0037 { 0038 return error; 0039 } 0040 inline bool isChanged() const 0041 { 0042 return changed; 0043 } 0044 public Q_SLOTS: 0045 bool save(); 0046 Q_SIGNALS: 0047 void triggerChanged(); 0048 private Q_SLOTS: 0049 void bitrate_changed_by_slider(int quality); 0050 void bitrate_changed_by_spinbox(int quality); 0051 void trigger_changed(); 0052 0053 private: 0054 Parameters *parameters; 0055 Error error; 0056 bool changed; 0057 }; 0058 0059 #endif