ytdhcamcore.h 901 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef YTDHCAMCORE_H
  2. #define YTDHCAMCORE_H
  3. #include <QObject>
  4. #include <QTimer>
  5. #include "logthread.h"
  6. #include "databasethread.h"
  7. #include "camthread.h"
  8. #include "ttsthreads.h"
  9. #include "wechartthreads.h"
  10. class ytDHCamCore : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit ytDHCamCore(QObject *parent = nullptr);
  15. ~ytDHCamCore();
  16. void start();
  17. void getNewDev(int idx);
  18. signals:
  19. public slots:
  20. void timeout();
  21. void appendLOg(QString log);
  22. void CamAlarm(QString deviceid, QString alarmtype, QString picpath, QString alarmtime);
  23. void AlarmReport(QString addr, quint64 insertid, QString type, QString time, QString companycode, QString phonelist);
  24. private:
  25. LogThread *logThread;
  26. DatabaseThread *dbThread;
  27. QTimer *timer;
  28. long lListenHandle;
  29. ttsThreads *wssThread[8];
  30. WechartThreads *wxThreads[8];
  31. int repcur,wxcur;
  32. };
  33. #endif // YTDHCAMCORE_H