Improve the playlists-choose dialog

This commit is contained in:
Thomas Frauendorfer 2008-02-09 15:25:47 +01:00
parent d93f2ee188
commit 4c7317f71d
8 changed files with 191 additions and 52 deletions

View file

@ -30,22 +30,30 @@ class XCollection : public QObject
XCollection (XClient *client);
QStringList list (QString ns = "Playlists");
bool setActivePlaylist (QString name);
bool addIdlist (QString name);
bool remove (QString name, QString ns);
// idlist specific
bool setActivePlaylist (QString name);
QString activePlaylist () {return m_activePlaylist;}
bool addIdlist (QString name);
signals:
void collectionModified (QString collection, QString ns, int type,
QString newname);
void activePlaylistChanged (QString newActive, QString oldActive);
protected slots:
void on_connect (XClient *);
private:
bool on_collection_modified (const Xmms::Dict &value);
bool handle_playlists_list (const Xmms::List< std::string > &list);
bool handle_active_pls_changed (const std::string &name);
XClient *m_client;
QStringList m_playlists;
QString m_activePlaylist;
};
#endif