ui.vlmItemScroll->ensureWidgetVisible( vlmItems.at( i ) );
}
-bool VLMDialog::isNameGenuine( QString name )
+bool VLMDialog::isNameGenuine( const QString& name )
{
for( int i = 0; i < vlmItems.size(); i++ )
{
* VLMAWidget - Abstract class
********************************/
-VLMAWidget::VLMAWidget( QString _name,
- QString _input,
- QString _output,
+VLMAWidget::VLMAWidget( const QString& _name,
+ const QString& _input,
+ const QString& _output,
bool _enabled,
VLMDialog *_parent,
int _type )
/****************
* VLMBroadcast
****************/
-VLMBroadcast::VLMBroadcast( QString _name, QString _input, QString _output,
- bool _enabled, bool _looped, VLMDialog *_parent)
+VLMBroadcast::VLMBroadcast( const QString& _name, const QString& _input,
+ const QString& _output, bool _enabled,
+ bool _looped, VLMDialog *_parent )
: VLMAWidget( _name, _input, _output,
_enabled, _parent, QVLM_Broadcast )
{
/****************
* VLMSchedule
****************/
-VLMSchedule::VLMSchedule( QString name, QString input, QString output,
- QDateTime _schetime, QDateTime _schedate,
- int _scherepeatnumber, int _repeatDays,
- bool enabled, VLMDialog *parent )
+VLMSchedule::VLMSchedule( const QString& name, const QString& input,
+ const QString& output, QDateTime _schetime,
+ QDateTime _schedate, int _scherepeatnumber,
+ int _repeatDays, bool enabled, VLMDialog *parent )
: VLMAWidget( name, input, output, enabled, parent, QVLM_Schedule )
{
nameLabel->setText( qtr("Schedule: ") + name );
/****************
* VLMVOD
****************/
-VLMVod::VLMVod( QString name, QString input, QString output,
- bool enabled, QString _mux, VLMDialog *parent)
+VLMVod::VLMVod( const QString& name, const QString& input, const QString& output,
+ bool enabled, const QString& _mux, VLMDialog *parent)
: VLMAWidget( name, input, output, enabled, parent, QVLM_VOD )
{
nameLabel->setText( qtr("VOD: ") + name );
p_vlm = NULL;
}
-void VLMWrapper::AddBroadcast( const QString name, QString input,
- QString output,
+void VLMWrapper::AddBroadcast( const QString& name, const QString& input,
+ const QString& output,
bool b_enabled, bool b_loop )
{
vlm_message_t *message;
EditBroadcast( name, input, output, b_enabled, b_loop );
}
-void VLMWrapper::EditBroadcast( const QString name, const QString input,
- const QString output,
+void VLMWrapper::EditBroadcast( const QString& name, const QString& input,
+ const QString& output,
bool b_enabled, bool b_loop )
{
vlm_message_t *message;
}
}
-void VLMWrapper::EnableItem( const QString name, bool b_enable )
+void VLMWrapper::EnableItem( const QString& name, bool b_enable )
{
vlm_message_t *message;
QString command = "setup \"" + name + ( b_enable ? " enable" : " disable" );
vlm_MessageDelete( message );
}
-void VLMWrapper::ControlBroadcast( const QString name, int BroadcastStatus,
+void VLMWrapper::ControlBroadcast( const QString& name, int BroadcastStatus,
unsigned int seek )
{
vlm_message_t *message;
vlm_MessageDelete( message );
}
-void VLMWrapper::AddVod( const QString name, const QString input,
- const QString output,
- bool b_enabled, const QString mux )
+void VLMWrapper::AddVod( const QString& name, const QString& input,
+ const QString& output,
+ bool b_enabled, const QString& mux )
{
vlm_message_t *message;
QString command = "new \"" + name + "\" vod";
EditVod( name, input, output, b_enabled, mux );
}
-void VLMWrapper::EditVod( const QString name, const QString input,
- const QString output,
+void VLMWrapper::EditVod( const QString& name, const QString& input,
+ const QString& output,
bool b_enabled,
- const QString mux )
+ const QString& mux )
{
vlm_message_t *message;
QString command = "setup \"" + name + "\" input \"" + input + "\"";
}
}
-void VLMWrapper::AddSchedule( const QString name, const QString input,
- const QString output, QDateTime _schetime,
+void VLMWrapper::AddSchedule( const QString& name, const QString& input,
+ const QString& output, QDateTime _schetime,
QDateTime _schedate,
int _scherepeatnumber, int _repeatDays,
- bool b_enabled, const QString mux )
+ bool b_enabled, const QString& mux )
{
vlm_message_t *message;
QString command = "new \"" + name + "\" schedule";
_scherepeatnumber, _repeatDays, b_enabled, mux );
}
-void VLMWrapper::EditSchedule( const QString name, const QString input,
- const QString output, QDateTime _schetime,
- QDateTime _schedate, int _scherepeatnumber,
- int _repeatDays, bool b_enabled,
- const QString mux )
+void VLMWrapper::EditSchedule( const QString& name, const QString& input,
+ const QString& output, QDateTime _schetime,
+ QDateTime _schedate, int _scherepeatnumber,
+ int _repeatDays, bool b_enabled,
+ const QString& mux )
{
vlm_message_t *message;
QString command = "setup \"" + name + "\" input \"" + input + "\"";
QComboBox *mediatype;
QDateTimeEdit *time, *date, *repeatTime;
QSpinBox *scherepeatnumber, *repeatDays;
- bool isNameGenuine( QString );
+ bool isNameGenuine( const QString& );
void mediasPopulator();
public slots:
void removeVLMItem( VLMAWidget * );
VLMWrapper( vlm_t * );
virtual ~VLMWrapper();
- static void AddBroadcast( const QString, const QString, const QString,
+ static void AddBroadcast( const QString&, const QString&, const QString&,
bool b_enabled = true,
bool b_loop = false );
- static void EditBroadcast( const QString, const QString, const QString,
+ static void EditBroadcast( const QString&, const QString&, const QString&,
bool b_enabled = true,
bool b_loop = false );
- static void EditSchedule( const QString, const QString, const QString,
+ static void EditSchedule( const QString&, const QString&, const QString&,
QDateTime _schetime, QDateTime _schedate,
int _scherepeatnumber, int _repeatDays,
- bool b_enabled = true, QString mux = "" );
- static void AddVod( const QString, const QString, const QString,
- bool b_enabled = true, QString mux = "" );
- static void EditVod( const QString, const QString, const QString,
- bool b_enabled = true, QString mux = "" );
- static void AddSchedule( const QString, const QString, const QString,
+ bool b_enabled = true, const QString& mux = "" );
+ static void AddVod( const QString&, const QString&, const QString&,
+ bool b_enabled = true, const QString& mux = "" );
+ static void EditVod( const QString&, const QString&, const QString&,
+ bool b_enabled = true, const QString& mux = "" );
+ static void AddSchedule( const QString&, const QString&, const QString&,
QDateTime _schetime, QDateTime _schedate,
int _scherepeatnumber, int _repeatDays,
- bool b_enabled = true, QString mux = "" );
+ bool b_enabled = true, const QString& mux = "" );
- static void ControlBroadcast( const QString, int, unsigned int seek = 0 );
- static void EnableItem( const QString, bool );
+ static void ControlBroadcast( const QString&, int, unsigned int seek = 0 );
+ static void EnableItem( const QString&, bool );
/* We don't have yet the accessors in the core, so the following is commented */
//unsigned int NbMedia() { if( p_vlm ) return p_vlm->i_media; return 0; }
Q_OBJECT
friend class VLMDialog;
public:
- VLMAWidget( QString name, QString input, QString output,
+ VLMAWidget( const QString& name, const QString& input, const QString& output,
bool _enable, VLMDialog *parent, int _type = QVLM_Broadcast );
virtual void update() = 0;
protected:
Q_OBJECT
friend class VLMDialog;
public:
- VLMBroadcast( QString name, QString input, QString output,
+ VLMBroadcast( const QString& name, const QString& input, const QString& output,
bool _enable, bool _loop, VLMDialog *parent );
void update();
private:
Q_OBJECT
friend class VLMDialog;
public:
- VLMVod( QString name, QString input, QString output,
- bool _enable, QString _mux, VLMDialog *parent );
+ VLMVod( const QString& name, const QString& input, const QString& output,
+ bool _enable, const QString& _mux, VLMDialog *parent );
void update();
private:
QString mux;
Q_OBJECT
friend class VLMDialog;
public:
- VLMSchedule( QString name, QString input, QString output,
+ VLMSchedule( const QString& name, const QString& input, const QString& output,
QDateTime schetime, QDateTime schedate, int repeatnumber,
int repeatdays, bool enabled, VLMDialog *parent );
void update();