Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Tags Class Reference

#include <tags.h>

List of all members.

Public Slots

void slotCleanMime (KIO::Job *)

Public Member Functions

 Tags (const QString &fn)
 Tags ()
 ~Tags ()
void setInfos (const int tr, const QString &ar, const QString &ti, const QString &al, const QString &ge, const int ye, const QString &ct, const QString &co=NULL)
void setAlbum (const QString &al)
void setArtist (const QString &ar)
void ReadId3 ()
void WriteId3 ()
void ClearId3 ()
void ReadVorbis ()
void WriteVorbis ()
void ClearVorbis ()
void ReadOggFlac ()
void WriteOggFlac ()
void ClearOggFlac ()
void ReadFlac ()
void WriteFlac ()
void ClearFlac ()
void correctMimeType ()
QString getMimeType ()
bool isMP3 ()
bool isOGG ()
bool isOGGFlac ()
bool isFLAC ()
QString parsePattern (const QString &pattern)
QString upFirst (const QString &str)
 Tags (QString fn)
 ~Tags ()
void setInfos (QString tr, QString ar, QString ti, QString al)
void ReadId3 ()
void WriteId3 ()
void ReadVorbis ()
void WriteVorbis ()
bool id3cover (int w, int h)
bool darkcover (QString out)
QString setCover (int w, int h, QString cover)
bool isMP3 ()
bool isOGG ()
QString upFirst (QString str)

Public Attributes

QString file
QString fp
QString title
QString artist
QString album
QString stitle
uint track
uint year
QString genre
QString comment
int current
int rate
double freq
int channel
QImage cover
QString ncover
bool haveCover
QString track
ID3_Tag * myTag

Static Public Attributes

const int NB_GENRES


Detailed Description

Author:
Bosselut Cyril <bosselut@b1project.com>
Version:
0.23

Definition at line 74 of file libtags/tags.h.


Constructor & Destructor Documentation

Tags::Tags const QString &  fn  ) 
 

Definition at line 67 of file libtags/tags.cpp.

References file, and haveCover.

Tags::Tags  ) 
 

Definition at line 74 of file libtags/tags.cpp.

References haveCover.

Tags::~Tags  ) 
 

Definition at line 78 of file libtags/tags.cpp.

Tags::Tags QString  fn  ) 
 

Definition at line 15 of file tags.cpp.

References file.

Tags::~Tags  ) 
 


Member Function Documentation

void Tags::ClearFlac  ) 
 

Definition at line 434 of file libtags/tags.cpp.

References file, and setInfos().

void Tags::ClearId3  ) 
 

Definition at line 212 of file libtags/tags.cpp.

References file, and setInfos().

void Tags::ClearOggFlac  ) 
 

Definition at line 313 of file libtags/tags.cpp.

References file, and setInfos().

void Tags::ClearVorbis  ) 
 

Definition at line 259 of file libtags/tags.cpp.

References file, and setInfos().

void Tags::correctMimeType  ) 
 

Definition at line 500 of file libtags/tags.cpp.

References file, and slotCleanMime().

bool Tags::darkcover QString  out  ) 
 

get cover from Darktown

Definition at line 204 of file tags.cpp.

References album, artist, and upFirst().

QString Tags::getMimeType  ) 
 

mimetype of audio file

Definition at line 103 of file libtags/tags.cpp.

bool Tags::id3cover int  w,
int  h
 

get cover from id3 tag

Definition at line 67 of file tags.cpp.

References file, fp, and myTag.

bool Tags::isFLAC  ) 
 

Return true if file is a flac

Definition at line 326 of file libtags/tags.cpp.

bool Tags::isMP3  ) 
 

Return true if file is an mp3

bool Tags::isMP3  ) 
 

Return true if file is an mp3

Definition at line 107 of file libtags/tags.cpp.

References file.

bool Tags::isOGG  ) 
 

Return true if file is an ogg

bool Tags::isOGG  ) 
 

Return true if file is an ogg

Definition at line 218 of file libtags/tags.cpp.

bool Tags::isOGGFlac  ) 
 

Return true if file is an oggflac

Definition at line 272 of file libtags/tags.cpp.

QString Tags::parsePattern const QString &  pattern  ) 
 

parse a string and replace keywords by song infos

Definition at line 447 of file libtags/tags.cpp.

References album, artist, and upFirst().

void Tags::ReadFlac  ) 
 

Definition at line 333 of file libtags/tags.cpp.

References album, artist, channel, comment, cover, file, freq, genre, haveCover, rate, stitle, title, track, upFirst(), and year.

void Tags::ReadId3  ) 
 

void Tags::ReadId3  ) 
 

Definition at line 114 of file libtags/tags.cpp.

References album, artist, channel, comment, cover, file, freq, genre, haveCover, rate, stitle, title, track, upFirst(), and year.

void Tags::ReadOggFlac  ) 
 

Definition at line 279 of file libtags/tags.cpp.

References album, artist, channel, comment, file, freq, genre, rate, stitle, title, track, upFirst(), and year.

void Tags::ReadVorbis  ) 
 

void Tags::ReadVorbis  ) 
 

Definition at line 225 of file libtags/tags.cpp.

References album, artist, channel, comment, file, freq, genre, rate, stitle, title, track, upFirst(), and year.

void Tags::setAlbum const QString &  al  ) 
 

Definition at line 95 of file libtags/tags.cpp.

References album.

void Tags::setArtist const QString &  ar  ) 
 

Definition at line 99 of file libtags/tags.cpp.

References artist.

QString Tags::setCover int  w,
int  h,
QString  cover
 

get cover from file location

Definition at line 241 of file tags.cpp.

References fp.

void Tags::setInfos QString  tr,
QString  ar,
QString  ti,
QString  al
 

Definition at line 25 of file tags.cpp.

References album, artist, stitle, and track.

void Tags::setInfos const int  tr,
const QString &  ar,
const QString &  ti,
const QString &  al,
const QString &  ge,
const int  ye,
const QString &  ct,
const QString &  co = NULL
 

Definition at line 81 of file libtags/tags.cpp.

References album, artist, comment, genre, haveCover, ncover, stitle, track, and year.

Referenced by ClearFlac(), ClearId3(), ClearOggFlac(), and ClearVorbis().

void Tags::slotCleanMime KIO::Job *   )  [slot]
 

Definition at line 512 of file libtags/tags.cpp.

Referenced by correctMimeType().

QString Tags::upFirst QString  str  ) 
 

Case upper the first letter of each words

Definition at line 258 of file tags.cpp.

QString Tags::upFirst const QString &  str  ) 
 

Case upper the first letter of each words

Definition at line 473 of file libtags/tags.cpp.

Referenced by darkcover(), parsePattern(), ReadFlac(), ReadId3(), ReadOggFlac(), and ReadVorbis().

void Tags::WriteFlac  ) 
 

Definition at line 375 of file libtags/tags.cpp.

References album, artist, comment, file, genre, haveCover, ncover, stitle, track, and year.

void Tags::WriteId3  ) 
 

void Tags::WriteId3  ) 
 

Definition at line 154 of file libtags/tags.cpp.

References album, artist, comment, file, genre, haveCover, ncover, stitle, track, and year.

void Tags::WriteOggFlac  ) 
 

Definition at line 300 of file libtags/tags.cpp.

References album, artist, comment, file, genre, stitle, track, and year.

void Tags::WriteVorbis  ) 
 

void Tags::WriteVorbis  ) 
 

Definition at line 246 of file libtags/tags.cpp.

References album, artist, comment, file, genre, stitle, track, and year.


Member Data Documentation

QString Tags::album
 

album

Definition at line 95 of file tags.h.

Referenced by darkcover(), parsePattern(), ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), setAlbum(), setInfos(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().

QString Tags::artist
 

artist

Definition at line 91 of file tags.h.

Referenced by darkcover(), parsePattern(), ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), setArtist(), setInfos(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().

int Tags::channel
 

number of channel (1 = mono, 2 = stereo)

Definition at line 123 of file tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), and ReadVorbis().

QString Tags::comment
 

comments

Definition at line 162 of file libtags/tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), setInfos(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().

QImage Tags::cover
 

album cover

Definition at line 182 of file libtags/tags.h.

Referenced by ReadFlac(), and ReadId3().

int Tags::current
 

last position in playlist

Definition at line 107 of file tags.h.

QString Tags::file
 

audio file

Definition at line 111 of file tags.h.

Referenced by ClearFlac(), ClearId3(), ClearOggFlac(), ClearVorbis(), correctMimeType(), id3cover(), isMP3(), ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), Tags(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().

QString Tags::fp
 

Temporary cover file

Definition at line 83 of file tags.h.

Referenced by id3cover(), and setCover().

double Tags::freq
 

frequency in hz

Definition at line 119 of file tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), and ReadVorbis().

QString Tags::genre
 

genre

Definition at line 158 of file libtags/tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), setInfos(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().

bool Tags::haveCover
 

true if id3 contains cover

Definition at line 190 of file libtags/tags.h.

Referenced by ReadFlac(), ReadId3(), setInfos(), Tags(), WriteFlac(), and WriteId3().

ID3_Tag* Tags::myTag
 

pointer on id3 tag

Definition at line 127 of file tags.h.

Referenced by id3cover().

const int Tags::NB_GENRES [static]
 

Definition at line 199 of file libtags/tags.h.

QString Tags::ncover
 

location of new cover

Definition at line 186 of file libtags/tags.h.

Referenced by setInfos(), WriteFlac(), and WriteId3().

int Tags::rate
 

bitrate in bps

Definition at line 115 of file tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), and ReadVorbis().

QString Tags::stitle
 

song title

Definition at line 99 of file tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), setInfos(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().

QString Tags::title
 

artist + title + album or xmms output title

Definition at line 87 of file tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), and ReadVorbis().

QString Tags::track
 

track number

Definition at line 103 of file tags.h.

uint Tags::track
 

track number

Definition at line 150 of file libtags/tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), setInfos(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().

uint Tags::year
 

year

Definition at line 154 of file libtags/tags.h.

Referenced by ReadFlac(), ReadId3(), ReadOggFlac(), ReadVorbis(), setInfos(), WriteFlac(), WriteId3(), WriteOggFlac(), and WriteVorbis().


The documentation for this class was generated from the following files:
Generated on Mon May 16 14:04:32 2005 for karamba by  doxygen 1.3.9.1