Commit 6bf1a3ba authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, action_manager: provide skip fwd and bckwd actions

parent 508edcb6
...@@ -80,12 +80,10 @@ void ActionsManager::doAction( int id_action ) ...@@ -80,12 +80,10 @@ void ActionsManager::doAction( int id_action )
case REVERSE_ACTION: case REVERSE_ACTION:
THEMIM->getIM()->reverse(); break; THEMIM->getIM()->reverse(); break;
case SKIP_BACK_ACTION: case SKIP_BACK_ACTION:
var_SetInteger( p_intf->p_libvlc, "key-action", skipBackward();
ACTIONID_JUMP_BACKWARD_SHORT );
break; break;
case SKIP_FW_ACTION: case SKIP_FW_ACTION:
var_SetInteger( p_intf->p_libvlc, "key-action", skipForward();
ACTIONID_JUMP_FORWARD_SHORT );
break; break;
case QUIT_ACTION: case QUIT_ACTION:
THEDP->quit(); break; THEDP->quit(); break;
...@@ -187,3 +185,13 @@ void ActionsManager::AudioDown() ...@@ -187,3 +185,13 @@ void ActionsManager::AudioDown()
aout_VolumeDown( THEPL, 1, NULL ); aout_VolumeDown( THEPL, 1, NULL );
} }
void ActionsManager::skipForward()
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_FORWARD_SHORT );
}
void ActionsManager::skipBackward()
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_BACKWARD_SHORT );
}
...@@ -86,6 +86,8 @@ public slots: ...@@ -86,6 +86,8 @@ public slots:
void AudioDown(); void AudioDown();
void play(); void play();
void record(); void record();
void skipForward();
void skipBackward();
protected slots: protected slots:
void fullscreen(); void fullscreen();
void snapshot(); void snapshot();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment