]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/interaction.hpp
9cf828a8e199b2730264e1f507f52080c94ed859
[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 #include <QWidget>
29
30 class QPushButton;
31 class QLabel;
32 class QProgressBar;
33 class QLineEdit;
34
35 class InteractionDialog : public QWidget
36 {
37     Q_OBJECT
38 public:
39     InteractionDialog( intf_thread_t *, interaction_dialog_t * );
40     virtual ~InteractionDialog();
41
42     void Update();
43
44 private:
45     QWidget *panel;
46     intf_thread_t *p_intf;
47     interaction_dialog_t *p_dialog;
48
49     QPushButton *defaultButton, *otherButton, *altButton;
50     QLabel *description;
51     QProgressBar *progressBar;
52     QLineEdit *inputEdit, *loginEdit, *passwordEdit;
53
54     void Finish( int );
55 private slots:
56     void defaultB();
57     void altB();
58     void otherB();
59 };
60
61 #endif