/** * This file is a part of Promoe, an XMMS2 Client. * * Copyright (C) 2005-2008 XMMS2 Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef __XMMS_HANDLER_H__ #define __XMMS_HANDLER_H__ #include #include "xclient.h" #include "xmmsqt4.h" #include #include class PlaylistModel; class XMMSHandler : public XClient { Q_OBJECT public: static XMMSHandler &getInstance (); XMMSHandler (QObject *parent, const std::string &name); ~XMMSHandler () {}; bool connect_handler (const char *ipcpath = NULL, const bool &sync = false, QWidget *parent = NULL); void playlistAddURL (const QString& url); /* void medialib_select (XMMSResultDictList *res); */ /* uint medialibQuery (QString); void medialibQueryAdd (QString q) { delete m_xmmsc->medialib_add_to_playlist (q.toUtf8 ()); } */ //const XMMSClient *getXMMS () { return m_xmmsc; } void updateSettings () { emit settingsSaved (); } Xmms::Client *getClient () { return m_client; } PlaylistModel *getPlaylistModel () {return m_playlist_model; } signals: void settingsSaved (); /* void medialibResponse (uint, const QList > &); */ private: void DictToQHash (const std::string &key, const Xmms::Dict::Variant &value, QHash &hash); // void PropDictToQHash (const std::string &key, // const Xmms::Dict::Variant &value, // const std::string &source, // QHash &hash); XmmsQT4 *m_qt4; PlaylistModel *m_playlist_model; }; #endif