]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/wizard.hpp
p( vlc.getInterfaces().getInterface( "wxwidgets" ).isBroken() ) = 1/2
[vlc] / modules / gui / wxwidgets / dialogs / wizard.hpp
1 /*****************************************************************************
2  * wizard.hpp: Stream wizard headers
3  *****************************************************************************
4  * Copyright (C) 1999-2005 the VideoLAN team
5  * $Id: wxwidgets.h 12670 2005-09-25 11:16:31Z zorglub $
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
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.
13  *
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.
18  *
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #ifndef _WXVLC_WIZARD_H_
25 #define _WXVLC_WIZARD_H_
26
27 #include "wxwidgets.hpp"
28 #include <wx/wizard.h>
29
30 namespace wxvlc
31 {
32     /* Wizard */
33     class WizardDialog : public wxWizard
34     {
35     public:
36         /* Constructor */
37         WizardDialog( intf_thread_t *, wxWindow *p_parent, char *, int, int );
38         virtual ~WizardDialog();
39         void SetTranscode( char const *vcodec, int vb, char const *acodec,
40                             int ab);
41         void SetMrl( const char *mrl );
42         void SetTTL( int i_ttl );
43         void SetPartial( int, int );
44         void SetStream( char const *method, char const *address );
45         void SetTranscodeOut( char const *address );
46         void SetAction( int i_action );
47         int  GetAction();
48         void SetSAP( bool b_enabled, const char *psz_name );
49         void SetMux( char const *mux );
50         void Run();
51         int i_action;
52         char *method;
53
54     protected:
55         int vb,ab;
56         int i_from, i_to, i_ttl;
57         char *vcodec , *acodec , *address , *mrl , *mux ;
58         char *psz_sap_name;
59         bool b_sap;
60         DECLARE_EVENT_TABLE();
61
62         intf_thread_t *p_intf;
63     };
64 };
65
66 #endif