foobar2000 SDK
2015-08-03
|
#include <contextmenu.h>
Public Member Functions | |
virtual bool | resolve_context_command (const GUID &id, service_ptr_t< class contextmenu_item > &out, t_uint32 &out_index)=0 |
virtual bool | resolve_main_command (const GUID &id, service_ptr_t< class mainmenu_commands > &out, t_uint32 &out_index)=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 () |
Static Public Member Functions | |
static bool | g_resolve_context_command (const GUID &id, service_ptr_t< class contextmenu_item > &out, t_uint32 &out_index) |
static bool | g_resolve_main_command (const GUID &id, service_ptr_t< class mainmenu_commands > &out, t_uint32 &out_index) |
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 () | |
New in 0.9.5.1. Static methods safe to use in prior versions as it will use slow fallback mode when the service isn't present.
Functionality provided by menu_item_resolver methods isn't much different from just walking all registered contextmenu_item / mainmenu_commands implementations to find the command we want, but it uses a hint map to locate the service we're looking for without walking all of them which may be significantly faster in certain scenarios.
Definition at line 252 of file contextmenu.h.
|
static |
Definition at line 292 of file menu_helpers.cpp.
|
static |
Definition at line 295 of file menu_helpers.cpp.
|
pure virtual |
|
pure virtual |