Files
cantata/gui/preferencesdialog.h
2013-09-20 19:48:27 +00:00

94 lines
2.2 KiB
C++

/*
* Cantata
*
* Copyright (c) 2011-2013 Craig Drummond <craig.p.drummond@gmail.com>
*
* ----
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef PREFERENCES_DIALOG_H
#define PREFERENCES_DIALOG_H
#include "config.h"
#include "dialog.h"
#ifndef ENABLE_KDE_SUPPORT
class ProxySettings;
class ShortcutsSettingsPage;
#endif
class ServerSettings;
class PlaybackSettings;
class FileSettings;
class InterfaceSettings;
class StreamsSettings;
class OnlineSettings;
class ContextSettings;
#ifdef TAGLIB_FOUND
class HttpServerSettings;
#endif
struct MPDConnectionDetails;
class CacheSettings;
#if defined CDDB_FOUND || defined MUSICBRAINZ5_FOUND
class AudioCdSettings;
#endif
class PreferencesDialog : public Dialog
{
Q_OBJECT
public:
static int instanceCount();
PreferencesDialog(QWidget *parent);
virtual ~PreferencesDialog();
private:
void slotButtonClicked(int button);
private Q_SLOTS:
void writeSettings();
Q_SIGNALS:
void settingsSaved();
void reloadStreams();
private:
ServerSettings *server;
PlaybackSettings *playback;
FileSettings *files;
InterfaceSettings *interface;
StreamsSettings *streams;
OnlineSettings *online;
ContextSettings *context;
#ifdef TAGLIB_FOUND
HttpServerSettings *http;
#endif
#ifdef ENABLE_PROXY_CONFIG
ProxySettings *proxy;
#endif
#ifndef ENABLE_KDE_SUPPORT
ShortcutsSettingsPage *shortcuts;
#endif
CacheSettings *cache;
#if defined CDDB_FOUND || defined MUSICBRAINZ5_FOUND
AudioCdSettings *audiocd;
#endif
};
#endif