typeShortName = "Bcast";
vlmAwidget = new VLMBroadcast( name, inputText, outputText,
b_checked, b_looped, this );
- //VLMWrapper::AddBroadcast( vlmWrapper->p_vlc, name, inputText, outputText, b_checked, b_looped );
+ VLMWrapper::AddBroadcast( name, inputText, outputText, b_checked, b_looped );
break;
case QVLM_VOD:
typeShortName = "VOD";
vlmAwidget = new VLMVod( name, inputText, outputText,
b_checked, ui.muxLedit->text(), this );
- ///VLMWrapper::AddVod( vlmWrapper->GetVLM(), name, inputText, outputText, b_checked );
+ VLMWrapper::AddVod( name, inputText, outputText, b_checked );
break;
case QVLM_Schedule:
typeShortName = "Sched";
BUTTONACT( modifyButton, modify() );
BUTTONACT( deleteButton, del() );
+ CONNECT( this, clicked( bool ), this, toggleEnabled( bool ) );
}
void VLMAWidget::modify()
printf( "test" );
}
+void VLMAWidget::toggleEnabled( bool b_enable )
+{
+ VLMWrapper::EnableItem( name, b_enable );
+}
+
/****************
* VLMBroadcast
****************/
void VLMBroadcast::update()
{
- //VLMWrapper::EditBroadcast( VLMWrapper::p_vlm, name, input, output, b_enabled, b_looped );
+ VLMWrapper::EditBroadcast( name, input, output, b_enabled, b_looped );
if( b_looped )
loopButton->setIcon( QIcon( QPixmap( ":/pixmaps/playlist_repeat_all.png" ) ) );
else
{
if( b_playing = true )
{
- // VLMWrapper::ControlBroadcast( VLMWrapper::p_vlm, name, ControlBroadcastPause );
+ VLMWrapper::ControlBroadcast( name, ControlBroadcastPause );
playButton->setIcon( QIcon( QPixmap( ":/pixmaps/pause_16px.png" ) ) );
}
else
{
- //VLMWrapper::ControlBroadcast( VLMWrapper::p_vlm, name, ControlBroadcastPlay );
+ VLMWrapper::ControlBroadcast( name, ControlBroadcastPlay );
playButton->setIcon( QIcon( QPixmap( ":/pixmaps/play_16px.png" ) ) );
}
b_playing = !b_playing;
void VLMBroadcast::stop()
{
- //VLMWrapper::ControlBroadcast( VLMWrapper::p_vlm, name, ControlBroadcastStop );
+ VLMWrapper::ControlBroadcast( name, ControlBroadcastStop );
playButton->setIcon( QIcon( QPixmap( ":/pixmaps/play_16px.png" ) ) );
}
void VLMVod::update()
{
muxLabel->setText( mux );
- //VLMWrapper::EditVod( p_vlm, name, input, output, b_enabled, mux );
+ VLMWrapper::EditVod( name, input, output, b_enabled, mux );
}
}
}
+void VLMWrapper::EnableItem( const QString name, bool b_enable )
+{
+ vlm_message_t *message;
+ QString command = "setup \"" + name + ( b_enable ? " enable" : " disable" );
+}
+
void VLMWrapper::ControlBroadcast( const QString name, int BroadcastStatus,
unsigned int seek )
{
vlm_message_t *message;
- QString command = "setup \"" + name;
+ QString command = "control \"" + name;
switch( BroadcastStatus )
{
case ControlBroadcastPlay: