+ if( hasInput() ) var_SetFloat( p_input, "position", new_pos );
+}
+
+void InputManager::togglePlayPause()
+{
+ vlc_value_t state;
+ var_Get( p_input, "state", &state );
+ state.i_int = ( ( state.i_int != PAUSE_S ) ? PAUSE_S : PLAYING_S );
+ /*{
+ /* A stream is being played, pause it */
+ /* state.i_int = PAUSE_S;
+ }
+ else
+ {
+ /* Stream is paused, resume it */
+ /*state.i_int = PLAYING_S;
+ }*/
+ var_Set( p_input, "state", state );
+ emit statusChanged( state.i_int );
+}
+
+void InputManager::sectionPrev()
+{
+ if( hasInput() )
+ {
+ int i_type = var_Type( p_input, "next-chapter" );
+ vlc_value_t val; val.b_bool = VLC_TRUE;
+ var_Set( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
+ "prev-chapter":"prev-title", val );
+ }
+}
+
+void InputManager::sectionNext()
+{
+ if( hasInput() )
+ {
+ int i_type = var_Type( p_input, "next-chapter" );
+ vlc_value_t val; val.b_bool = VLC_TRUE;
+ var_Set( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
+ "next-chapter":"next-title", val );
+ }
+}
+
+void InputManager::sectionMenu()
+{
+ if( hasInput() )
+ var_SetInteger( p_input, "title 0", 2 );
+}
+
+#ifdef ZVBI_COMPILED
+void InputManager::telexGotoPage( int page )
+{
+ if( hasInput() )
+ {
+ vlc_object_t *p_vbi;
+ p_vbi = (vlc_object_t *) vlc_object_find_name( p_input,
+ "zvbi", FIND_ANYWHERE );
+ if( p_vbi )
+ {
+ var_SetInteger( p_vbi, "vbi-page", page );
+ vlc_object_release( p_vbi );
+ }
+ }
+}
+
+void InputManager::telexToggle( bool b_enabled )
+{
+ int i_page = 0;
+
+ if( b_enabled )
+ i_page = 100;
+ telexGotoPage( i_page );
+}
+
+void InputManager::telexSetTransparency( bool b_transp )
+{
+ if( hasInput() )
+ {
+ vlc_object_t *p_vbi;
+ p_vbi = (vlc_object_t *) vlc_object_find_name( p_input,
+ "zvbi", FIND_ANYWHERE );
+ if( p_vbi )
+ {
+ var_SetBool( p_input->p_libvlc, "vbi-opaque", b_transp );
+ vlc_object_release( p_vbi );
+ }
+ }
+}
+#endif
+
+void InputManager::slower()
+{
+ if( hasInput() )
+ var_SetVoid( p_input, "rate-slower" );
+}
+
+void InputManager::faster()
+{
+ if( hasInput() )
+ var_SetVoid( p_input, "rate-faster" );
+}
+
+void InputManager::normalRate()
+{
+ if( hasInput() )
+ var_SetInteger( p_input, "rate", INPUT_RATE_DEFAULT );
+}
+
+void InputManager::setRate( int new_rate )
+{
+ if( hasInput() )
+ var_SetInteger( p_input, "rate", new_rate );