looqs/cli/command.h

25 lignes
422 B
C++

#ifndef COMMAND_H
#define COMMAND_H
#include <QStringList>
#include <QThreadStorage>
#include <QVariant>
#include "utils.h"
#include "sqlitedbservice.h"
class Command
{
protected:
SqliteDbService *dbService;
QString dbConnectionString;
public:
Command(SqliteDbService &dbService)
{
this->dbService = &dbService;
}
virtual int handle(QStringList arguments) = 0;
virtual ~Command(){};
};
#endif // COMMAND_H