is a observer design pattern
is base on your input to choose add or del function between number 3 and 4
is a wiki sample do the same thing with function_pointer.cpp
is a simple code implement Qt library
this project is for 3rd party need provide a function pointer to customer side