foobar2000 SDK  2015-01-14
Protected Types | Protected Member Functions | Private Attributes
ui_selection_callback_impl_base_ex< flags >

#include <ui.h>

+ Inheritance diagram for ui_selection_callback_impl_base_ex< flags >:

Protected Types

enum  { ui_selection_flags = flags }
 

Protected Member Functions

 ui_selection_callback_impl_base_ex (bool activate=true)
 
 ~ui_selection_callback_impl_base_ex ()
 
void on_selection_changed (metadb_handle_list_cref p_selection)
 
 PFC_CLASS_NOT_COPYABLE (ui_selection_callback_impl_base_ex, ui_selection_callback_impl_base_ex< flags >)
 
void ui_selection_callback_activate (bool state=true)
 
- Protected Member Functions inherited from ui_selection_callback
 ui_selection_callback ()
 
 ~ui_selection_callback ()
 

Private Attributes

bool m_active
 

Additional Inherited Members

Detailed Description

template<unsigned flags>
class ui_selection_callback_impl_base_ex< flags >

Since
1.0 ui_selection_callback implementation helper with autoregistration - do not instantiate statically

Definition at line 205 of file ui.h.

Member Enumeration Documentation

template<unsigned flags>
anonymous enum
protected
Enumerator
ui_selection_flags 

Definition at line 207 of file ui.h.

Constructor & Destructor Documentation

template<unsigned flags>
ui_selection_callback_impl_base_ex< flags >::ui_selection_callback_impl_base_ex ( bool  activate = true)
inlineprotected

Definition at line 210 of file ui.h.

void ui_selection_callback_activate(bool state=true)
Definition: ui.h:213
template<unsigned flags>
ui_selection_callback_impl_base_ex< flags >::~ui_selection_callback_impl_base_ex ( )
inlineprotected

Definition at line 211 of file ui.h.

void ui_selection_callback_activate(bool state=true)
Definition: ui.h:213

Member Function Documentation

template<unsigned flags>
void ui_selection_callback_impl_base_ex< flags >::on_selection_changed ( metadb_handle_list_cref  p_selection)
inlineprotectedvirtual

Implements ui_selection_callback.

Definition at line 223 of file ui.h.

223 {}
template<unsigned flags>
ui_selection_callback_impl_base_ex< flags >::PFC_CLASS_NOT_COPYABLE ( ui_selection_callback_impl_base_ex< flags >  ,
ui_selection_callback_impl_base_ex< flags >   
)
protected
template<unsigned flags>
void ui_selection_callback_impl_base_ex< flags >::ui_selection_callback_activate ( bool  state = true)
inlineprotected

Definition at line 213 of file ui.h.

213  {
214  if (state != m_active) {
215  m_active = state;
217  if (state) api->register_callback(this, flags);
218  else api->unregister_callback(this);
219  }
220  }
Helper template used to easily access core services. Usage: static_api_ptr_t api; api->doso...
Definition: service.h:533

Field Documentation

template<unsigned flags>
bool ui_selection_callback_impl_base_ex< flags >::m_active
private

Definition at line 227 of file ui.h.


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