Log Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
390 B

6 months ago
#ifndef LOGWAREHOUSE
#define LOGWAREHOUSE
#include <memory>
6 months ago
#include <QObject>
#include "type/Log.h"
6 months ago
class LogWarehouse : public QObject
{
Q_OBJECT
public:
Log_ptr getItem(int index);
int getLength();
int addData(const Log_ptr data);
void clear();
private:
QList<Log_ptr> _data;
6 months ago
};
using LogWarehouse_ptr = std::shared_ptr<LogWarehouse>;
6 months ago
#endif //LOGWAREHOUSE