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
|
@ -1,19 +1,20 @@
|
|||
#ifndef __PLAYSTATUS_H__
|
||||
#define __PLAYSTATUS_H__
|
||||
|
||||
#include <xmmsclient/xmmsclient.h>
|
||||
#include "XMMSHandler.h"
|
||||
#include "PixWidget.h"
|
||||
|
||||
class PlayStatus : public PixWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
PlayStatus (QWidget *parent);
|
||||
~PlayStatus () { }
|
||||
|
||||
void setStatus (int);
|
||||
|
||||
public slots:
|
||||
void setPixmaps (Skin *skin);
|
||||
void setStatus (uint status);
|
||||
|
||||
private:
|
||||
int m_status;
|
||||
|
@ -21,7 +22,6 @@ class PlayStatus : public PixWidget
|
|||
QPixmap m_pixmap_stop;
|
||||
QPixmap m_pixmap_play;
|
||||
QPixmap m_pixmap_pause;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue