foobar2000 SDK
2015-08-03
|
#include <menu.h>
Private Member Functions | |
virtual bool | dynamic_execute (t_uint32 index, const GUID &subID, service_ptr_t< service_base > callback) |
virtual FB2K_MAKE_SERVICE_INTERFACE(mainmenu_commands_v2, mainmenu_commands) public mainmenu_node::ptr | dynamic_instantiate (t_uint32 index)=0 |
Additional Inherited Members | |
Public Types inherited from mainmenu_commands | |
enum | { flag_disabled = 1<<0, flag_checked = 1<<1, flag_radiochecked = 1<<2, flag_defaulthidden = 1<<3, sort_priority_base = 0x10000, sort_priority_dontcare = 0x80000000, sort_priority_last = ~0 } |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Public Member Functions inherited from mainmenu_commands | |
virtual void | execute (t_uint32 p_index, service_ptr_t< service_base > p_callback)=0 |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (mainmenu_commands) | |
virtual GUID | get_command (t_uint32 p_index)=0 |
virtual t_uint32 | get_command_count ()=0 |
virtual bool | get_description (t_uint32 p_index, pfc::string_base &p_out)=0 |
virtual bool | get_display (t_uint32 p_index, pfc::string_base &p_text, t_uint32 &p_flags) |
virtual void | get_name (t_uint32 p_index, pfc::string_base &p_out)=0 |
virtual GUID | get_parent ()=0 |
virtual t_uint32 | get_sort_priority () |
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 inherited from mainmenu_commands | |
static bool | g_execute (const GUID &p_guid, service_ptr_t< service_base > p_callback=NULL) |
static bool | g_execute_dynamic (const GUID &p_guid, const GUID &p_subGuid, service_ptr_t< service_base > p_callback=NULL) |
static bool | g_find_by_name (const char *p_name, GUID &p_guid) |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
|
privatevirtual |
Default fallback implementation provided.
Definition at line 55 of file mainmenu.cpp.
|
privatepure virtual |
Valid only when is_command_dynamic() returns true. Behavior undefined otherwise.