12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef VIDEOCORE_H
- #define VIDEOCORE_H
- #include <QObject>
- #include <qmqtt.h>
- #include <QSqlDatabase>
- #include <QSqlQuery>
- #include "logthread.h"
- #include "httpthread.h"
- #include "tcpserver.h"
- #include "tcpserver1.h"
- #include "devinfotcpserver.h"
- #include "databasethread.h"
- class VideoCore : public QObject
- {
- Q_OBJECT
- public:
- explicit VideoCore(QObject *parent = nullptr);
- ~VideoCore();
- void start();
- void shm_init();
- bool shm_load();
- signals:
- public slots:
- void onConnected();
- void dataLog(QString log);
- void mqtt_data(QString mqtt_msg);
- void appendSql(QString sql);
- private:
- LogThread *logthread;
- HttpThread *httpthread;
- TcpServer *tcpserver;
- TcpServer1 *tcpserver1;
- DevInfoTcpServer *devinfoserver;
- DatabaseThread *dbthread;
- QMQTT::Client *m_client;
- QSqlDatabase db;
- quint16 mqttIdx;
- QString ip,port,username,password;
- QString devinfourl,devinfokey,devinfosignature;
- QString httpurl,httpkey,httpsignature;
- QString tcpserverurl,tcpserverkey,tcpserversignature;
- QString tcpserver1url,tcpserver1key,tcpserver1signature;
- };
- #endif // VIDEOCORE_H
|