Implement download caching. Set the folder for the cache data in the configuration...
[Rockbox.git] / rbutil / rbutilqt / configure.h
blob33f30acc0faf49627bf8d6792dccb12051a61d78
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Riebeling
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef CONFIGURE_H
21 #define CONFIGURE_H
23 #include "ui_configurefrm.h"
24 #include "browsedirtree.h"
25 #include <QtGui>
27 class Config : public QDialog
29 Q_OBJECT
30 public:
31 Config(QWidget *parent = 0);
32 void setUserSettings(QSettings*);
33 void setDevices(QSettings*);
35 signals:
36 void settingsUpdated(void);
38 public slots:
39 void accept(void);
40 void abort(void);
42 private:
43 Ui::ConfigForm ui;
44 QSettings *userSettings;
45 QSettings *devices;
46 QStringList findLanguageFiles(void);
47 QString languageName(const QString&);
48 QMap<QString, QString> lang;
49 QString language;
50 QString programPath;
51 QUrl proxy;
53 BrowseDirtree *browser;
54 BrowseDirtree *cbrowser;
56 private slots:
57 void setNoProxy(bool);
58 void setSystemProxy(bool);
59 void updateLanguage(void);
60 void browseFolder(void);
61 void browseCache(void);
62 void autodetect(void);
63 void setMountpoint(QString);
64 void setCache(QString);
65 void cacheClear(void);
68 #endif