looqs/cli/commandadd.h

27 line
448 B
C

#ifndef COMMANDADD_H
#define COMMANDADD_H
#include <QMutex>
#include "command.h"
#include "filesaver.h"
2022-04-14 15:03:19 +02:00
#include "indexer.h"
class CommandAdd : public Command
{
private:
SaveFileResult addFile(QString path);
2022-04-14 15:03:19 +02:00
Indexer *indexer;
bool keepGoing = true;
2022-04-14 15:03:19 +02:00
protected:
2023-05-01 23:56:25 +02:00
IndexResult currentResult;
public:
using Command::Command;
int handle(QStringList arguments) override;
2022-04-14 15:03:19 +02:00
private slots:
void indexerFinished();
};
#endif // COMMANDADD_H