mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02: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();
|
||||
|
@@ -56,6 +56,8 @@ class RDDropbox
|
||||
void setDeleteSource(bool state) const;
|
||||
bool sendEmail() const;
|
||||
void setSendEmail(bool state) const;
|
||||
bool updateMetadata() const;
|
||||
void setUpdateMetadata(bool state) const;
|
||||
QString metadataPattern() const;
|
||||
void setMetadataPattern(const QString &str) const;
|
||||
QString userDefined() const;
|
||||
|
Reference in New Issue
Block a user