#include <metadataformatter.h>
List of all members.
Detailed Description
The MetaDataFormatter formats metadata using templates.
- Author:
- Ilya Kotov <forkotov02@hotmail.ru>
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
pattern | Metadata template. Syntax: p - artist, a - album, aa - album artist, t - title, n - track number, NN - 2-digit track number, g - genre, c - comment, C - composer, D - disc number, f - file name, F - full path, y - year, l - duration, I - track index, if(A,B,C) or if(A&B&C,D,E) - condition. |
Member Function Documentation
Converts metadata of item item to one string using template.
QString format |
( |
const QMap< Qmmp::MetaData, QString > & |
metaData, |
|
|
qint64 |
length = 0 , |
|
|
int |
track = 0 |
|
) |
| const |
Converts metadata to one string using template.
- Parameters:
-
metaData | Metadata array. |
length | Length in seconds. |
track | Index of track. |
static QString formatLength |
( |
qint64 |
length, |
|
|
bool |
hideZero = true |
|
) |
| [static] |
Returns formatted length (example: 05:02:03).
- Parameters:
-
length | Length in seconds. |
hideZero | Setting for zero values output. If hideZero is true, then the function outputs empty string for zero length, otherwise outputs "0:00". |
Returns metadata template.
Setups metadata template.
- Parameters:
-
pattern | Metadata template string. |
The documentation for this class was generated from the following file: