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
|
@ -23,6 +23,7 @@ class MainDisplay;
|
|||
#include "StereoMono.h"
|
||||
#include "Slider.h"
|
||||
#include "PlayStatus.h"
|
||||
#include "MainWindow.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -47,6 +48,10 @@ class MainDisplay : public SkinDisplay
|
|||
|
||||
public slots:
|
||||
void setPixmaps(Skin *skin);
|
||||
void setStatus (uint status);
|
||||
void setPlaytime (uint time);
|
||||
void setMediainfo (QString str, int bitrate, int samplerate,
|
||||
int channels, int duration);
|
||||
|
||||
protected:
|
||||
void SetupPushButtons (void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue