Implemented 2 semaphores idea.
Added dao.cpp file.

This example is working in restricted conditions:
 - when you do library scanning you can pause it (by clicking pause
button);
 - when you cancel library scanning (by clicking pause button);
 - when you (ONLY!) add new playlist while library scanning in process
(no need to click pause button).