foobar2000 SDK
2015-08-03
|
#include <play_callback.h>
Public Member Functions | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (play_callback_manager) | |
virtual void FB2KAPI | register_callback (play_callback *p_callback, unsigned p_flags, bool p_forward_status_on_register)=0 |
virtual void FB2KAPI | unregister_callback (play_callback *p_callback)=0 |
Public Member Functions inherited from service_base | |
template<typename outPtr_t > | |
bool | cast (outPtr_t &outPtr) |
virtual int | service_add_ref ()=0 throw () |
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
template<class T > | |
bool | service_query_t (service_ptr_t< T > &p_out) |
virtual int | service_release ()=0 throw () |
Additional Inherited Members | |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
Standard API (always present); manages registrations of dynamic play_callbacks. Usage: use static_api_ptr_t<play_callback_manager>. Do not reimplement.
Definition at line 54 of file play_callback.h.
play_callback_manager::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | play_callback_manager | ) |
|
pure virtual |
Registers a play_callback object.
p_callback | Interface to register. |
p_flags | Indicates which notifications are requested. |
p_forward_status_on_register | Set to true to have the callback immediately receive current playback status as notifications if playback is active (eg. to receive info about playback process that started before our callback was registered). |
|
pure virtual |
Unregisters a play_callback object. Previously registered interface to unregister.