Skip to content
LogCompressor.h 792 B
Newer Older
pixhawk's avatar
pixhawk committed
#ifndef LOGCOMPRESSOR_H
#define LOGCOMPRESSOR_H

#include <QThread>

class LogCompressor : public QThread
{
pixhawk's avatar
pixhawk committed
public:
    /** @brief Create the log compressor. It will only get active upon calling startCompression() */
    LogCompressor(QString logFileName, QString outFileName="", int uasid = 0);
    bool isFinished();
    int getDataLines();
    int getCurrentLine();
pixhawk's avatar
pixhawk committed
protected:
    void run();
    QString logFileName;
    QString outFileName;
    bool running;
    int currentDataLine;
    int dataLines;
pixhawk's avatar
pixhawk committed
    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);
pixhawk's avatar
pixhawk committed
};

#endif // LOGCOMPRESSOR_H