Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

dialogs.hpp

00001 /*****************************************************************************
00002  * dialogs.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: dialogs.hpp 12056 2005-08-07 10:56:07Z ipkiss $
00006  *
00007  * Authors: Cyril Deguet     <[email protected]>
00008  *          Olivier Teulière <[email protected]>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef DIALOGS_HPP
00026 #define DIALOGS_HPP
00027 
00028 #include "skin_common.hpp"
00029 #include <string>
00030 
00031 
00032 // Dialogs provider
00033 class Dialogs: public SkinObject
00034 {
00035     public:
00037         static Dialogs *instance( intf_thread_t *pIntf );
00038 
00040         static void destroy( intf_thread_t *pIntf );
00041 
00043         void showChangeSkin();
00044 
00046         void showPlaylistLoad();
00047 
00049         void showPlaylistSave();
00050 
00054         void showFileSimple( bool play );
00055 
00059         void showFile( bool play );
00060 
00064         void showDirectory( bool play );
00065 
00069         void showDisc( bool play );
00070 
00074         void showNet( bool play );
00075 
00077         void showMessages();
00078 
00080         void showPrefs();
00081 
00083         void showFileInfo();
00084 
00086         void showStreamingWizard();
00087 
00089         void showPopupMenu( bool bShow );
00090 
00091     private:
00092         // Private because it's a singleton
00093         Dialogs( intf_thread_t *pIntf );
00094         ~Dialogs();
00095 
00097         typedef void DlgCallback( intf_dialog_args_t *pArg );
00098 
00100         typedef enum
00101         {
00102             kOPEN     = 0x01,
00103             kSAVE     = 0x02,
00104             kMULTIPLE = 0x04
00105         } flags_t;
00106 
00108         bool init();
00109 
00114         void showFileGeneric( const string &rTitle, const string &rExtensions,
00115                               DlgCallback callback, int flags );
00116 
00118         static void showChangeSkinCB( intf_dialog_args_t *pArg );
00119 
00121         static void showPlaylistLoadCB( intf_dialog_args_t *pArg );
00122 
00124         static void showPlaylistSaveCB( intf_dialog_args_t *pArg );
00125 
00127         intf_thread_t *m_pProvider;
00128         module_t *m_pModule;
00129 };
00130 
00131 
00132 #endif

Generated on Tue Dec 20 10:14:42 2005 for vlc-0.8.4a by  doxygen 1.4.2