mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
Support dropbox metadata updates.
Signed-off-by: David Klann <dklann@linux.com>
This commit is contained in:
@@ -73,6 +73,7 @@ int RDDropbox::duplicate() const
|
||||
new_box->setTitleFromCartchunkId(titleFromCartchunkId());
|
||||
new_box->setDeleteCuts(deleteCuts());
|
||||
new_box->setDeleteSource(deleteSource());
|
||||
new_box->setUpdateMetadata(updateMetadata());
|
||||
new_box->setSendEmail(sendEmail());
|
||||
new_box->setMetadataPattern(metadataPattern());
|
||||
new_box->setUserDefined(userDefined());
|
||||
@@ -253,6 +254,19 @@ void RDDropbox::setSendEmail(bool state) const
|
||||
}
|
||||
|
||||
|
||||
bool RDDropbox::updateMetadata() const
|
||||
{
|
||||
return RDBool(RDGetSqlValue("DROPBOXES", "ID", box_id, "UPDATE_METADATA").
|
||||
toString());
|
||||
}
|
||||
|
||||
|
||||
void RDDropbox::setUpdateMetadata(bool state)const
|
||||
{
|
||||
SetRow("UPDATE_METADATA", state);
|
||||
}
|
||||
|
||||
|
||||
QString RDDropbox::metadataPattern() const
|
||||
{
|
||||
return RDGetSqlValue("DROPBOXES","ID",box_id,"METADATA_PATTERN").toString();
|
||||
|
||||
Reference in New Issue
Block a user