|
Qmmp
|
#include <fileinfo.h>
Public Member Functions | |
| FileInfo (const QString &path=QString()) | |
| FileInfo (const FileInfo &info) | |
| ~FileInfo () | |
| FileInfo & | operator= (const FileInfo &info) |
| bool | operator== (const FileInfo &info) |
| bool | operator!= (const FileInfo &info) |
| qint64 | length () const |
| const QString | metaData (Qmmp::MetaData key) const |
| const QMap< Qmmp::MetaData, QString > | metaData () const |
| bool | isEmpty () const |
| const QString | path () const |
| void | setLength (qint64 length) |
| void | setMetaData (Qmmp::MetaData key, const QString &value) |
| void | setMetaData (Qmmp::MetaData key, int value) |
| void | setMetaData (const QMap< Qmmp::MetaData, QString > &metaData) |
| void | setPath (const QString &path) |
The FileInfo class stores metadata and audio information about media file or stream.
| ~FileInfo | ( | ) |
Destructor.
| bool isEmpty | ( | ) | const |
Returns true if stream/file has no metadata, otherwise returns false
| qint64 length | ( | ) | const |
Returnds file duration in seconds.
| const QString metaData | ( | Qmmp::MetaData | key | ) | const |
Returns the metdata string associated with the given key.
| const QMap<Qmmp::MetaData, QString> metaData | ( | ) | const |
Returns all meta data in map.
| bool operator!= | ( | const FileInfo & | info | ) |
Returns false if this FileInfo object refers to info; otherwise returns true.
| bool operator== | ( | const FileInfo & | info | ) |
Returns true if this FileInfo object refers to info; otherwise returns false.
| const QString path | ( | ) | const |
Returns file path or stream url.
| void setLength | ( | qint64 | length | ) |
Sets file duration to length in seconds.
| void setMetaData | ( | Qmmp::MetaData | key, |
| const QString & | value | ||
| ) |
Sets metadata key to value
| void setMetaData | ( | Qmmp::MetaData | key, |
| int | value | ||
| ) |
Sets metadata key to value (integer is converted to string)
| void setMetaData | ( | const QMap< Qmmp::MetaData, QString > & | metaData | ) |
Changes all metadata to metaData
| void setPath | ( | const QString & | path | ) |
Sets file path or stream url to path
1.7.6.1