1 /*****************************************************************************
2 * dialogs_provider.hpp : Dialogs provider
3 ****************************************************************************
4 * Copyright (C) 2006 the VideoLAN team
7 * Authors: Clément Stenac <zorglub@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
23 #ifndef _DIALOGS_PROVIDER_H_
24 #define _DIALOGS_PROVIDER_H_
28 #include <QApplication>
30 #include "dialogs/interaction.hpp"
34 #include <vlc_interface.h>
40 class DialogsProvider : public QObject
44 static DialogsProvider *getInstance()
49 static DialogsProvider *getInstance( intf_thread_t *p_intf )
52 instance = new DialogsProvider( p_intf );
55 static void killInstance()
57 if( instance ) delete instance;
60 virtual ~DialogsProvider();
63 QStringList showSimpleOpen( QString help = QString(), bool all = true,
64 bool video = true, bool audio = true,
65 bool subs = true, bool pls = true );
67 friend class QVLCMenu;
68 QSignalMapper *menusMapper;
69 QSignalMapper *menusUpdateMapper;
70 QSignalMapper *SDMapper;
71 void customEvent( QEvent *);
73 DialogsProvider( intf_thread_t *);
74 intf_thread_t *p_intf;
75 static DialogsProvider *instance;
76 void addFromSimple( bool, bool );
79 void playlistDialog();
80 void bookmarksDialog();
81 void mediaInfoDialog();
83 void extendedDialog();
84 void messagesDialog();
85 void simplePLAppendDialog();
86 void simpleMLAppendDialog();
87 void simpleOpenDialog();
89 void openDialog(int );
90 void openFileDialog();
92 void openCaptureDialog();
93 void openDiscDialog();
94 void PLAppendDialog();
95 void MLAppendDialog();
96 void popupMenu( int );
97 void doInteraction( intf_dialog_args_t * );
98 void menuAction( QObject *);
99 void menuUpdateAction( QObject *);
100 void SDMenuAction( QString );
101 void streamingDialog();
107 void switchToSkins();