Commit 04cb2556 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: move playMRL slot from THEDP to RecentsMRL

parent f2f7fd69
...@@ -813,12 +813,3 @@ void DialogsProvider::SDMenuAction( const QString& data ) ...@@ -813,12 +813,3 @@ void DialogsProvider::SDMenuAction( const QString& data )
playlist_ServicesDiscoveryRemove( THEPL, qtu( data ) ); playlist_ServicesDiscoveryRemove( THEPL, qtu( data ) );
} }
/**
* Play the MRL contained in the Recently played menu.
**/
void DialogsProvider::playMRL( const QString &mrl )
{
playlist_Add( THEPL, qtu(mrl), NULL,
PLAYLIST_APPEND | PLAYLIST_GO , PLAYLIST_END, true, pl_Unlocked );
RecentsMRL::getInstance( p_intf )->addRecent( mrl );
}
...@@ -110,8 +110,6 @@ private: ...@@ -110,8 +110,6 @@ private:
void saveAPlaylist(playlist_t *p_playlist, playlist_item_t *p_node); void saveAPlaylist(playlist_t *p_playlist, playlist_item_t *p_node);
public slots: public slots:
void playMRL( const QString & );
void playlistDialog(); void playlistDialog();
void bookmarksDialog(); void bookmarksDialog();
void mediaInfoDialog(); void mediaInfoDialog();
......
...@@ -55,7 +55,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf ) ...@@ -55,7 +55,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
signalMapper = new QSignalMapper( this ); signalMapper = new QSignalMapper( this );
CONNECT( signalMapper, CONNECT( signalMapper,
mapped(const QString & ), mapped(const QString & ),
DialogsProvider::getInstance( p_intf ), this,
playMRL( const QString & ) ); playMRL( const QString & ) );
/* Load the filter psz */ /* Load the filter psz */
...@@ -163,6 +163,11 @@ playlist_item_t *RecentsMRL::toPlaylist(int length) ...@@ -163,6 +163,11 @@ playlist_item_t *RecentsMRL::toPlaylist(int length)
return p_node_recent; return p_node_recent;
} }
void RecentsMRL::playMRL( const QString &mrl )
{
Open::openMRL( p_intf, mrl );
}
void Open::openMRL( intf_thread_t *p_intf, void Open::openMRL( intf_thread_t *p_intf,
const QString &mrl, const QString &mrl,
bool b_start, bool b_start,
......
...@@ -66,8 +66,10 @@ private: ...@@ -66,8 +66,10 @@ private:
void load(); void load();
void save(); void save();
public slots: public slots:
void clear(); void clear();
void playMRL( const QString & );
}; };
#endif #endif
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