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.
27 lines
380 B
27 lines
380 B
#ifndef LOGWAREHOUSE
|
|
#define LOGWAREHOUSE
|
|
|
|
#include <QObject>
|
|
#include "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(Log_ptr data);
|
|
|
|
signals:
|
|
void dataAdded();
|
|
|
|
private:
|
|
QList<Log_ptr> _data;
|
|
};
|
|
|
|
#endif //LOGWAREHOUSE
|
|
|