2018-05-17 Fred Gleason <fredg@paravelsystems.com>

* Added a 'RDAIRPLAY.VIRTUAL_EXIT_CODE' field to the database.
	* Incremented the database version to 281.
	* Added 'RDAirPlayConf::virtualExitCode()' and
	'RDAirPlayConf::setVirtualExitCode()' methods.
	* Implemented Start/Stop settings for vlogs.
This commit is contained in:
Fred Gleason
2018-05-17 22:43:47 +00:00
parent f16ff0800b
commit f36547aab5
10 changed files with 225 additions and 108 deletions

View File

@@ -759,6 +759,19 @@ void RDAirPlayConf::setExitCode(RDAirPlayConf::ExitCode code) const
}
RDAirPlayConf::ExitCode RDAirPlayConf::virtualExitCode() const
{
return (RDAirPlayConf::ExitCode)
RDGetSqlValue(air_tablename,"ID",air_id,"VIRTUAL_EXIT_CODE").toInt();
}
void RDAirPlayConf::setVirtualExitCode(RDAirPlayConf::ExitCode code) const
{
SetRow("VIRTUAL_EXIT_CODE",(int)code);
}
bool RDAirPlayConf::exitPasswordValid(const QString &passwd) const
{
QString sql;