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>
31 #include "dialogs/interaction.hpp"
38 class DialogsProvider : public QObject
42 static DialogsProvider *getInstance()
47 static DialogsProvider *getInstance( intf_thread_t *p_intf )
50 instance = new DialogsProvider( p_intf );
53 virtual ~DialogsProvider() {};
56 friend class QVLCMenu;
57 QSignalMapper *menusMapper;
58 QSignalMapper *menusUpdateMapper;
59 void customEvent( QEvent *);
61 DialogsProvider( intf_thread_t *);
62 intf_thread_t *p_intf;
63 static DialogsProvider *instance;
64 QStringList showSimpleOpen();
67 void playlistDialog();
68 void bookmarksDialog();
69 void streaminfoDialog();
71 void messagesDialog();
72 void simplePLAppendDialog();
73 void simpleMLAppendDialog();
74 void simpleOpenDialog();
76 void PLAppendDialog();
77 void MLAppendDialog();
78 void openDialog( int );
79 void popupMenu( int );
80 void doInteraction( intf_dialog_args_t * );
81 void menuAction( QObject *);
82 void menuUpdateAction( QObject *);
83 void streamingDialog();
86 void openMLDirectory();