foobar2000 SDK  2015-08-03
Public Member Functions
system_time_callback_impl

#include <system_time_keeper.h>

+ Inheritance diagram for system_time_callback_impl:

Public Member Functions

 system_time_callback_impl ()
 
 ~system_time_callback_impl ()
 
void initialize_timer (t_filetimestamp period)
 
void on_time_changed (t_filetimestamp newVal)
 
void stop_timer ()
 

Detailed Description

Definition at line 23 of file system_time_keeper.h.

Constructor & Destructor Documentation

system_time_callback_impl::system_time_callback_impl ( )
inline

Definition at line 25 of file system_time_keeper.h.

25 : m_registered() {}
system_time_callback_impl::~system_time_callback_impl ( )
inline

Definition at line 26 of file system_time_keeper.h.

Member Function Documentation

void system_time_callback_impl::initialize_timer ( t_filetimestamp  period)
inline

You get a on_changed() call inside the initialize_timer() call.

Definition at line 35 of file system_time_keeper.h.

35  {
36  stop_timer();
37  static_api_ptr_t<system_time_keeper>()->register_callback(this, period);
38  m_registered = true;
39  }
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533
void system_time_callback_impl::on_time_changed ( t_filetimestamp  newVal)
inlinevirtual

Implements system_time_callback.

Definition at line 41 of file system_time_keeper.h.

41 {}
void system_time_callback_impl::stop_timer ( )
inline

Definition at line 28 of file system_time_keeper.h.

28  {
29  if (m_registered) {
30  static_api_ptr_t<system_time_keeper>()->unregister_callback(this);
31  m_registered = false;
32  }
33  }
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533

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