16 lines
306 B
C++
16 lines
306 B
C++
#ifndef LOGREPOSITORY_H
|
|
#define LOGREPOSITORY_H
|
|
|
|
#include "../models/logrecord.h"
|
|
|
|
#include <QList>
|
|
|
|
class LogRepository
|
|
{
|
|
public:
|
|
QList<LogRecord> listLogs(QString *error = nullptr, int limit = 200);
|
|
bool insertLog(const LogRecord &record, QString *error = nullptr);
|
|
};
|
|
|
|
#endif // LOGREPOSITORY_H
|