CommandDelete: refactor: split handle to several methods

This commit is contained in:
2019-04-09 22:03:04 +02:00
父節點 4fc8a7e37b
當前提交 6da823d7f3
共有 2 個文件被更改,包括 82 次插入60 次删除

查看文件

@ -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