#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>
string += qtr( "All Files" ); \
string += " (*.*)";
-#define EXT_FILTER_MEDIA 0x01
-#define EXT_FILTER_VIDEO 0x02
-#define EXT_FILTER_AUDIO 0x04
-#define EXT_FILTER_PLAYLIST 0x08
-#define 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
+ EXT_FILTER_MEDIA = 0x01,
+ EXT_FILTER_VIDEO = 0x02,
+ EXT_FILTER_AUDIO = 0x04,
+ EXT_FILTER_PLAYLIST = 0x08,
+ EXT_FILTER_SUBTITLE = 0x10,
};
class QEvent;
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();
+#endif
void aboutDialog();
void gotoTimeDialog();
void podcastConfigureDialog();
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();
};