promoe/backend_xmmsclient++/xcollection.h
Thomas Frauendorfer 0e8e5c69a6 OTHER: rename 'lib' directory to 'backend_xmmsclient++'
I plan to replace the boost based c++ bindings with native Qt based bindings
in the long run
The currently there is libxmms2qt, but tru stated working on bindings based
on genipc
2009-10-17 20:25:35 +02:00

64 lines
1.5 KiB
C++

/**
* 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 __XCOLLECTION_H__
#define __XCOLLECTION_H__
class XClient;
#include <QObject>
#include <QUrl>
class QStringList;
class QString;
class XCollection : public QObject
{
Q_OBJECT
public:
XCollection (XClient *client);
QStringList list (QString ns = "Playlists");
bool remove (QString name, QString ns);
// idlist specific
QString activePlaylist ();
public slots:
// idlist spesific
bool setActivePlaylist (QString name);
bool addIdlist (QString name);
bool playlistAddUrl (QString url, QString plsname = "");
bool playlistAddUrl (QUrl url, QString plsname = "");
bool playlistClear (QString name = "");
bool addPlsFile (QUrl url);
signals:
void collectionModified (QString collection, QString ns, int type,
QString newname);
void activePlaylistChanged (QString newActive, QString oldActive);
protected slots:
void on_connect (XClient *);
private:
class Private;
Private* d;
XClient *m_client;
};
#endif