void InputManager::customEvent( QEvent *event )
{
int type = event->type();
- msg_Dbg( p_intf, "New IM Event of type: %i", type );
+ //msg_Dbg( p_intf, "New IM Event of type: %i", type );
if ( type != PositionUpdate_Type &&
type != ItemChanged_Type &&
type != ItemRateChanged_Type &&
case ItemChanged_Type:
UpdateMeta();
UpdateTitle();
+ UpdateArt();
break;
case ItemRateChanged_Type:
UpdateRate();
}
}
-void InputManager::UpdatePosition( void )
+void InputManager::UpdatePosition()
{
/* Update position */
int i_length, i_time; /* Int is enough, since we store seconds */
emit positionUpdated( f_pos, i_time, i_length );
}
-void InputManager::UpdateTitle( void )
+void InputManager::UpdateTitle()
{
/* Update navigation status */
vlc_value_t val; val.i_int = 0;
}
}
-void InputManager::UpdateStatus( void )
+void InputManager::UpdateStatus()
{
/* Update playing status */
vlc_value_t val; val.i_int = 0;
}
}
-void InputManager::UpdateRate( void )
+void InputManager::UpdateRate()
{
/* Update Rate */
int i_new_rate = var_GetInteger( p_input, "rate");
}
}
-void InputManager::UpdateMeta( void )
+void InputManager::UpdateMeta()
{
/* Update text, name and nowplaying */
QString text;
old_name=text;
}
- /* Update Art meta */
- QString url;
- char *psz_art = input_item_GetArtURL( input_GetItem( p_input ) );
- url.sprintf("%s", psz_art );
- free( psz_art );
- if( artUrl != url )
- {
- artUrl = url.replace( "file://",QString("" ) );
- emit artChanged( artUrl );
- }
-
/* Has Audio, has Video Tracks ? */
vlc_value_t val;
var_Change( p_input, "audio-es", VLC_VAR_CHOICESCOUNT, &val, NULL );
#endif
}
+void UpdateArt()
+{
+ /* Update Art meta */
+ QString url;
+ char *psz_art = input_item_GetArtURL( input_GetItem( p_input ) );
+ url.sprintf("%s", psz_art );
+ free( psz_art );
+ if( artUrl != url )
+ {
+ artUrl = url.replace( "file://",QString("" ) );
+ emit artChanged( artUrl );
+ msg_Dbg( p_intf, "Art: %s", qtu( artUrl ) );
+ }
+}
+
/* User update of the slider */
void InputManager::sliderUpdate( float new_pos )
{
void MainInputManager::customEvent( QEvent *event )
{
int type = event->type();
- msg_Dbg( p_intf, "New MainIM Event of type: %i", type );
+ //msg_Dbg( p_intf, "New MainIM Event of type: %i", type );
if ( type != ItemChanged_Type && type != VolumeChanged_Type )
return;
bool b_has_audio, b_has_video, b_had_audio, b_had_video;
private:
void customEvent( QEvent * );
- void addCallbacks( void );
- void delCallbacks( void );
- void UpdateRate( void );
- void UpdateMeta( void );
- void UpdateStatus( void );
- void UpdateTitle( void );
- void UpdatePosition( void );
+ void addCallbacks();
+ void delCallbacks();
+ void UpdateRate();
+ void UpdateMeta();
+ void UpdateStatus();
+ void UpdateTitle();
+ void UpdatePosition();
+ void UpdateArt();
intf_thread_t *p_intf;
input_thread_t *p_input;
int i_old_playing_status;
//void updateInput();
signals:
void inputChanged( input_thread_t * );
- void volumeChanged( void );
+ void volumeChanged();
};
#endif