Updates
This commit is contained in:
parent
65c1011b8a
commit
5dec0fb5fe
2 changed files with 10 additions and 17 deletions
|
@ -20,7 +20,7 @@ XMMSHandler::XMMSHandler (MainWindow *mw) : sigc::trackable ()
|
||||||
}
|
}
|
||||||
m_qt4 = new XmmsQT4 (m_xmmsc->getConn (), qApp);
|
m_qt4 = new XmmsQT4 (m_xmmsc->getConn (), qApp);
|
||||||
|
|
||||||
XMMSResultValueUint *r = m_xmmsc->signal_playback_playtime ();
|
XMMSResultValue<uint> *r = m_xmmsc->signal_playback_playtime ();
|
||||||
r->connect (sigc::mem_fun (this, &XMMSHandler::playback_playtime));
|
r->connect (sigc::mem_fun (this, &XMMSHandler::playback_playtime));
|
||||||
|
|
||||||
r = m_xmmsc->playback_current_id ();
|
r = m_xmmsc->playback_current_id ();
|
||||||
|
@ -32,25 +32,18 @@ XMMSHandler::XMMSHandler (MainWindow *mw) : sigc::trackable ()
|
||||||
r = m_xmmsc->broadcast_playback_status ();
|
r = m_xmmsc->broadcast_playback_status ();
|
||||||
r->connect (sigc::mem_fun (this, &XMMSHandler::playback_status));
|
r->connect (sigc::mem_fun (this, &XMMSHandler::playback_status));
|
||||||
|
|
||||||
XMMSResultValueListUint *l = m_xmmsc->playlist_list ();
|
XMMSResultValueList<uint> *l = m_xmmsc->playlist_list ();
|
||||||
l->connect (sigc::mem_fun (this, &XMMSHandler::playlist_list));
|
l->connect (sigc::mem_fun (this, &XMMSHandler::playlist_list));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
XMMSHandler::playlist_list (XMMSResultValueListUint *res)
|
XMMSHandler::playlist_list (XMMSResultValueList<uint> *res)
|
||||||
{
|
{
|
||||||
qDebug ("korv!");
|
|
||||||
|
|
||||||
for (;res->listValid(); res->listNext()) {
|
|
||||||
uint i;
|
|
||||||
qDebug ("%u", res->getValue(&i));
|
|
||||||
}
|
|
||||||
|
|
||||||
delete res;
|
delete res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
XMMSHandler::playback_status (XMMSResultValueUint *res)
|
XMMSHandler::playback_status (XMMSResultValue<uint> *res)
|
||||||
{
|
{
|
||||||
uint i;
|
uint i;
|
||||||
res->getValue (&i);
|
res->getValue (&i);
|
||||||
|
@ -67,7 +60,7 @@ XMMSHandler::playback_status (XMMSResultValueUint *res)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
XMMSHandler::playback_playtime (XMMSResultValueUint *res)
|
XMMSHandler::playback_playtime (XMMSResultValue<uint> *res)
|
||||||
{
|
{
|
||||||
uint i, sec, min;
|
uint i, sec, min;
|
||||||
res->getValue (&i);
|
res->getValue (&i);
|
||||||
|
@ -90,7 +83,7 @@ XMMSHandler::playback_playtime (XMMSResultValueUint *res)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
XMMSHandler::playback_current_id (XMMSResultValueUint *res)
|
XMMSHandler::playback_current_id (XMMSResultValue<uint> *res)
|
||||||
{
|
{
|
||||||
uint i;
|
uint i;
|
||||||
res->getValue (&i);
|
res->getValue (&i);
|
||||||
|
|
|
@ -15,11 +15,11 @@ class XMMSHandler : public QObject, public sigc::trackable {
|
||||||
public:
|
public:
|
||||||
XMMSHandler (MainWindow *mw);
|
XMMSHandler (MainWindow *mw);
|
||||||
~XMMSHandler ();
|
~XMMSHandler ();
|
||||||
void playback_playtime (XMMSResultValueUint *res);
|
void playback_playtime (XMMSResultValue<uint> *res);
|
||||||
void playback_current_id (XMMSResultValueUint *res);
|
void playback_current_id (XMMSResultValue<uint> *res);
|
||||||
void medialib_info (XMMSResultDict *res);
|
void medialib_info (XMMSResultDict *res);
|
||||||
void playback_status (XMMSResultValueUint *res);
|
void playback_status (XMMSResultValue<uint> *res);
|
||||||
void playlist_list (XMMSResultValueListUint *res);
|
void playlist_list (XMMSResultValueList<uint> *res);
|
||||||
|
|
||||||
const XMMSClient *getXMMS () { return m_xmmsc; }
|
const XMMSClient *getXMMS () { return m_xmmsc; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue