foobar2000 SDK  2015-01-14
Public Types | Public Member Functions
mainmenu_managerabstract

#include <menu.h>

+ Inheritance diagram for mainmenu_manager:

Public Types

enum  { flag_show_shortcuts = 1 << 0, flag_show_shortcuts_global = 1 << 1, flag_view_reduced = 1 << 2, flag_view_full = 1 << 3 }
 
- Public Types inherited from service_base
typedef service_base t_interface
 

Public Member Functions

virtual bool execute_command (t_uint32 p_id, service_ptr_t< service_base > p_callback=service_ptr_t< service_base >())=0
 
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (mainmenu_manager)
 
virtual void generate_menu_win32 (HMENU p_menu, t_uint32 p_id_base, t_uint32 p_id_count, t_uint32 p_flags)=0
 
virtual bool get_description (t_uint32 p_id, pfc::string_base &p_out)=0
 
virtual void instantiate (const GUID &p_root)=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

- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Definition at line 56 of file menu.h.

Member Enumeration Documentation

anonymous enum
Enumerator
flag_show_shortcuts 
flag_show_shortcuts_global 
flag_view_reduced 
Since
1.0 To control which commands are shown, you should specify either flag_view_reduced or flag_view_full. If neither is specified, the implementation will decide automatically based on shift key being pressed, for backwards compatibility.
flag_view_full 
Since
1.0 To control which commands are shown, you should specify either flag_view_reduced or flag_view_full. If neither is specified, the implementation will decide automatically based on shift key being pressed, for backwards compatibility.

Definition at line 58 of file menu.h.

Member Function Documentation

virtual bool mainmenu_manager::execute_command ( t_uint32  p_id,
service_ptr_t< service_base p_callback = service_ptr_tservice_base >() 
)
pure virtual
mainmenu_manager::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( mainmenu_manager  )
virtual void mainmenu_manager::generate_menu_win32 ( HMENU  p_menu,
t_uint32  p_id_base,
t_uint32  p_id_count,
t_uint32  p_flags 
)
pure virtual
virtual bool mainmenu_manager::get_description ( t_uint32  p_id,
pfc::string_base p_out 
)
pure virtual
virtual void mainmenu_manager::instantiate ( const GUID p_root)
pure virtual

The documentation for this class was generated from the following file: