39 lines
560 B
C
39 lines
560 B
C
|
|
#ifndef CWORK_H
|
|||
|
|
#define CWORK_H
|
|||
|
|
|
|||
|
|
#include <QThread>
|
|||
|
|
#include <QVector>
|
|||
|
|
#include "cdevice.h"
|
|||
|
|
#include <QString>
|
|||
|
|
#include "mydatabase.h"
|
|||
|
|
#include <boost/asio/io_context.hpp>
|
|||
|
|
|
|||
|
|
class CWork :public QThread
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
CWork();
|
|||
|
|
~CWork();
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
static QVector<CDevice> Vector_Device;
|
|||
|
|
static int LoadFile();
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
void stop();
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
void run();
|
|||
|
|
|
|||
|
|
signals:
|
|||
|
|
void MsgSignal(QString strMsg);
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
boost::asio::io_context m_objContext;
|
|||
|
|
static bool bExit;
|
|||
|
|
MyDatabase m_database;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // CWORK_H
|