sout_widgets.hpp 3.58 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
    public:
63
        FileDestBox( QWidget *_parent = NULL, intf_thread_t * = NULL );
64
        virtual QString getMRL( const QString& );
65
66
    private:
        QLineEdit *fileEdit;
67
        intf_thread_t *p_intf;
68
69
70
71
72
73
    private slots:
        void fileBrowse();
};

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

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

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

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

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

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



144
#endif