summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/configure.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/configure.h')
-rw-r--r--utils/rbutilqt/configure.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/utils/rbutilqt/configure.h b/utils/rbutilqt/configure.h
new file mode 100644
index 0000000000..5f63e82447
--- /dev/null
+++ b/utils/rbutilqt/configure.h
@@ -0,0 +1,79 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Dominik Riebeling
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
18 *
19 ****************************************************************************/
20
21#ifndef CONFIGURE_H
22#define CONFIGURE_H
23
24#include "ui_configurefrm.h"
25#include <QDialog>
26#include <QWidget>
27#include <QUrl>
28
29class Config : public QDialog
30{
31 Q_OBJECT
32 public:
33 Config(QWidget *parent = nullptr,int index=0);
34
35 signals:
36 void settingsUpdated(void);
37
38 public slots:
39 void accept(void);
40 void abort(void);
41
42 private:
43 void setUserSettings();
44 void setDevices();
45
46 Ui::ConfigForm ui;
47
48 QStringList findLanguageFiles(void);
49 QString languageName(const QString&);
50 QMap<QString, QString> lang;
51 QString language;
52 QString programPath;
53 QUrl proxy;
54 QString mountpoint;
55 void updateCacheInfo(QString);
56 void changeEvent(QEvent *event);
57 void selectDevice(QString device, QString mountpoint);
58
59 private slots:
60 void showProxyPassword(bool show);
61 void setNoProxy(bool);
62 void setSystemProxy(bool);
63 void updateLanguage(void);
64 void refreshMountpoint(void);
65 void browseCache(void);
66 void autodetect(void);
67 void setMountpoint(QString);
68 void updateMountpoint(QString);
69 void updateMountpoint(int);
70 void cacheClear(void);
71 void configTts(void);
72 void configEnc(void);
73 void updateTtsState(int);
74 void updateEncState();
75 void testTts();
76 void showDisabled(bool);
77};
78
79#endif