MythTV
master
|
Go to the source code of this file.
Functions | |
META_PUBLIC QString | fixFilename (const QString &filename) |
remove any bad filename characters More... | |
META_PUBLIC QString | fixFileToken_sl (QString token) |
remove any bad filename characters (leaving '/' untouched) More... | |
META_PUBLIC QString | findIcon (const QString &type, const QString &name, bool ignoreCache=false) |
find an image for a artist or genre More... | |
META_PUBLIC QString | filenameFromMetadata (MusicMetadata *track) |
create a filename using the template in the settings and a MusicMetadata object More... | |
META_PUBLIC bool | isNewTune (const QString &artist, const QString &album, const QString &title) |
try to find a track in the db using the given artist, album and title More... | |
META_PUBLIC QString fixFilename | ( | const QString & | filename | ) |
remove any bad filename characters
Definition at line 27 of file musicutils.cpp.
Referenced by filenameFromMetadata(), and findIcon().
META_PUBLIC QString fixFileToken_sl | ( | QString | token | ) |
remove any bad filename characters (leaving '/' untouched)
Definition at line 69 of file musicutils.cpp.
META_PUBLIC QString findIcon | ( | const QString & | type, |
const QString & | name, | ||
bool | ignoreCache = false |
||
) |
find an image for a artist or genre
Definition at line 34 of file musicutils.cpp.
Referenced by AlbumArtImages::findImages(), PlaylistEditorView::treeItemVisible(), EditMetadataDialog::updateArtistImage(), and EditMetadataDialog::updateGenreImage().
META_PUBLIC QString filenameFromMetadata | ( | MusicMetadata * | track | ) |
create a filename using the template in the settings and a MusicMetadata object
Definition at line 78 of file musicutils.cpp.
Referenced by ImportMusicDialog::addPressed(), CDRipperThread::run(), and ImportCoverArtDialog::updateStatus().
META_PUBLIC bool isNewTune | ( | const QString & | artist, |
const QString & | album, | ||
const QString & | title | ||
) |
try to find a track in the db using the given artist, album and title
Definition at line 126 of file musicutils.cpp.
Referenced by ImportMusicDialog::addPressed(), ImportMusicDialog::metadataChanged(), ImportMusicDialog::scanDirectory(), Ripper::ScanFinished(), ImportMusicDialog::setAlbum(), and ImportMusicDialog::setArtist().