Sayonara Player
Functions
LocalCoverSearcher Namespace Reference

Detailed Description

Helper Namespace for finding covers in a specific directory.

Functions

QStringList get_local_cover_paths (const QString &filepath)
 Determines if filepath is a dir or a file and calls get_local_cover_paths_from_filename or get_local_cover_paths_from_dirname. More...
 
QStringList get_local_cover_paths_from_filename (const QString &filename)
 Extracts dirname and calls get_local_cover_paths_from_dirname. More...
 
QStringList get_local_cover_paths_from_dirname (const QString &dirname)
 Searches the best cover by name from the directory. More...
 

Function Documentation

§ get_local_cover_paths()

QStringList LocalCoverSearcher::get_local_cover_paths ( const QString &  filepath)

Determines if filepath is a dir or a file and calls get_local_cover_paths_from_filename or get_local_cover_paths_from_dirname.

Parameters
filepathFilepath may be a directory or a filename
Returns
Paths for all covers in that directory

§ get_local_cover_paths_from_dirname()

QStringList LocalCoverSearcher::get_local_cover_paths_from_dirname ( const QString &  dirname)

Searches the best cover by name from the directory.

Parameters
dirnamedirectory where to search the cover
Returns
Paths for all covers in that directory

§ get_local_cover_paths_from_filename()

QStringList LocalCoverSearcher::get_local_cover_paths_from_filename ( const QString &  filename)

Extracts dirname and calls get_local_cover_paths_from_dirname.

Parameters
filenamefilename of a file within the same directory. E.g. a mp3 file
Returns
Paths for all covers in that directory