File indexing completed on 2024-04-21 04:48:17

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 PROFILEWIDGET_H
0009 #define PROFILEWIDGET_H
0010 
0011 #include <QDir>
0012 #include <QWidget>
0013 
0014 #include <KMessageBox>
0015 
0016 #include "dialogs/profiledatadialog.h"
0017 #include "models/profilemodel.h"
0018 
0019 #include "ui_profilewidgetUI.h"
0020 
0021 class profileWidgetUI : public QWidget, public Ui::ProfileWidgetUI
0022 {
0023 public:
0024     explicit profileWidgetUI(QWidget *parent)
0025         : QWidget(parent)
0026     {
0027         setupUi(this);
0028     }
0029 };
0030 
0031 class profileWidget : public profileWidgetUI
0032 {
0033     Q_OBJECT
0034 public:
0035     explicit profileWidget(ProfileModel *profileModel, QWidget *parent = nullptr);
0036     ~profileWidget() override;
0037 private Q_SLOTS:
0038     void _update();
0039     void add_profile();
0040     void rem_profile();
0041     void mod_profile(const QModelIndex &index);
0042     void mod_profile();
0043     void copy_profile();
0044     void save_profiles();
0045     void load_profiles();
0046     void init_profiles();
0047 
0048 private:
0049     ProfileModel *profile_model;
0050 };
0051 
0052 #endif