File indexing completed on 2024-05-19 04:50:23

0001 /****************************************************************************************
0002  * Copyright (c) 2007 Nikolaj Hald Nielsen <nhn@kde.org>                                *
0003  * Copyright (c) 2008 Casey Link <unnamedrambler@gmail.com>                             *
0004  *                                                                                      *
0005  * This program is free software; you can redistribute it and/or modify it under        *
0006  * the terms of the GNU General Public License as published by the Free Software        *
0007  * Foundation; either version 2 of the License, or (at your option) any later           *
0008  * version.                                                                             *
0009  *                                                                                      *
0010  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0011  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0012  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0013  *                                                                                      *
0014  * You should have received a copy of the GNU General Public License along with         *
0015  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0016  ****************************************************************************************/
0017 
0018 #ifndef MP3TUNESSETTINGSMODULE_H
0019 #define MP3TUNESSETTINGSMODULE_H
0020 
0021 #include "Mp3tunesConfig.h"
0022 
0023 #include <kcmodule.h>
0024 
0025 namespace Ui { class Mp3tunesConfigWidget; }
0026 
0027 /**
0028 A KCM module for configuring the Mp3tunes service
0029 
0030     @author
0031 */
0032 class Mp3tunesSettingsModule : public KCModule
0033 {
0034     Q_OBJECT
0035 public:
0036     explicit Mp3tunesSettingsModule( QWidget *parent = nullptr, const QVariantList &args = QVariantList() );
0037 
0038     ~Mp3tunesSettingsModule();
0039 
0040     virtual void save();
0041     virtual void load();
0042     virtual void defaults();
0043 
0044 
0045 private Q_SLOTS:
0046 
0047     void settingsChanged();
0048 
0049 private:
0050 
0051     Mp3tunesConfig m_config;
0052     Ui::Mp3tunesConfigWidget * m_configDialog;
0053 
0054 };
0055 
0056 #endif