mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-04-24 23:13:37 +02:00
2017-08-31 Fred Gleason <fredg@paravelsystems.com>
* Modified web client components to use a distinctive http USER_AGENT string.
This commit is contained in:
@@ -49,7 +49,7 @@ RDConfig::RDConfig()
|
||||
}
|
||||
|
||||
|
||||
RDConfig::RDConfig(QString filename)
|
||||
RDConfig::RDConfig(const QString &filename)
|
||||
{
|
||||
clear();
|
||||
conf_filename=filename;
|
||||
@@ -67,37 +67,62 @@ void RDConfig::setFilename(QString filename)
|
||||
conf_filename=filename;
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::moduleName() const
|
||||
{
|
||||
return conf_module_name;
|
||||
}
|
||||
|
||||
|
||||
void RDConfig::setModuleName(const QString &modname)
|
||||
{
|
||||
conf_module_name=modname;
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::userAgent() const
|
||||
{
|
||||
return RDConfig::userAgent(conf_module_name);
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::audioRoot() const
|
||||
{
|
||||
return conf_audio_root;
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::audioExtension() const
|
||||
{
|
||||
return conf_audio_extension;
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::audioFileName (QString cutname)
|
||||
{
|
||||
return audioRoot() + QString("/") + cutname + QString(".") +
|
||||
audioExtension();
|
||||
};
|
||||
|
||||
|
||||
QString RDConfig::label() const
|
||||
{
|
||||
return conf_label;
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::audioStoreMountSource() const
|
||||
{
|
||||
return conf_audio_store_mount_source;
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::audioStoreMountType() const
|
||||
{
|
||||
return conf_audio_store_mount_type;
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::audioStoreMountOptions() const
|
||||
{
|
||||
return conf_audio_store_mount_options;
|
||||
@@ -523,6 +548,7 @@ void RDConfig::clear()
|
||||
#else
|
||||
conf_filename=RD_CONF_FILE;
|
||||
#endif
|
||||
conf_module_name="";
|
||||
conf_mysql_hostname="";
|
||||
conf_mysql_username="";
|
||||
conf_mysql_dbname="";
|
||||
@@ -573,3 +599,12 @@ void RDConfig::clear()
|
||||
conf_sas_tty_device="";
|
||||
conf_destinations.clear();
|
||||
}
|
||||
|
||||
|
||||
QString RDConfig::userAgent(const QString &modname)
|
||||
{
|
||||
if(modname.isEmpty()) {
|
||||
return QString("Mozilla/5.0")+" rivendell/"+VERSION;
|
||||
}
|
||||
return QString("Mozilla/5.0 rivendell/")+VERSION+" ("+modname+")";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user