MetaIOFLACVorbisComment Class Reference

#include <metaioflacvorbiscomment.h>

Inheritance diagram for MetaIOFLACVorbisComment:

MetaIO

List of all members.


Detailed Description

Definition at line 9 of file metaioflacvorbiscomment.h.


Public Member Functions

 MetaIOFLACVorbisComment (void)
virtual ~MetaIOFLACVorbisComment (void)
bool write (Metadata *mdata, bool exclusive=false)
 Writes metadata back to a file.
Metadataread (QString filename)
 Reads Metadata from a file.

Private Member Functions

int getTrackLength (QString filename)
 Find the length of the track (in seconds).
int getTrackLength (FLAC__StreamMetadata *pBlock)
 Find the length of the track (in seconds).
QString getComment (FLAC__StreamMetadata *pBlock, const char *pLabel)
 Function to return an individual comment from an FLACVorbis comment.
void setComment (FLAC__StreamMetadata *pBlock, const char *pLabel, const QString &rData)
 Function to return an individual comment from an FLACVorbis comment.

Constructor & Destructor Documentation

MetaIOFLACVorbisComment::MetaIOFLACVorbisComment ( void   ) 

Definition at line 12 of file metaioflacvorbiscomment.cpp.

MetaIOFLACVorbisComment::~MetaIOFLACVorbisComment ( void   )  [virtual]

Definition at line 17 of file metaioflacvorbiscomment.cpp.


Member Function Documentation

bool MetaIOFLACVorbisComment::write ( Metadata mdata,
bool  exclusive = false 
) [virtual]

Writes metadata back to a file.

Parameters:
mdata A pointer to a Metadata object
exclusive Flag to indicate if only the data in mdata should be in the file. If false, any unrecognised tags already in the file will be maintained.
Returns:
Boolean to indicate success/failure.

Implements MetaIO.

Definition at line 32 of file metaioflacvorbiscomment.cpp.

Metadata * MetaIOFLACVorbisComment::read ( QString  filename  )  [virtual]

Reads Metadata from a file.

Parameters:
filename The filename to read metadata from.
Returns:
Metadata pointer or NULL on error

Implements MetaIO.

Definition at line 135 of file metaioflacvorbiscomment.cpp.

int MetaIOFLACVorbisComment::getTrackLength ( QString  filename  )  [private, virtual]

Find the length of the track (in seconds).

Parameters:
filename The filename for which we want to find the length.
Returns:
An integer (signed!) to represent the length in seconds.

Implements MetaIO.

Definition at line 219 of file metaioflacvorbiscomment.cpp.

Referenced by read().

int MetaIOFLACVorbisComment::getTrackLength ( FLAC__StreamMetadata *  pBlock  )  [inline, private]

Find the length of the track (in seconds).

Note:
The FLAC StreamMetadata block must be asserted FLAC__METADATA_TYPE_STREAMINFO
Parameters:
pBlock Pointer to a FLAC Metadata block
Returns:
An integer (signed!) to represent the length in seconds.

Definition at line 257 of file metaioflacvorbiscomment.cpp.

QString MetaIOFLACVorbisComment::getComment ( FLAC__StreamMetadata *  pBlock,
const char *  pLabel 
) [private]

Function to return an individual comment from an FLACVorbis comment.

Parameters:
pBlock Pointer to a FLAC Metadata block
pLabel The label of the comment you want
Returns:
QString containing the contents of the comment you want

Definition at line 274 of file metaioflacvorbiscomment.cpp.

Referenced by read(), and setComment().

void MetaIOFLACVorbisComment::setComment ( FLAC__StreamMetadata *  pBlock,
const char *  pLabel,
const QString &  rData 
) [private]

Function to return an individual comment from an FLACVorbis comment.

Parameters:
pBlock Pointer to a FLAC Metadata block
pLabel The label of the comment you want
rData A reference to the data you want to write
Returns:
Nothing

Definition at line 314 of file metaioflacvorbiscomment.cpp.

Referenced by write().


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

Generated on Sat Dec 18 05:16:05 2010 for MythTV by  doxygen 1.5.5