Begin a C++ cli and remove the Python scripts

This commit is contained in:
2019-04-06 17:16:42 +02:00
父節點 8e3585df38
當前提交 3e23021621
共有 32 個文件被更改,包括 788 次插入214 次删除

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