MythTV  0.28pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Member Functions | Private Member Functions | List of all members
MetaIOWavPack Class Reference

Read and write metadata in Wavpack APE tags. More...

#include <metaiowavpack.h>

Inheritance diagram for MetaIOWavPack:
Inheritance graph
[legend]
Collaboration diagram for MetaIOWavPack:
Collaboration graph
[legend]

Public Member Functions

 MetaIOWavPack (void)
 
virtual ~MetaIOWavPack (void)
 
bool write (const QString &filename, MusicMetadata *mdata)
 Writes all metadata back to a file. More...
 
MusicMetadataread (const QString &filename)
 Reads MusicMetadata from a file. More...
 
- Public Member Functions inherited from MetaIOTagLib
 MetaIOTagLib (void)
 
virtual ~MetaIOTagLib (void)
 
- Public Member Functions inherited from MetaIO
 MetaIO (void)
 Constructor. More...
 
virtual ~MetaIO (void)
 Destructor. More...
 
virtual bool writeVolatileMetadata (const QString &, MusicMetadata *)
 Writes rating and playcount back to a file. More...
 
virtual bool supportsEmbeddedImages (void)
 Does the tag support embedded cover art. More...
 
virtual AlbumArtList getAlbumArtList (const QString &filename)
 Reads the list of embedded images in the tag. More...
 
virtual bool writeAlbumArt (const QString &filename, const AlbumArtImage *albumart)
 
virtual bool removeAlbumArt (const QString &filename, const AlbumArtImage *albumart)
 
virtual bool changeImageType (const QString &filename, const AlbumArtImage *albumart, ImageType newType)
 
virtual QImage * getAlbumArt (const QString &filename, ImageType type)
 
void readFromFilename (const QString &filename, QString &artist, QString &album, QString &title, QString &genre, int &tracknum)
 Reads MusicMetadata based on the folder/filename. More...
 
MusicMetadatareadFromFilename (const QString &filename, bool blnLength=false)
 Reads MusicMetadata based on the folder/filename. More...
 
void readFromFilename (MusicMetadata *metadata)
 Reads MusicMetadata based on the folder/filename. More...
 
virtual bool TagExists (const QString &filename)
 

Private Member Functions

TagLib::WavPack::File * OpenFile (const QString &filename)
 Open the file to read the tag. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MetaIO
static MetaIOcreateTagger (const QString &filename)
 Finds an appropriate tagger for the given file. More...
 
static MusicMetadatareadMetadata (const QString &filename)
 Read the metadata from filename directly. More...
 
static MusicMetadatagetMetadata (const QString &filename)
 Get the metadata for filename. More...
 
- Static Public Attributes inherited from MetaIO
static const QString ValidFileExtensions
 
- Protected Member Functions inherited from MetaIOTagLib
int getTrackLength (TagLib::File *file)
 Find the length of the track (in seconds) More...
 
int getTrackLength (const QString &filename)
 Find the length of the track (in seconds) More...
 
void ReadGenericMetadata (TagLib::Tag *tag, MusicMetadata *metadata)
 Writes metadata common to all tag formats to the tag. More...
 
void WriteGenericMetadata (TagLib::Tag *tag, const MusicMetadata *metadata)
 Writes metadata common to all tag formats to the tag. More...
 
- Protected Member Functions inherited from MetaIO
void saveTimeStamps (void)
 
void restoreTimeStamps (void)
 
- Protected Attributes inherited from MetaIO
QString m_filename
 
QString m_filenameFormat
 
struct stat m_fileinfo
 

Detailed Description

Read and write metadata in Wavpack APE tags.

N.B. No write support

Definition at line 23 of file metaiowavpack.h.

Constructor & Destructor Documentation

MetaIOWavPack::MetaIOWavPack ( void  )

Definition at line 13 of file metaiowavpack.cpp.

MetaIOWavPack::~MetaIOWavPack ( void  )
virtual

Definition at line 18 of file metaiowavpack.cpp.

Member Function Documentation

bool MetaIOWavPack::write ( const QString &  filename,
MusicMetadata mdata 
)
virtual

Writes all metadata back to a file.

Parameters
filenameThe filename to write metadata to
mdataA pointer to a MusicMetadata object
Returns
Boolean to indicate success/failure.

Implements MetaIOTagLib.

Definition at line 46 of file metaiowavpack.cpp.

MusicMetadata * MetaIOWavPack::read ( const QString &  filename)
virtual

Reads MusicMetadata from a file.

Parameters
filenameThe filename to read metadata from.
Returns
MusicMetadata pointer or NULL on error

Implements MetaIOTagLib.

Definition at line 95 of file metaiowavpack.cpp.

TagLib::WavPack::File * MetaIOWavPack::OpenFile ( const QString &  filename)
private

Open the file to read the tag.

Parameters
filenameThe filename
Returns
A taglib file object for this format

Definition at line 28 of file metaiowavpack.cpp.

Referenced by read(), and write().


The documentation for this class was generated from the following files: