2021-09-16 Fred Gleason <fredg@paravelsystems.com>

* Added an 'RDAIRPLAY.LOGO_PATH' field to the database.
	* Incremented the database version to 355.
	* Added 'RDAirPlayConf::logoPath()' and
	'RDAirPlayConf::setLogoPath()' methods.
	* Added a 'Logo Image' control to the 'Configure RDAirPlay' dialog
	in rdadmin(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-16 14:03:37 -04:00
parent 1bf1d94bfe
commit db8652b13e
14 changed files with 98 additions and 19 deletions

View File

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

View File

@@ -736,6 +736,18 @@ void RDAirPlayConf::setSkinPath(const QString &path) const
}
QString RDAirPlayConf::logoPath() const
{
return RDGetSqlValue(air_tablename,"ID",air_id,"LOGO_PATH").toString();
}
void RDAirPlayConf::setLogoPath(const QString &path) const
{
SetRow("LOGO_PATH",path);
}
bool RDAirPlayConf::showCounters() const
{
return RDBool(RDGetSqlValue(air_tablename,"ID",air_id,"SHOW_COUNTERS").

View File

@@ -138,6 +138,8 @@ class RDAirPlayConf
void setExitPassword(const QString &passwd) const;
QString skinPath() const;
void setSkinPath(const QString &path) const;
QString logoPath() const;
void setLogoPath(const QString &path) const;
bool showCounters() const;
void setShowCounters(bool state) const;
int auditionPreroll() const;