mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
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:
@@ -26,7 +26,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 244
|
||||
#define RD_VERSION_DATABASE 245
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@@ -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").
|
||||
|
@@ -71,6 +71,8 @@ class RDLibraryConf
|
||||
void setRipperLevel(int level) const;
|
||||
QString cddbServer() const;
|
||||
void setCddbServer(QString server) const;
|
||||
bool readIsrc() const;
|
||||
void setReadIsrc(bool state) const;
|
||||
bool enableEditor() const;
|
||||
void setEnableEditor(bool state) const;
|
||||
void getSettings(RDSettings *s) const;
|
||||
|
Reference in New Issue
Block a user