/** * Open a file, * pl helps you to choose from playlist or media library, * go to start or enqueue **/ void DialogsProvider::addFromSimple( bool pl, bool go) { QStringList files = DialogsProvider::showSimpleOpen(); bool first = go; files.sort(); foreach( const QString &file, files ) { QString url = toURI( toNativeSeparators( file ) ); Open::openMRL( p_intf, url, first, pl); first = false; }
/** * Open a file, * pl helps you to choose from playlist or media library, * go to start or enqueue **/ void DialogsProvider::addFromSimple( bool pl, bool go) { QStringList files = DialogsProvider::showSimpleOpen(); int mode = go ? PLAYLIST_GO : PLAYLIST_PREPARSE; files.sort(); foreach( const QString &file, files ) { QString url = toURI( toNativeSeparators( file ) ); playlist_Add( THEPL, qtu( url ), NULL, PLAYLIST_APPEND | mode, PLAYLIST_END, pl, pl_Unlocked ); RecentsMRL::getInstance( p_intf )->addRecent( url ); mode = PLAYLIST_PREPARSE; }
std::string URIBuilder::toString() const { return toURI().toString(); }