1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef YTDHCAMCORE_H
- #define YTDHCAMCORE_H
- #include <QObject>
- #include <QTimer>
- #include "logthread.h"
- #include "databasethread.h"
- #include "camthread.h"
- #include "ttsthreads.h"
- #include "wechartthreads.h"
- class ytDHCamCore : public QObject
- {
- Q_OBJECT
- public:
- explicit ytDHCamCore(QObject *parent = nullptr);
- ~ytDHCamCore();
- void start();
- void getNewDev(int idx);
- signals:
- public slots:
- void timeout();
- void appendLOg(QString log);
- void CamAlarm(QString deviceid, QString alarmtype, QString picpath, QString alarmtime);
- void AlarmReport(QString addr, quint64 insertid, QString type, QString time, QString companycode, QString phonelist);
- private:
- LogThread *logThread;
- DatabaseThread *dbThread;
- QTimer *timer;
- long lListenHandle;
- ttsThreads *wssThread[8];
- WechartThreads *wxThreads[8];
- int repcur,wxcur;
- };
- #endif // YTDHCAMCORE_H
|