]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/interaction.hpp
Qt4 - Small open dialog refactoring for use for vlm dialog.
[vlc] / modules / gui / qt4 / dialogs / interaction.hpp
index ca56e11883f93ac9473cd051fea6e6b9732b825e..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 <ui/okcanceldialog.h>
+#include <vlc_interface.h>
 
-class InteractionDialog : public QWidget
+#include <QWidget>
+
+class QPushButton;
+class QLabel;
+class QProgressBar;
+class QLineEdit;
+
+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;
-    Ui::OKCancelDialog *uiOkCancel;
 
-    void Finish( int, QString *, QString * );
+    QPushButton *defaultButton, *otherButton, *altButton;
+    QLabel *description;
+    QProgressBar *progressBar;
+    QLineEdit *inputEdit, *loginEdit, *passwordEdit;
+
+    void Finish( int );
+
 private slots:
-    void OK();
-    void cancel();
+    void defaultB();
+    void altB();
+    void otherB();
 };
 
 #endif