CommandDelete: refactor: split handle to several methods

This commit is contained in:
2019-04-09 22:03:04 +02:00
parent 4fc8a7e37b
commit 6da823d7f3
2 changed files with 82 additions and 60 deletions

View File

@@ -8,6 +8,9 @@ public:
using Command::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);
};
#endif // COMMANDDELETE_H