foobar2000 SDK
2015-08-03
|
Public Types | |
enum | { cmd_test = 0, cmd_playbackstate, cmd_total } |
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 | |
void | execute (t_uint32 p_index, service_ptr_t< service_base > p_callback) |
GUID | get_command (t_uint32 p_index) |
t_uint32 | get_command_count () |
bool | get_description (t_uint32 p_index, pfc::string_base &p_out) |
void | get_name (t_uint32 p_index, pfc::string_base &p_out) |
GUID | get_parent () |
Public Member Functions inherited from mainmenu_commands | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (mainmenu_commands) | |
virtual bool | get_display (t_uint32 p_index, pfc::string_base &p_text, t_uint32 &p_flags) |
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 () |
Additional Inherited Members | |
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 () | |
Definition at line 9 of file mainmenu.cpp.
anonymous enum |
Enumerator | |
---|---|
cmd_test | |
cmd_playbackstate | |
cmd_total |
Definition at line 11 of file mainmenu.cpp.
|
inlinevirtual |
Executes the command. p_callback parameter is reserved for future use and should be ignored / set to null pointer.
Implements mainmenu_commands.
Definition at line 45 of file mainmenu.cpp.
Retrieves GUID of specified command.
Implements mainmenu_commands.
Definition at line 19 of file mainmenu.cpp.
|
inlinevirtual |
Retrieves number of implemented commands. Index parameter of other methods must be in 0....command_count-1 range.
Implements mainmenu_commands.
Definition at line 16 of file mainmenu.cpp.
|
inlinevirtual |
Retrieves item's description for statusbar etc.
Implements mainmenu_commands.
Definition at line 35 of file mainmenu.cpp.
|
inlinevirtual |
Retrieves name of item, for list of commands to assign keyboard shortcuts to etc.
Implements mainmenu_commands.
Definition at line 28 of file mainmenu.cpp.
|
inlinevirtual |
Retrieves GUID of owning menu group.
Implements mainmenu_commands.
Definition at line 42 of file mainmenu.cpp.