blob: fb9a49f63f0c6c43571d6fdc2a88b41ff794fa1c [file] [log] [blame]
Dominik Wengere70f7f42007-08-05 16:17:35 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Dominik Wenger
Dominik Riebeling1dc307a2007-08-23 22:11:50 +000010 * $Id$
Dominik Wengere70f7f42007-08-05 16:17:35 +000011 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
Dominik Wengere70f7f42007-08-05 16:17:35 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef INSTALLTALKWINDOW_H
23#define INSTALLTALKWINDOW_H
24
25#include <QtGui>
26
Dominik Wengere70f7f42007-08-05 16:17:35 +000027#include "ui_installtalkfrm.h"
28#include "progressloggergui.h"
29#include "talkfile.h"
Dominik Wenger3a54c9b2008-01-25 00:12:25 +000030#include "rbsettings.h"
Dominik Wengere70f7f42007-08-05 16:17:35 +000031
32class InstallTalkWindow : public QDialog
33{
34 Q_OBJECT
35 public:
Dominik Riebelingc03102b2007-08-28 23:10:42 +000036 InstallTalkWindow(QWidget *parent = 0);
Dominik Wenger3a54c9b2008-01-25 00:12:25 +000037 void setSettings(RbSettings* sett);
Dominik Wengere70f7f42007-08-05 16:17:35 +000038
39 public slots:
40 void accept(void);
Dominik Wengerf5c695b2007-12-14 19:49:11 +000041 void change(void);
Dominik Wengere70f7f42007-08-05 16:17:35 +000042
43 private slots:
Dominik Riebelingc03102b2007-08-28 23:10:42 +000044 void browseFolder(void);
45 void setTalkFolder(QString folder);
Dominik Riebeling77e036a2008-03-14 18:27:39 +000046 void updateSettings(void);
47
48 signals:
Dominik Riebeling05f24a12008-03-01 13:42:14 +000049 void settingsUpdated(void);
Dominik Riebelingc03102b2007-08-28 23:10:42 +000050
Dominik Wengere70f7f42007-08-05 16:17:35 +000051 private:
Dominik Riebelingc03102b2007-08-28 23:10:42 +000052 TalkFileCreator* talkcreator;
Dominik Wengere70f7f42007-08-05 16:17:35 +000053 Ui::InstallTalkFrm ui;
54 ProgressLoggerGui* logger;
Dominik Wenger3a54c9b2008-01-25 00:12:25 +000055 RbSettings* settings;
Dominik Wengere70f7f42007-08-05 16:17:35 +000056
57};
58
Dominik Wengere70f7f42007-08-05 16:17:35 +000059#endif