CompactDisc

Store information about an audio compact disc. More...

Publicly inherits QObject.

Public Methods

CompactDisc( const CompactDiscID& id, QString& title, QString& artist, QString* tracks, int progLength, int* progTracks );
const char*artist( );
voidchangeProgram( int length, int* tracks );
const CompactDiscID&id( );
intisEqual( const CompactDiscID& cid );
intisEqual( const CompactDisc& cd );
Program*program( );
const char*title( );
const char*track( int track );
~CompactDisc( );

Public Slots

voidsaveDiscInfo( );
voidsetArtist( const char* artist );
voidsetTitle( const char* title );
voidsetTrack( int track, const char* name );

Private Methods

CompactDisc( CompactDisc& cd );
CompactDisc&operator=( CompactDisc& cd );

Signals

voidupdateArtist( const char* artist );
voidupdateTitle( const char* title );
voidupdateTrack( int track, const char* name );

Private Data Members

QString_artist;
CompactDiscID_id;
Program*_program;
QString_title;
QString*_tracks;

Detailed Documentation

Store information about an audio compact disc.

Maintain the title, artist, and track names for an audio compact disc. Each CompactDisc has an associated ComapctDiscID that uniquely identifies it within the Database.

Public Methods Documentation

CompactDisc ( const CompactDiscID& id, QString& title, QString& artist, QString* tracks, int progLength, int* progTracks );

Create a CompactDisc.

const char* artist ( );

Return the disc's artist.

const CompactDiscID& id ( );

Return a reference to our CompactDiscID.

int isEqual ( const CompactDiscID& cid );

Is our CompactDiscID equal to id?

const char* title ( );

Return the disc's title.

const char* track ( int track );

Return the name of track number track on the disc.

~CompactDisc ( );

Delete a CompactDisc.

Public Slots Documentation

void saveDiscInfo ( );

Update the CompactDisc's entry in the Database.

void setArtist ( const char* artist );

Set the disc's artist to artist.

void setTitle ( const char* title );

Set the disc's title to title.

void setTrack ( int track, const char* name );

Set the name of track number track to name.

Signals Documentation

void updateArtist ( const char* artist );

Emitted when the disc's artist changes.

void updateTitle ( const char* title );

Emitted when the disc's title changes.

void updateTrack ( int track, const char* name );

Emitted when the name of a track on the disc changes.


Return to Index.
Automatically generated on Dec 29 18:17