• R/O
  • HTTP
  • SSH
  • HTTPS

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

温度+USBカメラ画像 ロガー


File Info

Rev. 7552607fc8c340fdbea904251c98120b675fe012
Größe 902 Bytes
Zeit 2013-03-16 13:03:43
Autor alucky4416
Log Message

CHG: overlay text Timestamp and Tempr, Humid to SaveImage

Content

#ifndef DAQTHREAD_H
#define DAQTHREAD_H

#include <QThread>
#include <QDateTime>

#include "logthread.h"

class DAQThread : public QThread
{
    Q_OBJECT
public:
    explicit DAQThread(QObject *parent = 0);
    ~DAQThread();
    void stop();

signals:
    void LogStart(QString logfolderpath);
    void LogStop();
    void GetData(QDateTime timestamp, double tmpr, double humid);
    void ChangeLogFilename(QString filename);
    void SaveCurrentImage(QString imgfilepath, QString overlay_text);
    void LogStarted();
    void LogEnded(int status); // status 0 is success, !0 is Fail

public slots:
    void slotLogStarted();
    void slotLogEnded(int status); // status 0 is success, !0 is Fail

protected:
    void run();

private:
    volatile bool stopped;

    bool logging; // log status, true is logging

    LogThread *logTh;
};

#endif // DAQTHREAD_H