#ifndef _DIALOGS_PROVIDER_H_
#define _DIALOGS_PROVIDER_H_
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <assert.h>
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_interface.h>
+#include "qt4.hpp"
#include "dialogs/interaction.hpp"
+#include "dialogs/open.hpp"
#include <QObject>
#include <QTimer>
EXT_FILTER_SUBTITLE = 0x10,
};
-enum {
- OPEN_FILE_TAB,
- OPEN_DISC_TAB,
- OPEN_NETWORK_TAB,
- OPEN_CAPTURE_TAB,
- OPEN_TAB_MAX
-};
-
-enum {
- OPEN_AND_PLAY,
- OPEN_AND_STREAM,
- OPEN_AND_SAVE,
- OPEN_AND_ENQUEUE,
- SELECT
-};
-
class QEvent;
class QSignalMapper;
class QVLCMenu;
class DialogsProvider : public QObject
{
Q_OBJECT;
+ friend class QVLCMenu;
+
public:
static DialogsProvider *getInstance()
{
static void killInstance()
{
if( instance ) delete instance;
- instance=NULL;
+ instance = NULL;
}
virtual ~DialogsProvider();
QTimer *fixed_timer;
EXT_FILTER_PLAYLIST,
QString path = QString() );
protected:
- friend class QVLCMenu;
QSignalMapper *menusMapper;
QSignalMapper *menusUpdateMapper;
QSignalMapper *SDMapper;
void customEvent( QEvent *);
+
private:
DialogsProvider( intf_thread_t *);
intf_thread_t *p_intf;
void prefsDialog();
void extendedDialog();
void messagesDialog();
+#ifdef ENABLE_VLM
void vlmDialog();
+#endif
void helpDialog();
#ifdef UPDATE_CHECK
void updateDialog();
void PLAppendDir();
void MLAppendDir();
- void streamingDialog( QString mrl = "", bool b_stream = true );
+ void streamingDialog( QWidget *parent, QString mrl = "",
+ bool b_stream = true );
void openThenStreamingDialogs();
void openThenTranscodingDialogs();
void openAPlaylist();
void saveAPlaylist();
- void switchToSkins();
+ void loadSubtitlesFile();
+
void quit();
};