foobar2000 SDK  2015-08-03
Public Member Functions | Protected Member Functions | Private Attributes
app_close_blocking_task_impl_dynamic

#include <app_close_blocker.h>

+ Inheritance diagram for app_close_blocking_task_impl_dynamic:

Public Member Functions

 app_close_blocking_task_impl_dynamic ()
 
 ~app_close_blocking_task_impl_dynamic ()
 
void query_task_name (pfc::string_base &out)
 

Protected Member Functions

void toggle_blocking (bool state)
 
- Protected Member Functions inherited from app_close_blocking_task
 app_close_blocking_task ()
 
 ~app_close_blocking_task ()
 
 PFC_CLASS_NOT_COPYABLE_EX (app_close_blocking_task)
 

Private Attributes

bool m_taskActive
 

Detailed Description

Definition at line 47 of file app_close_blocker.h.

Constructor & Destructor Documentation

app_close_blocking_task_impl_dynamic::app_close_blocking_task_impl_dynamic ( )
inline

Definition at line 49 of file app_close_blocker.h.

app_close_blocking_task_impl_dynamic::~app_close_blocking_task_impl_dynamic ( )
inline

Definition at line 50 of file app_close_blocker.h.

50 { toggle_blocking(false); }

Member Function Documentation

void app_close_blocking_task_impl_dynamic::query_task_name ( pfc::string_base out)
inlinevirtual

Implements app_close_blocking_task.

Definition at line 52 of file app_close_blocker.h.

52 { out = "<unnamed task>"; }
void app_close_blocking_task_impl_dynamic::toggle_blocking ( bool  state)
inlineprotected

Definition at line 55 of file app_close_blocker.h.

55  {
56  if (state != m_taskActive) {
58  if (state) api->register_task(this);
59  else api->unregister_task(this);
60  m_taskActive = state;
61  }
62  }
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533

Field Documentation

bool app_close_blocking_task_impl_dynamic::m_taskActive
private

Definition at line 64 of file app_close_blocker.h.


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