looqs/cli/command.h

27 строки
467 B
C
Исходник Обычный вид История

#ifndef COMMAND_H
#define COMMAND_H
#include <QStringList>
#include <QSqlDatabase>
#include <QSqlQuery>
#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