1
0

popexitcb.h 801 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _POPUPCB_H
  2. #define _POPUPCB_H
  3. #include <bfc/common.h>
  4. #include <bfc/dispatch.h>
  5. class ifc_dependent;
  6. class PopupExitCallback : public Dispatchable {
  7. public:
  8. int popupexitcb_onExitPopup();
  9. ifc_dependent *popupexit_getDependencyPtr();
  10. enum {
  11. POPUPEXIT_ONEXITPOPUP=100,
  12. POPUPEXIT_GETDEPENDENCYPTR=110,
  13. };
  14. };
  15. inline int PopupExitCallback::popupexitcb_onExitPopup() {
  16. return _call(POPUPEXIT_ONEXITPOPUP, 0);
  17. }
  18. inline ifc_dependent *PopupExitCallback::popupexit_getDependencyPtr() {
  19. return _call(POPUPEXIT_GETDEPENDENCYPTR, (ifc_dependent *)NULL);
  20. }
  21. class PopupExitCallbackI : public PopupExitCallback {
  22. public:
  23. virtual int popupexitcb_onExitPopup()=0;
  24. virtual ifc_dependent *popupexit_getDependencyPtr()=0;
  25. protected:
  26. RECVS_DISPATCH;
  27. };
  28. #endif