mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-05-15 20:48:04 +02:00
66 lines
1.0 KiB
C++
66 lines
1.0 KiB
C++
#ifndef SETTINGSDIALOG_H
|
|
#define SETTINGSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class QNetworkReply;
|
|
|
|
namespace Ui
|
|
{
|
|
class SettingsDialog;
|
|
class ProxyDialog;
|
|
}
|
|
|
|
class ProxyDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ProxyDialog( QWidget* parent = 0 );
|
|
~ProxyDialog() {};
|
|
|
|
void saveSettings();
|
|
|
|
private:
|
|
Ui::ProxyDialog* ui;
|
|
};
|
|
|
|
class SettingsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingsDialog( QWidget* parent = 0 );
|
|
~SettingsDialog();
|
|
|
|
signals:
|
|
void settingsChanged();
|
|
|
|
protected:
|
|
void changeEvent( QEvent* e );
|
|
|
|
private slots:
|
|
void onRejected();
|
|
|
|
void showPathSelector();
|
|
|
|
void toggleUpnp( bool preferStaticEnabled );
|
|
void showProxySettings();
|
|
|
|
void testLastFmLogin();
|
|
void onLastFmFinished();
|
|
|
|
void addScriptResolver();
|
|
void scriptSelectionChanged();
|
|
void removeScriptResolver();
|
|
|
|
private:
|
|
Ui::SettingsDialog* ui;
|
|
|
|
ProxyDialog m_proxySettings;
|
|
bool m_rejected;
|
|
QNetworkReply* m_testLastFmQuery;
|
|
};
|
|
|
|
#endif // SETTINGSDIALOG_H
|