akWorker.h 601 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef AKWORKER_H
  2. #define AKWORKER_H
  3. #include <QObject>
  4. #include <QThread>
  5. class QFile;
  6. class akWorker : public QThread
  7. {
  8. Q_OBJECT
  9. public:
  10. akWorker();
  11. ~akWorker();
  12. void start(QString file = "", bool nossid = true, short port = 10000);
  13. signals:
  14. showMsg(QString m);
  15. private:
  16. void run();
  17. void fromfile();
  18. void fromudp_bc();
  19. int getframe(QString &str, QByteArray &fm);
  20. public:
  21. bool lenOut;
  22. bool cmpExit;
  23. private:
  24. bool isrun;
  25. QString _file;
  26. bool _nossid;
  27. short _port;
  28. };
  29. #endif // AKWORKER_H