2020-11-22 Fred Gleason <fredg@paravelsystems.com>

* Added a 'SYSTEM.ORIGIN_EMAIL_ADDRESS' field to the database.
	* Added a 'GROUPS.NOTIFY_EMAIL_ADDRESS' field to the database.
	* Incremented the database version to 344.
	* Added an 'Origin E-Mail Address' control to the 'System-Wide
	Settings' dialog in rdadmin(1).
	* Added a 'Notification E-Mail Addresses' control to the 'Group'
	dialog in rdadmin(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-11-22 13:58:59 -05:00
parent 5386947984
commit deb363f6eb
22 changed files with 213 additions and 56 deletions

View File

@@ -241,6 +241,19 @@ void RDGroup::setColor(const QColor &color)
}
QString RDGroup::notifyEmailAddress() const
{
return RDGetSqlValue("GROUPS","NAME",group_name,"NOTIFY_EMAIL_ADDRESS").
toString();
}
void RDGroup::setNotifyEmailAddress(const QString &addr) const
{
SetRow("NOTIFY_EMAIL_ADDRESS",addr);
}
unsigned RDGroup::nextFreeCart(unsigned startcart) const
{
return GetNextFreeCart(startcart);