mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2020-11-23 Fred Gleason <fredg@paravelsystems.com>
* Added a 'DROPBOXES.SEND_EMAIL' field to the database. * Incremented the database version to 345. * Added 'RDDropbox::sendEmail()' and 'RDDropbox::setSendEmail()' methods. * Added a 'Send e-mail reports' checkbox to the 'Dropbox Configuration' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 344
|
||||
#define RD_VERSION_DATABASE 345
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
||||
@@ -73,6 +73,7 @@ int RDDropbox::duplicate() const
|
||||
new_box->setTitleFromCartchunkId(titleFromCartchunkId());
|
||||
new_box->setDeleteCuts(deleteCuts());
|
||||
new_box->setDeleteSource(deleteSource());
|
||||
new_box->setSendEmail(sendEmail());
|
||||
new_box->setMetadataPattern(metadataPattern());
|
||||
new_box->setUserDefined(userDefined());
|
||||
new_box->setStartdateOffset(startdateOffset());
|
||||
@@ -239,6 +240,19 @@ void RDDropbox::setDeleteSource(bool state) const
|
||||
}
|
||||
|
||||
|
||||
bool RDDropbox::sendEmail() const
|
||||
{
|
||||
return RDBool(RDGetSqlValue("DROPBOXES","ID",box_id,"SEND_EMAIL").
|
||||
toString());
|
||||
}
|
||||
|
||||
|
||||
void RDDropbox::setSendEmail(bool state) const
|
||||
{
|
||||
SetRow("SEND_EMAIL",state);
|
||||
}
|
||||
|
||||
|
||||
QString RDDropbox::metadataPattern() const
|
||||
{
|
||||
return RDGetSqlValue("DROPBOXES","ID",box_id,"METADATA_PATTERN").toString();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Abstract a Rivendell Dropbox Configuration
|
||||
//
|
||||
// (C) Copyright 2002-2007,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -54,6 +54,8 @@ class RDDropbox
|
||||
void setDeleteCuts(bool state) const;
|
||||
bool deleteSource() const;
|
||||
void setDeleteSource(bool state) const;
|
||||
bool sendEmail() const;
|
||||
void setSendEmail(bool state) const;
|
||||
QString metadataPattern() const;
|
||||
void setMetadataPattern(const QString &str) const;
|
||||
QString userDefined() const;
|
||||
|
||||
Reference in New Issue
Block a user