ivexit.h 748 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef IVEXIT_H
  2. #define IVEXIT_H
  3. #include <QtCore/qglobal.h>
  4. #include <QDateTime>
  5. #include <functional>
  6. #if defined(IVEXIT_LIBRARY)
  7. # define IVEXITSHARED_EXPORT Q_DECL_EXPORT
  8. #else
  9. # define IVEXITSHARED_EXPORT Q_DECL_IMPORT
  10. #endif
  11. //#include <iostream>
  12. //#include <thread>
  13. //using namespace std::placeholders;
  14. typedef std::function<void()> IVExitFun;
  15. typedef void (* IVExitCallBack)();
  16. namespace iv {
  17. namespace ivexit {
  18. void * IVEXITSHARED_EXPORT RegIVExitCmd();
  19. void IVEXITSHARED_EXPORT ExecIVExitCmd(void * handle,const char * strsyscmd);
  20. void * IVEXITSHARED_EXPORT RegIVExitCall(IVExitCallBack pCall,bool bcommonexit = true);
  21. void * IVEXITSHARED_EXPORT RegIVExitCallPlus(IVExitFun xFun,bool bcommonexit = true);
  22. }
  23. }
  24. #endif