2021-08-21 Fred Gleason <fredg@paravelsystems.com>

* Added a 'SYSTEM.REALM_NAME' field to the database.
	* Incremented the database version to 353.
	* Added 'RDSystem::realmName()' and 'RDSystem::setREalmName()'
	methods.
	* Added a 'realm_name' member to the 'rd_system_settings' struct
	in the RivWebCApi library.
	* Added a 'Realm Name' control to the 'System-Wide Settings'
	dialog in rdadmin(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-08-21 13:32:28 -04:00
parent 83c35bfa6a
commit abe00acce8
13 changed files with 131 additions and 39 deletions

View File

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

View File

@@ -30,6 +30,18 @@ RDSystem::RDSystem()
}
QString RDSystem::realmName() const
{
return GetValue("REALM_NAME").toString();
}
void RDSystem::setRealmName(const QString &str) const
{
SetRow("REALM_NAME",str);
}
unsigned RDSystem::sampleRate() const
{
return GetValue("SAMPLE_RATE").toUInt();
@@ -244,6 +256,7 @@ void RDSystem::setShowTwelveHourTime(bool state) const
QString RDSystem::xml() const
{
QString xml="<systemSettings>\n";
xml+=RDXmlField("realmName",realmName());
xml+=RDXmlField("sampleRate",sampleRate());
xml+=RDXmlField("duplicateTitles",allowDuplicateCartTitles());
xml+=RDXmlField("fixDuplicateTitles",fixDuplicateCartTitles());

View File

@@ -28,6 +28,8 @@ class RDSystem
{
public:
RDSystem();
QString realmName() const;
void setRealmName(const QString &str) const;
unsigned sampleRate() const;
void setSampleRate(unsigned rate) const;
bool allowDuplicateCartTitles() const;