- static int MessageCallback (vlc_object_t *, const char *,
- vlc_value_t, vlc_value_t, void *);
- static int LoginCallback (vlc_object_t *obj, const char *,
- vlc_value_t, vlc_value_t, void *data);
+ QVLCVariable message;
+ QVLCVariable login;
+ QVLCVariable question;
+ QVLCVariable progressBar;
+signals:
+ void progressBarDestroyed (QWidget *);
+
+private slots:
+ void displayMessage (vlc_object_t *, void *);
+ void requestLogin (vlc_object_t *, void *);
+ void requestAnswer (vlc_object_t *, void *);
+ void startProgressBar (vlc_object_t *, void *);
+ void stopProgressBar (QWidget *);
+};
+
+/* Put here instead of .cpp because of MOC */
+#include <QProgressDialog>
+
+class QVLCProgressDialog : public QProgressDialog
+{
+ Q_OBJECT
+public:
+ QVLCProgressDialog (DialogHandler *parent,
+ struct dialog_progress_bar_t *);
+ virtual ~QVLCProgressDialog (void);
+
+private:
+ DialogHandler *handler;
+ bool cancelled;