sout_widgets.hpp 3.51 KB
Newer Older
1
/*****************************************************************************
Pierre Ynard's avatar
Pierre Ynard committed
2
 * sout_widgets.hpp : Widgets for stream output destination boxes
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 ****************************************************************************
 * Copyright (C) 2009 the VideoLAN team
 * $Id$
 *
 * Authors: Jean-Baptiste Kempf <jb@videolan.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#ifndef SOUT_WIDGETS_H
#define SOUT_WIDGETS_H

#include "qt4.hpp"

29
#include <QGroupBox>
30

31
32
class QLineEdit;
class QLabel;
33
class QSpinBox;
34

35
class SoutInputBox : public QGroupBox
36
37
{
    public:
38
        SoutInputBox( QWidget *_parent = NULL, const QString& mrl = "" );
39

40
        void setMRL( const QString& );
41
42
43
    private:
        QLineEdit *sourceLine;
        QLabel *sourceValueLabel;
44
45
46

};

47
48
class VirtualDestBox : public QWidget
{
François Cartegnie's avatar
François Cartegnie committed
49
    Q_OBJECT
50
51
    public:
        VirtualDestBox( QWidget *_parent = NULL ) : QWidget( _parent ){}
52
        virtual QString getMRL( const QString& ) = 0;
53
54
55
56
57
58
59
60
    protected:
        QString mrl;
    signals:
        void mrlUpdated();
};

class FileDestBox: public VirtualDestBox
{
François Cartegnie's avatar
François Cartegnie committed
61
    Q_OBJECT
62
63
    public:
        FileDestBox( QWidget *_parent = NULL );
64
        virtual QString getMRL( const QString& );
65
66
67
68
69
70
71
72
    private:
        QLineEdit *fileEdit;
    private slots:
        void fileBrowse();
};

class HTTPDestBox: public VirtualDestBox
{
François Cartegnie's avatar
François Cartegnie committed
73
    Q_OBJECT
74
75
    public:
        HTTPDestBox( QWidget *_parent = NULL );
76
        virtual QString getMRL( const QString& );
77
78
79
80
81
82
83
    private:
        QLineEdit *HTTPEdit;
        QSpinBox *HTTPPort;
};

class MMSHDestBox: public VirtualDestBox
{
François Cartegnie's avatar
François Cartegnie committed
84
    Q_OBJECT
85
86
    public:
        MMSHDestBox( QWidget *_parent = NULL );
87
        virtual QString getMRL( const QString& );
88
89
90
91
92
    private:
        QLineEdit *MMSHEdit;
        QSpinBox *MMSHPort;
};

93
94
class RTSPDestBox: public VirtualDestBox
{
François Cartegnie's avatar
François Cartegnie committed
95
    Q_OBJECT
96
97
98
99
100
101
102
103
    public:
        RTSPDestBox( QWidget *_parent = NULL );
        virtual QString getMRL( const QString& );
    private:
        QLineEdit *RTSPEdit;
        QSpinBox *RTSPPort;
};

104
105
class UDPDestBox: public VirtualDestBox
{
François Cartegnie's avatar
François Cartegnie committed
106
    Q_OBJECT
107
108
    public:
        UDPDestBox( QWidget *_parent = NULL );
109
        virtual QString getMRL( const QString& );
110
111
112
113
114
115
116
    private:
        QLineEdit *UDPEdit;
        QSpinBox *UDPPort;
};

class RTPDestBox: public VirtualDestBox
{
François Cartegnie's avatar
François Cartegnie committed
117
    Q_OBJECT
118
    public:
119
        RTPDestBox( QWidget *_parent = NULL, const char *mux = NULL );
120
        virtual QString getMRL( const QString& );
121
122
123
    private:
        QLineEdit *RTPEdit;
        QSpinBox *RTPPort;
124
        const char *mux;
125
126
127
128
};

class ICEDestBox: public VirtualDestBox
{
François Cartegnie's avatar
François Cartegnie committed
129
    Q_OBJECT
130
131
    public:
        ICEDestBox( QWidget *_parent = NULL );
132
        virtual QString getMRL( const QString& );
133
134
135
136
137
138
139
140
141
    private:
        QLineEdit *ICEEdit;
        QLineEdit *ICEMountEdit;
        QLineEdit *ICEPassEdit;
        QSpinBox *ICEPort;
};



142
#endif