Qmmp
Public Member Functions
FileInfo Class Reference

#include <fileinfo.h>

List of all members.

Public Member Functions

 FileInfo (const QString &path=QString())
 FileInfo (const FileInfo &info)
 ~FileInfo ()
void 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)

Detailed Description

The FileInfo class stores metadata and audio information about media file or stream.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

FileInfo ( const QString &  path = QString())

Constructs a new empty FileInfo that with file path

FileInfo ( const FileInfo info)

Constructs a new FileInfo that is a copy of the given info

~FileInfo ( )

Destructor.


Member Function Documentation

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.

void operator= ( const FileInfo info)

Makes a copy of the given info

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


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator