]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/sout/sout_widgets.cpp
qt4: missing const for QString.
[vlc] / modules / gui / qt4 / components / sout / sout_widgets.cpp
index 457228a8622cf4697d9a08b1e7c12cd98b3a9e5d..2c770427d5fef3294eef42a232d03f91ae58ee81 100644 (file)
@@ -1,10 +1,13 @@
 /*****************************************************************************
  * profile_selector.cpp : A small profile selector and editor
  ****************************************************************************
- * Copyright (C) 2009 the VideoLAN team
+ * Copyright (C) 2007-2009 the VideoLAN team
+ * Copyright (C) 2007 Société des arts technologiques
+ * Copyright (C) 2007 Savoir-faire Linux
  * $Id$
  *
  * Authors: Jean-Baptiste Kempf <jb@videolan.org>
+ *          Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
  *
  * 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
@@ -31,7 +34,7 @@
 #include <QLineEdit>
 #include <QFileDialog>
 
-SoutInputBox::SoutInputBox( QWidget *_parent, QString mrl ) : QGroupBox( _parent )
+SoutInputBox::SoutInputBox( QWidget *_parent, const QString& mrl ) : QGroupBox( _parent )
 {
     /**
      * Source Block
@@ -59,7 +62,7 @@ SoutInputBox::SoutInputBox( QWidget *_parent, QString mrl ) : QGroupBox( _parent
     sourceLayout->addWidget( line, 2, 0, 1, -1 );
 }
 
-void SoutInputBox::setMRL( QString mrl )
+void SoutInputBox::setMRL( const QString& mrl )
 {
     sourceLine->setText( mrl );
     QString type;
@@ -73,7 +76,7 @@ void SoutInputBox::setMRL( QString mrl )
     sourceValueLabel->setText( type );
 }
 
- #define CT( x ) connect( x, SIGNAL( textChanged( const QString ) ), this, SIGNAL( mrlUpdated() ) );
+ #define CT( x ) connect( x, SIGNAL( textChanged( const QString& ) ), this, SIGNAL( mrlUpdated() ) );
  #define CS( x ) connect( x, SIGNAL( valueChanged( int ) ), this, SIGNAL( mrlUpdated() ) );
 
 /* FileDest Box */
@@ -83,7 +86,7 @@ FileDestBox::FileDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *fileOutput = new QLabel(
-         qtr( "This modules outputs to a file on your disk."), this );
+         qtr( "This module writes the transcoded stream to a file."), this );
     layout->addWidget(fileOutput, 0, 0, 1, -1);
 
     QLabel *fileLabel = new QLabel( qtr( "Filename"), this );
@@ -101,7 +104,7 @@ FileDestBox::FileDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     BUTTONACT( fileSelectButton, fileBrowse() );
 }
 
-QString FileDestBox::getMRL( QString mux )
+QString FileDestBox::getMRL( const QString& mux )
 {
     if( fileEdit->text().isEmpty() ) return "";
 
@@ -131,7 +134,8 @@ HTTPDestBox::HTTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *httpOutput = new QLabel(
-         qtr( "This modules streams on the networks with the HTTP protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network via HTTP."),
+        this );
     layout->addWidget(httpOutput, 0, 0, 1, -1);
 
     QLabel *HTTPLabel = new QLabel( qtr("Address"), this );
@@ -154,7 +158,7 @@ HTTPDestBox::HTTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( HTTPEdit );
 }
 
-QString HTTPDestBox::getMRL( QString mux )
+QString HTTPDestBox::getMRL( const QString& mux )
 {
     if( HTTPEdit->text().isEmpty() ) return "";
 
@@ -174,7 +178,8 @@ MMSHDestBox::MMSHDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *mmshOutput = new QLabel(
-         qtr( "This modules streams on the networks with the mms: protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network "
+             " via the mms protocol." ), this );
     layout->addWidget(mmshOutput, 0, 0, 1, -1);
 
     QLabel *MMSHLabel = new QLabel( qtr("Address"), this );
@@ -197,7 +202,7 @@ MMSHDestBox::MMSHDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( MMSHEdit );
 }
 
-QString MMSHDestBox::getMRL( QString mux )
+QString MMSHDestBox::getMRL( const QString& mux )
 {
     if( MMSHEdit->text().isEmpty() ) return "";
 
@@ -217,7 +222,8 @@ UDPDestBox::UDPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *udpOutput = new QLabel(
-         qtr( "This modules streams on the networks with the UDP protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network via UDP."),
+        this );
     layout->addWidget(udpOutput, 0, 0, 1, -1);
 
     QLabel *UDPLabel = new QLabel( qtr("Address"), this );
@@ -240,7 +246,7 @@ UDPDestBox::UDPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( UDPEdit );
 }
 
-QString UDPDestBox::getMRL( QString mux )
+QString UDPDestBox::getMRL( const QString& mux )
 {
     if( UDPEdit->text().isEmpty() ) return "";
 
@@ -262,7 +268,8 @@ RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *rtpOutput = new QLabel(
-         qtr( "This modules streams on the networks with the RTP protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network via RTP."),
+        this );
     layout->addWidget(rtpOutput, 0, 0, 1, -1);
 
     QLabel *RTPLabel = new QLabel( qtr("Address"), this );
@@ -310,7 +317,7 @@ RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( RTPEdit );
 }
 
-QString RTPDestBox::getMRL( QString mux )
+QString RTPDestBox::getMRL( const QString& mux )
 {
     if( RTPEdit->text().isEmpty() ) return "";
 
@@ -337,7 +344,8 @@ ICEDestBox::ICEDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *iceOutput = new QLabel(
-         qtr( "This modules streams using IceCast."), this );
+        qtr( "This module outputs the transcoded stream to an Icecast server."),
+        this );
     layout->addWidget(iceOutput, 0, 0, 1, -1);
 
     QLabel *ICELabel = new QLabel( qtr("Address"), this );
@@ -372,7 +380,7 @@ ICEDestBox::ICEDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( ICEPassEdit );
 }
 
-QString ICEDestBox::getMRL( QString mux )
+QString ICEDestBox::getMRL( const QString& mux )
 {
     if( ICEEdit->text().isEmpty() ) return "";