2015-04-07 Fred Gleason <fredg@paravelsystems.com>

* Added a 'RDLIBRARY.READ_ISRC' field to the database.
	* Incremented the database version to 245.
	* Added 'RDLibraryConf::readIsrc()' and 'RDLibraryConf::setReadIsrc()'
	methods in 'lib/rdlibrary_conf.cpp' and 'lib/rdlibrary_conf.h'.
	* Added a 'Read ISRCs from CD' control to the 'Edit RDLibrary' dialog
	in 'rdadmin/edit_rdlibrary.cpp' and 'rdadmin/edi_rdlibrary.h'.
	* Implemented the 'Read ISRCs from CD' option in the full disc
	ripper in 'rdlibrary/disk_ripper.cpp'.
	* Implemented the 'Read ISRCs from CD' option in the per-track disc
	ripper in 'rdlibrary/cdripper.cpp'.
This commit is contained in:
Fred Gleason
2015-04-07 14:09:55 -04:00
parent bd47f50abf
commit 153c0b4b0b
17 changed files with 163 additions and 95 deletions

View File

@@ -288,6 +288,19 @@ void RDLibraryConf::setCddbServer(QString server) const
}
bool RDLibraryConf::readIsrc() const
{
return RDBool(RDGetSqlValue("RDLIBRARY","ID",lib_id,"READ_ISRC").
toString());
}
void RDLibraryConf::setReadIsrc(bool state) const
{
SetRow("READ_ISRC",RDYesNo(state));
}
bool RDLibraryConf::enableEditor() const
{
return RDBool(RDGetSqlValue("RDLIBRARY","ID",lib_id,"ENABLE_EDITOR").