ivfault.h 486 B

1234567891011121314151617181920212223242526
  1. #ifndef IVFAULT_H
  2. #define IVFAULT_H
  3. #include <QtCore/qglobal.h>
  4. #if defined(IVFAULT_LIBRARY)
  5. # define IVFAULTSHARED_EXPORT Q_DECL_EXPORT
  6. #else
  7. # define IVFAULTSHARED_EXPORT Q_DECL_IMPORT
  8. #endif
  9. namespace iv {
  10. class IVFAULTSHARED_EXPORT Ivfault
  11. {
  12. public:
  13. Ivfault(const char * strmodulename);
  14. int SetFaultState(int nFaultClass,int nFaultNum,const char * strfaultdesc); // nFaultClasss: 0 No Fault 1 Warning 2 Fault
  15. private:
  16. void * mpimpl;
  17. };
  18. }
  19. #endif // IVFAULT_H