Begin a C++ cli and remove the Python scripts
This commit is contained in:
24
cli/commandadd.h
Normal file
24
cli/commandadd.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef COMMANDADD_H
|
||||
#define COMMANDADD_H
|
||||
#include <QMutex>
|
||||
#include "command.h"
|
||||
enum AddFileResult
|
||||
{
|
||||
OK,
|
||||
SKIPPED,
|
||||
DBFAIL
|
||||
};
|
||||
|
||||
class CommandAdd : public Command
|
||||
{
|
||||
private:
|
||||
AddFileResult addFile(QString path);
|
||||
QMutex writeMutex;
|
||||
|
||||
public:
|
||||
using Command::Command;
|
||||
|
||||
int handle(QStringList arguments) override;
|
||||
};
|
||||
|
||||
#endif // COMMANDADD_H
|
||||
Reference in New Issue
Block a user