#ifndef LOGCOMPRESSOR_H #define LOGCOMPRESSOR_H #include class LogCompressor : public QThread { Q_OBJECT public: /** @brief Create the log compressor. It will only get active upon calling startCompression() */ LogCompressor(QString logFileName, QString outFileName="", int uasid = 0); void startCompression(); bool isFinished(); int getDataLines(); int getCurrentLine(); protected: void run(); QString logFileName; QString outFileName; bool running; int currentDataLine; int dataLines; int uasid; signals: /** @brief This signal is emitted once a logfile has been finished writing * @param fileName The name out the output (CSV) file */ void finishedFile(QString fileName); }; #endif // LOGCOMPRESSOR_H