Singletonify XMMSHandler and kick out everything not XMMSisch from the class.
A class that needs to talk to xmms2 now calls XMMSHandler::getInstance() and all communication is handled by signals'n'slots.
This commit is contained in:
parent
56dd4cf3ee
commit
787a5c7b5b
10 changed files with 150 additions and 85 deletions
|
|
@ -10,7 +10,7 @@ MainWindow::MainWindow (QWidget *parent) : QMainWindow (parent)
|
|||
* Initialize the Handler that will
|
||||
* update the display and the buttons
|
||||
*/
|
||||
m_handler = new XMMSHandler (this);
|
||||
m_handler = XMMSHandler::getInstance();
|
||||
|
||||
/*
|
||||
* Initialize skin, but don't open one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue