mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
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:
@@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 267
|
||||
#define RD_VERSION_DATABASE 268
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user