1
0

BurnerCommon.cpp 529 B

12345678910111213141516171819202122232425
  1. #include "BurnerCommon.h"
  2. #include "api.h"
  3. #include <api/service/waservicefactory.h>
  4. BurnerCommon::BurnerCommon(obj_primo *_primo)
  5. {
  6. primo = _primo;
  7. triggerEvent=0;
  8. triggerEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
  9. }
  10. BurnerCommon::~BurnerCommon()
  11. {
  12. if (triggerEvent)
  13. CloseHandle(triggerEvent);
  14. waServiceFactory *sf = WASABI_API_SVC->service_getServiceByGuid(obj_primo::getServiceGuid());
  15. if (sf) sf->releaseInterface(primo);
  16. }
  17. void BurnerCommon::TriggerCallback()
  18. {
  19. if (triggerEvent)
  20. SetEvent(triggerEvent);
  21. }