2019-04-06 17:16:42 +02:00
|
|
|
#ifndef COMMANDADD_H
|
|
|
|
#define COMMANDADD_H
|
|
|
|
#include <QMutex>
|
|
|
|
#include "command.h"
|
2019-04-16 08:54:49 +02:00
|
|
|
#include "filesaver.h"
|
2022-04-14 15:03:19 +02:00
|
|
|
#include "indexer.h"
|
|
|
|
|
2019-04-06 17:16:42 +02:00
|
|
|
class CommandAdd : public Command
|
|
|
|
{
|
|
|
|
private:
|
2019-04-16 08:54:49 +02:00
|
|
|
SaveFileResult addFile(QString path);
|
2022-04-14 15:03:19 +02:00
|
|
|
Indexer *indexer;
|
2022-06-06 09:33:56 +02:00
|
|
|
bool keepGoing = true;
|
2019-04-06 17:16:42 +02:00
|
|
|
|
2022-04-14 15:03:19 +02:00
|
|
|
protected:
|
2019-04-06 17:16:42 +02:00
|
|
|
public:
|
|
|
|
using Command::Command;
|
|
|
|
|
|
|
|
int handle(QStringList arguments) override;
|
2022-04-14 15:03:19 +02:00
|
|
|
private slots:
|
|
|
|
void indexerFinished();
|
2019-04-06 17:16:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COMMANDADD_H
|