Files
cantata/gui/preferencesdialog.h
2013-02-21 20:08:02 +00:00

86 lines
2.1 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 ServerPlaybackSettings;
class PlaybackSettings;
class FileSettings;
class InterfaceSettings;
class LyricSettings;
class LyricsPage;
#ifdef TAGLIB_FOUND
class HttpServerSettings;
#endif
class MPDConnectionDetails;
class CacheSettings;
class PreferencesDialog : public Dialog
{
Q_OBJECT
public:
static int instanceCount();
PreferencesDialog(QWidget *parent, LyricsPage *lp);
virtual ~PreferencesDialog();
private:
void slotButtonClicked(int button);
private Q_SLOTS:
void writeSettings();
Q_SIGNALS:
void settingsSaved();
void connectTo(const MPDConnectionDetails &details);
void reloadStreams();
private:
ServerSettings *server;
ServerPlaybackSettings *serverplayback;
PlaybackSettings *playback;
FileSettings *files;
InterfaceSettings *interface;
LyricSettings *lyrics;
#ifdef TAGLIB_FOUND
HttpServerSettings *http;
#endif
#ifndef ENABLE_KDE_SUPPORT
ProxySettings *proxy;
ShortcutsSettingsPage *shortcuts;
#endif
CacheSettings *cache;
};
#endif