foobar2000 SDK  2015-01-14
Public Member Functions
threaded_process_callbackabstract

#include <threaded_process.h>

+ Inheritance diagram for threaded_process_callback:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (threaded_process_callback, service_base)
 
virtual void on_done (HWND p_wnd, bool p_was_aborted)
 
virtual void on_init (HWND p_wnd)
 
virtual void run (threaded_process_status &p_status, abort_callback &p_abort)=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

- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Callback class for the threaded_process API. You must implement this to create your own threaded_process client.

Definition at line 42 of file threaded_process.h.

Member Function Documentation

threaded_process_callback::FB2K_MAKE_SERVICE_INTERFACE ( threaded_process_callback  ,
service_base   
)
virtual void threaded_process_callback::on_done ( HWND  p_wnd,
bool  p_was_aborted 
)
inlinevirtual

Called after the worker thread has finished executing.

Reimplemented in threaded_process_callback_redir< TTarget >, and calculate_peak_process.

Definition at line 50 of file threaded_process.h.

50 {}
virtual void threaded_process_callback::on_init ( HWND  p_wnd)
inlinevirtual

Called from the main thread before spawning the worker thread.
Note that you should not access the window handle passed to on_init() in the worker thread later on.

Reimplemented in threaded_process_callback_redir< TTarget >, and calculate_peak_process.

Definition at line 46 of file threaded_process.h.

46 {}
virtual void threaded_process_callback::run ( threaded_process_status p_status,
abort_callback p_abort 
)
pure virtual

Called from the worker thread. Do all the hard work here.

Implemented in threaded_process_callback_redir< TTarget >, and calculate_peak_process.


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