KCDDB::TrackInfo

Search for usage in LXR

KCDDB::TrackInfo Class Reference

#include <cdinfo.h>

Public Member Functions

 TrackInfo (const TrackInfo &clone)
 
void clear ()
 
QVariant get (const QString &type) const
 
QVariant get (Type type) const
 
bool operator!= (const TrackInfo &) const
 
TrackInfooperator= (const TrackInfo &clone)
 
bool operator== (const TrackInfo &) const
 
void set (const QString &type, const QVariant &data)
 
void set (Type type, const QVariant &data)
 
QString toString () const
 

Detailed Description

Information about a specific track in a cd.

Definition at line 42 of file cdinfo.h.

Constructor & Destructor Documentation

◆ TrackInfo() [1/2]

KCDDB::TrackInfo::TrackInfo ( )

Definition at line 173 of file cdinfo.cpp.

◆ ~TrackInfo()

KCDDB::TrackInfo::~TrackInfo ( )
virtual

Definition at line 184 of file cdinfo.cpp.

◆ TrackInfo() [2/2]

KCDDB::TrackInfo::TrackInfo ( const TrackInfo & clone)

Definition at line 178 of file cdinfo.cpp.

Member Function Documentation

◆ clear()

void KCDDB::TrackInfo::clear ( )

internal

Definition at line 211 of file cdinfo.cpp.

◆ get() [1/2]

QVariant KCDDB::TrackInfo::get ( const QString & type) const

Get data for type that has been assigned to this track.

type is case insensitive. For example get("title")

Definition at line 199 of file cdinfo.cpp.

◆ get() [2/2]

QVariant KCDDB::TrackInfo::get ( Type type) const

Helper function that calls type with the common name.

Definition at line 195 of file cdinfo.cpp.

◆ operator!=()

bool KCDDB::TrackInfo::operator!= ( const TrackInfo & other) const

Definition at line 236 of file cdinfo.cpp.

◆ operator=()

TrackInfo & KCDDB::TrackInfo::operator= ( const TrackInfo & clone)

Definition at line 189 of file cdinfo.cpp.

◆ operator==()

bool KCDDB::TrackInfo::operator== ( const TrackInfo & other) const

Definition at line 231 of file cdinfo.cpp.

◆ set() [1/2]

void KCDDB::TrackInfo::set ( const QString & type,
const QVariant & data )

Set any data from this track.

type is case insensitive. For example set("title", "Rock this world") Useful for attributes that other apps want to add. Data will be stored in the local cddb cache, but not sent to the cddb server

Definition at line 203 of file cdinfo.cpp.

◆ set() [2/2]

void KCDDB::TrackInfo::set ( Type type,
const QVariant & data )

Helper function that calls type with the common name.

Definition at line 207 of file cdinfo.cpp.

◆ toString()

QString KCDDB::TrackInfo::toString ( ) const
Returns
a CDDB compatible string of all the data assigned to this track tracknumber must be assigned before calling this.

Definition at line 215 of file cdinfo.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:46:33 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.