]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/interaction.hpp
Qt4 - typo.
[vlc] / modules / gui / qt4 / dialogs / interaction.hpp
index 9cf828a8e199b2730264e1f507f52080c94ed859..fce2dd6003087360f8cfd9a15e5fa63025551c68 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
 
 #ifndef _INTERACTION_H_
 #define _INTERACTION_H_
 
 #include <vlc/vlc.h>
-#include <vlc_interaction.h>
+#include <vlc_interface.h>
+
 #include <QWidget>
 
 class QPushButton;
@@ -32,17 +34,20 @@ class QLabel;
 class QProgressBar;
 class QLineEdit;
 
-class InteractionDialog : public QWidget
+class InteractionDialog : public QObject
 {
     Q_OBJECT
 public:
     InteractionDialog( intf_thread_t *, interaction_dialog_t * );
     virtual ~InteractionDialog();
 
-    void Update();
+    void update();
+    void show() { if( dialog ) dialog->show(); }
+    void hide() { if( dialog ) dialog->hide(); }
 
 private:
     QWidget *panel;
+    QWidget *dialog;
     intf_thread_t *p_intf;
     interaction_dialog_t *p_dialog;
 
@@ -52,6 +57,7 @@ private:
     QLineEdit *inputEdit, *loginEdit, *passwordEdit;
 
     void Finish( int );
+
 private slots:
     void defaultB();
     void altB();