foobar2000 SDK  2015-08-03
initquit.h
Go to the documentation of this file.
1 class NOVTABLE initquit : public service_base {
9 public:
10  virtual void on_init() {}
11  virtual void on_quit() {}
12 
13  FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(initquit);
14 };
15 
16 template<typename T>
18 
19 
21 namespace init_stages {
22  enum {
29  };
30 };
31 
33 class NOVTABLE init_stage_callback : public service_base {
34  FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(init_stage_callback)
35 public:
36  virtual void on_init_stage(t_uint32 stage) = 0;
37 
38  static void dispatch(t_uint32 stage) {FB2K_FOR_EACH_SERVICE(init_stage_callback, on_init_stage(stage));}
39 };
virtual void on_quit()
Definition: initquit.h:11
virtual void on_init()
Definition: initquit.h:10
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
Definition: service.h:333
static FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(init_stage_callback) public void dispatch(t_uint32 stage)
Definition: initquit.h:38
Basic callback startup/shutdown callback, on_init is called after the main window has been created...
Definition: initquit.h:8
uint32_t t_uint32
Definition: int_types.h:5