looqs/cli/command.h

25 řádky
422 B
C
Surový Normální zobrazení Historie

#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