CommandDelete: refactored to use sqlitedbservice

This commit is contained in:
2019-04-16 08:52:07 +02:00
parent 7eec5e9169
commit c8e958d1a6
2 changed files with 43 additions and 57 deletions

View File

@@ -10,8 +10,8 @@ class CommandDelete : public Command
int handle(QStringList arguments) override;
private:
int removeNonExistent(QSqlDatabase &db, bool verbose, bool dryRun, QString pattern);
int removePaths(const QStringList &paths, QSqlDatabase &db, bool verbose, bool dryRun);
int removeNonExistent(bool verbose, bool dryRun, QString pattern);
int removePaths(const QStringList &paths, bool verbose, bool dryRun);
};
#endif // COMMANDDELETE_H