]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/interaction.hpp
ef658a97460bec443e9b33ae47d0873a880e5ad6
[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/okcanceldialog.h>
30 #undef Q_
31 #include <ui/yesnocanceldialog.h>
32 #undef Q_
33 #include <ui/inputdialog.h>
34 #undef Q_
35 #include <ui/logindialog.h>
36 #undef Q_
37 #include <ui/progressdialog.h>
38 #undef Q_
39
40 class InteractionDialog : public QWidget
41 {
42     Q_OBJECT
43 public:
44     InteractionDialog( intf_thread_t *, interaction_dialog_t * );
45     virtual ~InteractionDialog();
46
47     void Update();
48
49 private:
50     intf_thread_t *p_intf;
51     interaction_dialog_t *p_dialog;
52     Ui::OKCancelDialog *uiOkCancel;
53     Ui::YesNoCancelDialog *uiYesNoCancel;
54     Ui::LoginDialog *uiLogin;
55     Ui::InputDialog *uiInput;
56     Ui::ProgressDialog *uiProgress;
57
58     void Finish( int );
59 private slots:
60     void OK();
61     void yes();
62     void no();
63     void cancel();
64 };
65
66 #endif