looqs/cli/commandadd.h

25 regels
419 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:
public:
using Command::Command;
int handle(QStringList arguments) override;
2022-04-14 15:03:19 +02:00
private slots:
void indexerFinished();
};
#endif // COMMANDADD_H