Add mce-dev into control build templates for dbus support
[vlc-remote] / src / settingsdialog.h
1 /*   VLC-REMOTE for MAEMO 5
2 *   Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>, Yann Nave <yannux@onbebop.net>
3 *   This program is free software; you can redistribute it and/or modify
4 *   it under the terms of the GNU General Public License version 2,
5 *   or (at your option) any later version, as published by the Free
6 *   Software Foundation
7 *
8 *   This program is distributed in the hope that it will be useful,
9 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
10 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 *   GNU General Public License for more details
12 *
13 *   You should have received a copy of the GNU General Public
14 *   License along with this program; if not, write to the
15 *   Free Software Foundation, Inc.,
16 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 */
18 #ifndef SETTINGSDIALOG_H
19 #define SETTINGSDIALOG_H
20
21 #include <QDialog>
22 #include "appsettings.h"
23
24 namespace Ui {
25     class SettingsDialog;
26 }
27
28 class SettingsDialog : public QDialog
29 {
30     Q_OBJECT
31
32 public:
33     explicit SettingsDialog(QWidget *parent = 0);
34     ~SettingsDialog();
35
36
37 //static QString  currentIp();
38
39 public slots:
40     void init();
41     void setOrientationLandscape();
42     void setOrientationPortrait();
43     void setOrientationAutoRotate();
44     void setStatusPollTimeout(int);
45     void setPingTimeout(int);
46     void setConnectionTimeout(int);
47     void setRetrieveArtTimeout(int);
48     void setRetryNetworkTimeout(int);
49     void setShowUnknownFileTypes(bool);
50     void setShowAlbumArt(bool);
51     void setAlertOnClose(bool);
52
53 protected:
54     void closeEvent(QCloseEvent *);
55     void setOrientation(Orientation);
56
57 private:
58     Ui::SettingsDialog *ui;
59
60 signals:
61     void closeSignal();
62 };
63
64 #endif // SETTINGSDIALOG_H