From 853dea644e45629e944f7e52bd884579b59d393b Mon Sep 17 00:00:00 2001 From: Thomas Frauendorfer Date: Tue, 25 Aug 2009 01:46:31 +0200 Subject: [PATCH] OTHER: post DrM API update --- lib/xclient.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/xclient.h b/lib/xclient.h index e492406..da98ba7 100644 --- a/lib/xclient.h +++ b/lib/xclient.h @@ -94,7 +94,11 @@ class XClient : public QObject { }; // static QDir esperanza_dir (); +#if (XMMS_IPC_PROTOCOL_VERSION > 13) + void setDisconnectCallback (const Xmms::DisconnectCallback::value_type &slot) { m_client->setDisconnectCallback (slot); } +#else void setDisconnectCallback (const Xmms::DisconnectCallback::slot_type &slot) { m_client->setDisconnectCallback (slot); } +#endif const Xmms::Collection* collection () { if (m_client && m_client->isConnected ()) return &m_client->collection; else return NULL; } const Xmms::Playlist* playlist () { if (m_client && m_client->isConnected ()) return &m_client->playlist; else return NULL; } const Xmms::Playback* playback () { if (m_client && m_client->isConnected ()) return &m_client->playback; else return NULL; }