looqs/cli/commandadd.h

24 lines
395 B
C
Raw Normal View History

#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;
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