vlc_linux/vlc-3.0.16/modules/gui/qt/components/controller.cpp
/* Reemit some signals on status Change to activate some buttons */
Reemit some signals on status Change to activate some buttons
Reemit some signals on status Change to activate some buttons
void AbstractController::setStatus( int status )
{
    bool b_hasInput = THEMIM->getIM()->hasInput();
    emit inputExists( b_hasInput );
    emit inputPlaying( status == PLAYING_S );
    emit inputIsRecordable( b_hasInput &&
                            var_GetBool( THEMIM->getInput(), "can-record" ) );
    emit inputIsTrickPlayable( b_hasInput &&
                            var_GetBool( THEMIM->getInput(), "can-rewind" ) );
}
void AbstractController :: setStatus ( int status ) { bool b_hasInput = THEMIM -> getIM ( ) -> hasInput ( ) ; emit inputExists ( b_hasInput ) ; emit inputPlaying ( status == PLAYING_S ) ; emit inputIsRecordable ( b_hasInput && var_GetBool ( THEMIM -> getInput ( ) , " " ) ) ; emit inputIsTrickPlayable ( b_hasInput && var_GetBool ( THEMIM -> getInput ( ) , " " ) ) ; }
Reemit some signals on status Change to activate some buttons
Reemit some signals on status Change to activate some buttons
/* Activate the interface buttons according to the presence of the input */