#ifndef LOGWAREHOUSE #define LOGWAREHOUSE #include #include #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 _data; }; using LogWarehouse_ptr = std::shared_ptr; #endif //LOGWAREHOUSE