mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
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:
@@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 352
|
||||
#define RD_VERSION_DATABASE 353
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@@ -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());
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user