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.
30 lines
453 B
30 lines
453 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();
|
|
|
|
//uncrustify off
|
|
public slots:
|
|
//uncrustify on
|
|
void addData(const Log_ptr data);
|
|
|
|
signals:
|
|
void dataAdded();
|
|
|
|
private:
|
|
QList<Log_ptr> _data;
|
|
};
|
|
|
|
using LogWarehouse_ptr = std::shared_ptr<LogWarehouse>;
|
|
|
|
#endif //LOGWAREHOUSE
|
|
|