Added first project implementation
This commit is contained in:
33
LogParser.h
Normal file
33
LogParser.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef LOGPARSER_H
|
||||
#define LOGPARSER_H
|
||||
|
||||
#include <QObject>
|
||||
#include "DataTypes.h"
|
||||
|
||||
class LogParser : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LogParser(QObject* parent = nullptr);
|
||||
~LogParser();
|
||||
|
||||
public slots:
|
||||
void setLogFolder(const QString& folder);
|
||||
void setStartDateTime(const QDateTime& dateTime);
|
||||
void setEndDateTime(const QDateTime& dateTime);
|
||||
|
||||
public:
|
||||
QString getLogFolder() const;
|
||||
QDateTime getStartDateTime() const;
|
||||
QDateTime getEndDateTime() const;
|
||||
|
||||
QStringList logFilesByDateTime() const;
|
||||
QList<DataTypes::LogMessage> logMessagesByDateTime() const;
|
||||
|
||||
private:
|
||||
QString logFolder;
|
||||
QDateTime startDateTime;
|
||||
QDateTime endDateTime;
|
||||
};
|
||||
|
||||
#endif // LOGPARSER_H
|
||||
Reference in New Issue
Block a user