cb_ssdp.h 675 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "foundation/dispatch.h"
  3. class cb_ssdp : public Wasabi2::Dispatchable
  4. {
  5. protected:
  6. cb_ssdp() : Wasabi2::Dispatchable(DISPATCHABLE_VERSION) {}
  7. ~cb_ssdp() {}
  8. public:
  9. void OnServiceConnected(nx_uri_t location, nx_string_t type, nx_string_t usn) { return SSDPCallback_OnServiceConnected(location, type, usn); }
  10. void OnServiceDisconnected(nx_string_t usn) { return SSDPCallback_OnServiceDisconnected(usn); }
  11. enum
  12. {
  13. DISPATCHABLE_VERSION=0,
  14. };
  15. private:
  16. virtual void WASABICALL SSDPCallback_OnServiceConnected(nx_uri_t location, nx_string_t type, nx_string_t usn)=0;
  17. virtual void WASABICALL SSDPCallback_OnServiceDisconnected(nx_string_t usn)=0;
  18. };