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.
 
 

24 lines
390 B

#ifndef LOGWAREHOUSE
#define LOGWAREHOUSE
#include <memory>
#include <QObject>
#include "type/Log.h"
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;
};
using LogWarehouse_ptr = std::shared_ptr<LogWarehouse>;
#endif //LOGWAREHOUSE