OTHER: Make the mainloop inherit Xmms::MainloopInterface.
Also made it orphan (Xmms::Client deletes it properly). This should be added as a shared library compiled with the bindings if QT libraries are available.
This commit is contained in:
parent
70da726f52
commit
a18cea60f0
3 changed files with 20 additions and 14 deletions
11
XmmsQT4.h
11
XmmsQT4.h
|
@ -1,22 +1,21 @@
|
|||
#ifndef __XMMSQT4_H__
|
||||
#define __XMMSQT4_H__
|
||||
|
||||
#include <iostream>
|
||||
#include <xmmsclient/xmmsclient++/mainloop.h>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QObject>
|
||||
#include <QSocketNotifier>
|
||||
|
||||
#include <xmmsclient/xmmsclient.h>
|
||||
|
||||
|
||||
class XmmsQT4 : public QObject
|
||||
class XmmsQT4 : public QObject, public Xmms::MainloopInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
XmmsQT4(xmmsc_connection_t *xmmsc = 0, QObject *parent = 0);
|
||||
XmmsQT4(xmmsc_connection_t *xmmsc);
|
||||
~XmmsQT4();
|
||||
|
||||
void run ();
|
||||
|
||||
void ToggleWrite(bool toggle);
|
||||
xmmsc_connection_t *GetXmmsConnection();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue