mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-13 08:05:55 +01:00
2020-12-07 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDCart::ensureTitleIsUnique()' static method. * Removed code to make cart titles automatically unique from 'RDCart::setTitle()'. * Refactored rdimport(1) to allow detection of duplicate titles. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -173,6 +173,8 @@ class RDCart
|
||||
static unsigned readXml(std::vector<RDWaveData> *data,const QString &xml);
|
||||
static QString uniqueCartTitle(unsigned cartnum=0);
|
||||
static bool titleIsUnique(unsigned except_cartnum,const QString &str);
|
||||
static QString ensureTitleIsUnique(unsigned except_cartnum,
|
||||
const QString &str);
|
||||
|
||||
private:
|
||||
static QVariant GetXmlValue(const QString &tag,const QString &line);
|
||||
@@ -180,8 +182,6 @@ class RDCart
|
||||
int GetNextFreeCut() const;
|
||||
RDCut::Validity ValidateCut(RDSqlQuery *q,bool enforce_length,
|
||||
unsigned length,bool *time_ok) const;
|
||||
QString VerifyTitle(const QString &title) const;
|
||||
|
||||
void SetRow(const QString ¶m,const QString &value) const;
|
||||
void SetRow(const QString ¶m,unsigned value) const;
|
||||
void SetRow(const QString ¶m,const QDateTime &value) const;
|
||||
|
||||
Reference in New Issue
Block a user