mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +02:00
2017-05-17 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDSystem::xml()' method in 'lib/rdsystem.cpp' and 'lib/rdsystem.h'. * Added a 'ListSystemSettings' web API call.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <rddb.h>
|
||||
#include <rdconf.h>
|
||||
#include <rdsystem.h>
|
||||
#include <rdweb.h>
|
||||
|
||||
RDSystem::RDSystem()
|
||||
{
|
||||
@@ -117,6 +118,20 @@ void RDSystem::setTempCartGroup(const QString &str) const
|
||||
}
|
||||
|
||||
|
||||
QString RDSystem::xml() const
|
||||
{
|
||||
QString xml="<systemSettings>\n";
|
||||
xml+=RDXmlField("sampleRate",sampleRate());
|
||||
xml+=RDXmlField("duplicateTitles",allowDuplicateCartTitles());
|
||||
xml+=RDXmlField("maxPostLength",maxPostLength());
|
||||
xml+=RDXmlField("isciXreferencePath",isciXreferencePath());
|
||||
xml+=RDXmlField("tempCartGroup",tempCartGroup());
|
||||
xml+="</systemSettings>\n";
|
||||
|
||||
return xml;
|
||||
}
|
||||
|
||||
|
||||
QVariant RDSystem::GetValue(const QString &field) const
|
||||
{
|
||||
QVariant ret;
|
||||
|
Reference in New Issue
Block a user