foobar2000 SDK
2015-08-03
|
Public Types | |
enum | { cmd_test1 = 0, cmd_test2, cmd_total } |
Public Types inherited from contextmenu_item_simple | |
enum | t_flags { FLAG_CHECKED = 1, FLAG_DISABLED = 2, FLAG_GRAYED = 4, FLAG_DISABLED_GRAYED = FLAG_DISABLED|FLAG_GRAYED, FLAG_RADIOCHECKED = 8 } |
Public Types inherited from contextmenu_item | |
enum | t_enabled_state { FORCE_OFF, DEFAULT_OFF, DEFAULT_ON } |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Public Member Functions | |
void | context_command (unsigned p_index, metadb_handle_list_cref p_data, const GUID &p_caller) |
bool | context_get_display (unsigned p_index, metadb_handle_list_cref p_data, pfc::string_base &p_out, unsigned &p_displayflags, const GUID &p_caller) |
bool | get_item_description (unsigned p_index, pfc::string_base &p_out) |
GUID | get_item_guid (unsigned p_index) |
void | get_item_name (unsigned p_index, pfc::string_base &p_out) |
unsigned | get_num_items () |
GUID | get_parent () |
Public Member Functions inherited from contextmenu_item_simple | |
virtual t_enabled_state | get_enabled_state (unsigned p_index) |
Public Member Functions inherited from contextmenu_item | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (contextmenu_item) | |
virtual void | get_item_default_path (unsigned p_index, pfc::string_base &p_out) |
GUID | get_parent_ () |
GUID | get_parent_fallback () |
bool | item_get_display_data (pfc::string_base &p_out, unsigned &displayflags, unsigned p_index, const GUID &p_node, metadb_handle_list_cref p_data, const GUID &p_caller) |
bool | item_get_display_data_root (pfc::string_base &p_out, unsigned &displayflags, unsigned p_index, metadb_handle_list_cref p_data, const GUID &p_caller) |
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 Attributes inherited from contextmenu_item | |
static const GUID | caller_active_playlist |
static const GUID | caller_active_playlist_selection |
static const GUID | caller_keyboard_shortcut_list |
static const GUID | caller_media_library_viewer |
static const GUID | caller_now_playing |
static const GUID | caller_playlist = caller_active_playlist_selection |
static const GUID | caller_playlist_manager |
static const GUID | caller_undefined |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
Definition at line 17 of file contextmenu.cpp.
anonymous enum |
Enumerator | |
---|---|
cmd_test1 | |
cmd_test2 | |
cmd_total |
Definition at line 19 of file contextmenu.cpp.
|
inlinevirtual |
Implements contextmenu_item_simple.
Definition at line 33 of file contextmenu.cpp.
|
inlinevirtual |
Reimplemented from contextmenu_item_simple.
Definition at line 46 of file contextmenu.cpp.
|
inlinevirtual |
Retrieves item's description to show in the status bar. Set p_out to the string to be displayed and return true if you provide a description, return false otherwise.
Implements contextmenu_item_simple.
Definition at line 71 of file contextmenu.cpp.
|
inlinevirtual |
Retrieves GUID of the context menu item.
Implements contextmenu_item_simple.
Definition at line 60 of file contextmenu.cpp.
|
inlinevirtual |
Retrieves human-readable name of the context menu item.
Implements contextmenu_item_simple.
Definition at line 26 of file contextmenu.cpp.
|
inlinevirtual |
Retrieves number of menu items provided by this contextmenu_item implementation.
Implements contextmenu_item_simple.
Definition at line 25 of file contextmenu.cpp.
|
inlinevirtual |