#ifndef IVCHART_IMPL_H #define IVCHART_IMPL_H #include #include #include #include #include #include #include #include #include #include #include "ivchart.pb.h" namespace iv { class ivchart_impl : public QThread { public: ivchart_impl(); ~ivchart_impl(); public: void chartvalue(std::string varname,const double fvalue,const double fvalue_RangeMin = 0.0,const double fvalue_RangeMax = 1.0); private: QDBusMessage mmsg; void run(); QWaitCondition mwc; QMutex mWaitMutex; iv::ivchart::ivchartarray mvectorchart; QMutex mMutexVector; int writechart(iv::ivchart::ivchartarray * pxvectorchart); }; } #endif // IVCHART_IMPL_H