1
0

api_dependentviewer.h 907 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __WASABI_API_DEPENDENTVIEWER_H
  2. #define __WASABI_API_DEPENDENTVIEWER_H
  3. #include <bfc/dispatch.h>
  4. #include <bfc/platform/types.h>
  5. class ifc_dependent;
  6. class NOVTABLE ifc_dependentviewer : public Dispatchable
  7. {
  8. protected:
  9. ifc_dependentviewer() {}
  10. ~ifc_dependentviewer() {}
  11. public:
  12. // item calls when it changes or disappears, or whatever
  13. int dependentViewer_callback(ifc_dependent *item, const GUID *classguid, int cb, intptr_t param1 = 0, intptr_t param2 = 0, void *ptr = NULL, size_t ptrlen = 0);
  14. DISPATCH_CODES
  15. {
  16. DEPENDENTVIEWER_CALLBACK = 10,
  17. };
  18. };
  19. inline int ifc_dependentviewer::dependentViewer_callback(ifc_dependent *item, const GUID *classguid, int cb, intptr_t param1 , intptr_t param2 , void *ptr , size_t ptrlen)
  20. {
  21. return _call(DEPENDENTVIEWER_CALLBACK, (int)0, item, classguid, cb, param1, param2, ptr, ptrlen);
  22. }
  23. typedef ifc_dependentviewer api_dependentviewer;
  24. #endif