2021-02-04 Fred Gleason <fredg@paravelsystems.com>

* Added 'RDDiscModel'
	* Refactored the full disc ripper in rdlibrary(1) to use the
	model-based API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-04 20:23:59 -05:00
parent 0efe0ca98c
commit c3c5d8d4d4
24 changed files with 1217 additions and 604 deletions

View File

@@ -2,7 +2,7 @@
//
// Abstract a Rivendell Group.
//
// (C) Copyright 2002-2004,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 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
@@ -292,9 +292,9 @@ int RDGroup::freeCartQuantity() const
return free;
}
bool RDGroup::reserveCarts(std::vector<unsigned> *cart_nums,
bool RDGroup::reserveCarts(QList<unsigned> *cart_nums,
const QString &station_name,RDCart::Type type,
unsigned quan) const
int quan) const
{
unsigned next;
QString sql;
@@ -310,7 +310,7 @@ bool RDGroup::reserveCarts(std::vector<unsigned> *cart_nums,
next++;
}
else {
for(unsigned i=0;i<cart_nums->size();i++) {
for(int i=0;i<cart_nums->size();i++) {
sql=QString().sprintf("delete from CART where NUMBER=%u",
cart_nums->at(i));
q=new RDSqlQuery(sql);