libkcddb
cdinfo.cpp
Go to the documentation of this file.
233 if(i.key() != QLatin1String( "COMMENT" ) && i.key() != QLatin1String( "TITLE" ) && i.key() != QLatin1String( "ARTIST" ) && i.key() != QLatin1String( "TRACKNUMBER" )) {
234 out += d->createLine(QString::fromLatin1("T%1_%2").arg(i.key()).arg(track),i.value().toString());
426 s += QLatin1String( "# Revision: " ) + get(QLatin1String( "revision" )).toString() + QLatin1Char( '\n' );
438 s += d->createLine(QLatin1String( "DTITLE" ), artist + QLatin1String( " / " ) + get(Title).toString() );
440 s += QLatin1String( "DYEAR=" ) + (0 == year ? QString::null : QString::number(year)) + QLatin1Char( '\n' ); //krazy:exclude=nullstrassign for old broken gcc
462 s += d->createLine(QString::fromLatin1("TTITLE%1").arg(i), QString::fromLatin1("%1 / %2").arg(artist).arg(trackTitle));
464 s += d->createLine(QString::fromLatin1("TTITLE%1").arg(i), QString::fromLatin1("%1 / %2").arg(trackArtist).arg(trackTitle));
475 s += d->createLine(QString::fromLatin1("EXTT%1").arg(i), d->trackInfoList[i].get(Comment).toString());
483 s += d->createLine(QLatin1String( "PLAYORDER" ), get(QLatin1String( "playorder" )).toString() );
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString cap(int nth) const
QString & append(QChar ch)
QString toUpper() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
QVariant get(const QString &type) const
Get data for type that has been assigned to this disc.
Definition: cdinfo.cpp:518
QVariant get(const QString &type) const
Get data for type that has been assigned to this track.
Definition: cdinfo.cpp:209
int indexIn(const QString &str, int offset, CaretMode caretMode) const
QString number(int n, int base)
int count(const T &value) const
bool isEmpty() const
TrackInfo & track(int trackNumber)
Returns track with nr trackNumber and adds it to the track list if it doesn't exist (first track is 0...
Definition: cdinfo.cpp:562
QString trimmed() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
typedef Iterator
void set(const QString &type, const QVariant &data)
Set any data from this disc.
Definition: cdinfo.cpp:522
iterator end()
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void clear()
const Key key(const T &value) const
QString & replace(int position, int n, QChar after)
QString mid(int position, int n) const
char * toString(const T &value)
QString escape(const QString &plain)
The year the cd or track was produced By default, the year of the track is the same as for the whole ...
Definition: cdinfo.h:40
typedef ConstIterator
int length() const
QString left(int n) const
QString fromLatin1(const char *str, int size)
void checkTrack(int trackNumber)
Checks to make sure that trackNumber exists.
Definition: cdinfo.cpp:532
bool load(const QString &string)
Load CDInfo from a string that is CDDB compatible.
Definition: cdinfo.cpp:282
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString toString() const
void set(const QString &type, const QVariant &data)
Set any data from this track.
Definition: cdinfo.cpp:213
iterator begin()
const T value(const Key &key) const
uint toUInt(bool *ok, int base) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.