2017-09-20 Fred Gleason <fredg@paravelsystems.com>

* Added a 'DROPBOXES.FORCE_TO_MONO' field to the database.
	* Incremented the database version to 268.
	* 'RDDropbox::forceToMono()' and 'RDDropbox::setForceToMon()' methods
	in 'lib/rddropbox.cpp' and 'lib/rddropbox.h'.
	* Added a 'Force to Monaural' checkbox to the 'Edit Dropbox' dialog
	in rdadmin(1).
This commit is contained in:
Fred Gleason
2017-09-20 12:44:31 -04:00
parent b24d298d1e
commit 674bab322e
20 changed files with 264 additions and 128 deletions

View File

@@ -24,7 +24,7 @@
/*
* Current Database Version
*/
#define RD_VERSION_DATABASE 267
#define RD_VERSION_DATABASE 268
#endif // DBVERSION_H

View File

@@ -126,6 +126,19 @@ void RDDropbox::setSingleCart(bool state) const
}
bool RDDropbox::forceToMono() const
{
return RDBool(RDGetSqlValue("DROPBOXES","ID",box_id,"FORCE_TO_MONO").
toString());
}
void RDDropbox::setForceToMono(bool state) const
{
SetRow("FORCE_TO_MONO",state);
}
unsigned RDDropbox::toCart() const
{
return RDGetSqlValue("DROPBOXES","ID",box_id,"TO_CART").toUInt();

View File

@@ -41,6 +41,8 @@ class RDDropbox
void setAutotrimLevel(int lvl) const;
bool singleCart() const;
void setSingleCart(bool state) const;
bool forceToMono() const;
void setForceToMono(bool state) const;
unsigned toCart() const;
void setToCart(unsigned cart) const;
bool useCartchunkId() const;