• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdemultimedia API Reference
  • KDE Home
  • Contact Us
 

libkcddb

  • KCDDB
  • TrackInfo
Public Member Functions | List of all members
KCDDB::TrackInfo Class Reference

#include <cdinfo.h>

Public Member Functions

 TrackInfo ()
 
 TrackInfo (const TrackInfo &clone)
 
virtual ~TrackInfo ()
 
void clear ()
 
QVariant get (const QString &type) const
 
QVariant get (Type type) const
 
bool operator!= (const TrackInfo &) const
 
TrackInfo & operator= (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 sepecific track in a cd.

Definition at line 55 of file cdinfo.h.

Constructor & Destructor Documentation

KCDDB::TrackInfo::TrackInfo ( )

Definition at line 183 of file cdinfo.cpp.

KCDDB::TrackInfo::~TrackInfo ( )
virtual

Definition at line 194 of file cdinfo.cpp.

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

Definition at line 188 of file cdinfo.cpp.

Member Function Documentation

void KCDDB::TrackInfo::clear ( )

internal

Definition at line 221 of file cdinfo.cpp.

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 209 of file cdinfo.cpp.

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

Helper function that calls type with the common name.

Definition at line 205 of file cdinfo.cpp.

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

Definition at line 246 of file cdinfo.cpp.

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

Definition at line 199 of file cdinfo.cpp.

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

Definition at line 241 of file cdinfo.cpp.

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 atributes 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 213 of file cdinfo.cpp.

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

Helper function that calls type with the common name.

Definition at line 217 of file cdinfo.cpp.

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 225 of file cdinfo.cpp.


The documentation for this class was generated from the following files:
  • cdinfo.h
  • cdinfo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkcddb

Skip menu "libkcddb"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdemultimedia API Reference

Skip menu "kdemultimedia API Reference"
  • libkcddb
  • libkcompactdisc

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal