CLI: Use new 'Indexer' to add Commands

This commit is contained in:
2022-04-14 15:03:19 +02:00
parent c51fd3c555
commit be41fab5d5
6 changed files with 80 additions and 14 deletions

View File

@@ -3,15 +3,21 @@
#include <QMutex>
#include "command.h"
#include "filesaver.h"
#include "indexer.h"
class CommandAdd : public Command
{
private:
SaveFileResult addFile(QString path);
Indexer *indexer;
protected:
public:
using Command::Command;
int handle(QStringList arguments) override;
private slots:
void indexerFinished();
};
#endif // COMMANDADD_H