Commit ed470f7e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCMediaPlayer: Add an helper for waiting on a single event.

parent c77512ce
......@@ -357,6 +357,14 @@ MediaPlayer::configureWaitForEvent( const QList<int> &toWait, const QList<int> &
m_eventsCallback = callback;
}
void
MediaPlayer::configureWaitForEvent(int toWait, const QList<int> &cancel, MediaPlayer::CheckEventCallback callback)
{
QList<int> toWaitList;
toWaitList.append( toWait );
configureWaitForEvent( toWaitList, cancel, callback );
}
MediaPlayer::EventWaitResult
MediaPlayer::waitForEvent( unsigned long timeoutDuration )
{
......
......@@ -103,6 +103,8 @@ namespace LibVLCpp
void configureWaitForEvent(const QList<int> &toWait,
const QList<int> &cancel,
CheckEventCallback callback = NULL );
void configureWaitForEvent(int, const QList<int> &cancel,
CheckEventCallback callback = NULL );
/**
* @brief This method will wait for one of the events specified by the
* list given to configureWaitForEvent().
......
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