#include <musicfilenamelayout.h>
Public Methods | |
MusicFilenameLayout (QString _name, QRegExp _exp, int _artistPos=-1, int _albumPos=-1, int _trackPos=-1, int _titlePos=-1) | |
MusicFilenameLayout (QString _name, QString _exp, bool minimal=false, int _artistPos=-1, int _albumPos=-1, int _trackPos=-1, int _titlePos=-1) | |
MusicFilenameLayout () | |
~MusicFilenameLayout () | |
bool | match (const QString &filename) |
MusicInfo | getInfo (const QString &filename) |
Static Public Methods | |
QString | toggleUnderscore (const QString &filename, bool underscore=false) |
bool | normalize (QString &filename) |
Public Attributes | |
QString | name |
int | trackPos |
int | titlePos |
int | artistPos |
int | albumPos |
Private Methods | |
void | addExtensions () |
Private Attributes | |
QRegExp | regexp |
Static Private Attributes | |
QString | extensions |
|
|
|
|
|
|
|
|
|
Tests if the filename matches this layout
|
|
Tries to find some music information from file name
|
|
Returns the passed string substituting _ with space or vice-versa. Default is to remove underscore. |
|
Normalize a filename to a standard:
|
|
Add the extension to the regexp |
|
This filename layout name. Something like "Artist Name - Song Name.mp3". |
|
Position of each item in the matched string |
|
Position of each item in the matched string |
|
Position of each item in the matched string |
|
Position of each item in the matched string |
|
The regular expression that will match a file name. |
|
The global regular expression with all extensions. |