// rddiscrecord.cpp // // Container Class for Compact Disc Metadata // // (C) Copyright 2003-2022 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public License // version 2 as published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public // License along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // #include #include "rddiscrecord.h" RDDiscRecord::RDDiscRecord() { clear(); } void RDDiscRecord::clear() { for(int i=0;i: "+ discTitle(src)+"
\n"; } if(!discArtist(src).isEmpty()) { ret+=""+QObject::tr("Disc Artist")+": "+ discArtist(src)+"
\n"; } for(int i=0;i"+trackTitle(src,i)+"
\n"; } return ret; } QString RDDiscRecord::dump(RDDiscRecord::DataSource src) const { QString ret=QString().sprintf("RDDiscRecord::dump(%u)\n",src); ret+=QString().sprintf("tracks: %d\n",tracks()); ret+=QString().sprintf("discLength: %d\n",discLength()); ret+=QString().sprintf("discId: %08x\n",discId()); ret+="mcn: "+mcn()+"\n"; ret+="discMbId: "+discMbId()+"\n"; ret+="mbSubmissionUrl: "+mbSubmissionUrl()+"\n"; ret+="discTitle: "+discTitle(src)+"\n"; ret+="discArtist: "+discArtist(src)+"\n"; ret+="discAlbum: "+discAlbum(src)+"\n"; ret+="discAuthor: "+discAuthor()+"\n"; ret+=QString().sprintf("discYear: %u\n",discYear()); ret+="discGenre: "+discGenre()+"\n"; ret+="discLabel: "+discLabel()+"\n"; ret+="discExtended: "+discExtended()+"\n"; ret+="discPlayOrder: "+discPlayOrder()+"\n"; for(int i=0;i