]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/sout.hpp
09d281431f73b26d4d29c1c6dc6f0fe81847c342
[vlc] / modules / gui / qt4 / dialogs / sout.hpp
1 /*****************************************************************************
2  * sout.hpp : Stream output dialog ( old-style, ala WX )
3  ****************************************************************************
4  * Copyright ( C ) 2006 the VideoLAN team
5  * $Id$
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _SOUT_DIALOG_H_
25 #define _SOUT_DIALOG_H_
26
27 #include <vlc/vlc.h>
28 #include <vlc_streaming.h>
29
30 #include "ui/sout.h"
31 #include "util/qvlcframe.hpp"
32
33 class QPushButton;
34 class QCheckBox;
35 class QGridLayout;
36 class QTextEdit;
37
38 class SoutDialog : public QVLCDialog
39 {
40     Q_OBJECT;
41 public:
42     SoutDialog( QWidget* parent, intf_thread_t *,
43                 bool _transcode_only = false );
44     virtual ~SoutDialog() {}
45
46     QString getMrl();  
47     //sout_gui_descr_t *sout;
48 private:
49     Ui::Sout ui;
50     QPushButton *okButton;
51     QString mrl;
52     bool b_transcode_only;
53
54 public slots:
55     void updateMRL();
56
57 private slots:
58     void ok();
59     void cancel();
60     void toggleSout();
61     void setOptions();
62     void fileBrowse();
63     void setVTranscodeOptions( bool );
64     void setATranscodeOptions( bool );
65     void setSTranscodeOptions( bool );
66     void setRawOptions( bool );
67 };
68
69 #endif