modulecomm_base.h 729 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef MODULECOMM_BASE_H
  2. #define MODULECOMM_BASE_H
  3. #include <QDateTime>
  4. #include <functional>
  5. #ifndef IV_MODULE_FUN
  6. typedef std::function<void(const char * ,const unsigned int , const unsigned int , QDateTime * ,const char *)> ModuleFun;
  7. typedef void (* SMCallBack)(const char * strdata,const unsigned int nSize,const unsigned int index,const QDateTime * dt,const char * strmemname);
  8. #define IV_MODULE_FUN
  9. #endif
  10. namespace iv {
  11. class modulecomm_base
  12. {
  13. public:
  14. modulecomm_base();
  15. public:
  16. virtual void ModuleSendMsg(const char * strdata,const unsigned int nDataLen) = 0;
  17. virtual void Unregister() = 0;
  18. virtual void PauseComm() = 0;
  19. virtual void ContintuComm() = 0;
  20. };
  21. }
  22. #endif // MODULECOMM_BASE_H