]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/interaction.hpp
* qt4: Added a few forward declarations and includes
[vlc] / modules / gui / qt4 / dialogs / interaction.hpp
1 /*****************************************************************************
2  * interaction.hpp : Interaction dialogs
3  ****************************************************************************
4  * Copyright (C) 2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
22
23 #ifndef _INTERACTION_H_
24 #define _INTERACTION_H_
25
26 #include <vlc/vlc.h>
27 #include <vlc_interaction.h>
28 #undef Q_
29 #include <ui/inputdialog.h>
30 #undef Q_
31 #include <ui/logindialog.h>
32 #undef Q_
33 #include <ui/progressdialog.h>
34 #undef Q_
35 #include <QWidget>
36
37 class InteractionDialog : public QWidget
38 {
39     Q_OBJECT
40 public:
41     InteractionDialog( intf_thread_t *, interaction_dialog_t * );
42     virtual ~InteractionDialog();
43
44     void Update();
45
46 private:
47     QWidget *panel;
48     intf_thread_t *p_intf;
49     interaction_dialog_t *p_dialog;
50     Ui::LoginDialog *uiLogin;
51     Ui::InputDialog *uiInput;
52     Ui::ProgressDialog *uiProgress;
53
54     QPushButton *defaultButton, *otherButton, *altButton;
55     QLabel *description;
56
57     void Finish( int );
58 private slots:
59     void defaultB();
60     void altB();
61     void otherB();
62 };
63
64 #endif