diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/wnd/popexitcb.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/wnd/popexitcb.h')
-rw-r--r-- | Src/Wasabi/api/wnd/popexitcb.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wnd/popexitcb.h b/Src/Wasabi/api/wnd/popexitcb.h new file mode 100644 index 00000000..bbd9de0d --- /dev/null +++ b/Src/Wasabi/api/wnd/popexitcb.h @@ -0,0 +1,40 @@ +#ifndef _POPUPCB_H +#define _POPUPCB_H + +#include <bfc/common.h> +#include <bfc/dispatch.h> + +class ifc_dependent; + +class PopupExitCallback : public Dispatchable { + public: + + int popupexitcb_onExitPopup(); + ifc_dependent *popupexit_getDependencyPtr(); + + enum { + POPUPEXIT_ONEXITPOPUP=100, + POPUPEXIT_GETDEPENDENCYPTR=110, + }; +}; + +inline int PopupExitCallback::popupexitcb_onExitPopup() { + return _call(POPUPEXIT_ONEXITPOPUP, 0); +} + +inline ifc_dependent *PopupExitCallback::popupexit_getDependencyPtr() { + return _call(POPUPEXIT_GETDEPENDENCYPTR, (ifc_dependent *)NULL); +} + +class PopupExitCallbackI : public PopupExitCallback { + public: + + virtual int popupexitcb_onExitPopup()=0; + virtual ifc_dependent *popupexit_getDependencyPtr()=0; + + protected: + + RECVS_DISPATCH; +}; + +#endif |