foobar2000 SDK  2015-01-14
Protected Member Functions | Private Attributes
ui_selection_callback_impl_base

#include <ui.h>

+ Inheritance diagram for ui_selection_callback_impl_base:

Protected Member Functions

 ui_selection_callback_impl_base (bool activate=true)
 
 ~ui_selection_callback_impl_base ()
 
void on_selection_changed (metadb_handle_list_cref p_selection)
 
 PFC_CLASS_NOT_COPYABLE_EX (ui_selection_callback_impl_base)
 
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

ui_selection_callback implementation helper with autoregistration - do not instantiate statically

Definition at line 180 of file ui.h.

Constructor & Destructor Documentation

ui_selection_callback_impl_base::ui_selection_callback_impl_base ( bool  activate = true)
inlineprotected

Definition at line 182 of file ui.h.

void ui_selection_callback_activate(bool state=true)
Definition: ui.h:185
ui_selection_callback_impl_base::~ui_selection_callback_impl_base ( )
inlineprotected

Definition at line 183 of file ui.h.

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

Member Function Documentation

void ui_selection_callback_impl_base::on_selection_changed ( metadb_handle_list_cref  p_selection)
inlineprotectedvirtual

Implements ui_selection_callback.

Definition at line 195 of file ui.h.

195 {}
ui_selection_callback_impl_base::PFC_CLASS_NOT_COPYABLE_EX ( ui_selection_callback_impl_base  )
protected
void ui_selection_callback_impl_base::ui_selection_callback_activate ( bool  state = true)
inlineprotected

Definition at line 185 of file ui.h.

185  {
186  if (state != m_active) {
187  m_active = state;
189  if (state) api->register_callback(this);
190  else api->unregister_callback(this);
191  }
192  }
Helper template used to easily access core services. Usage: static_api_ptr_t api; api->doso...
Definition: service.h:533

Field Documentation

bool ui_selection_callback_impl_base::m_active
private

Definition at line 199 of file ui.h.


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