implement ProxySongList for handling general operations on lists

This commit is contained in:
Andrzej Rybczak
2012-09-02 20:51:20 +02:00
parent 0cfe5d8f01
commit 5e8d1673e0
22 changed files with 297 additions and 220 deletions

View File

@@ -22,8 +22,9 @@
#define _INTERFACES_H
#include <string>
#include "mpdpp.h"
#include "gcc.h"
#include "song.h"
#include "proxy_song_list.h"
struct Filterable
{
@@ -40,12 +41,10 @@ struct Searchable
struct HasSongs
{
virtual MPD::Song *getSong(size_t pos) = 0;
virtual MPD::Song *currentSong() = 0;
virtual std::shared_ptr<ProxySongList> getProxySongList() = 0;
virtual bool allowsSelection() = 0;
virtual void reverseSelection() = 0;
virtual void removeSelection() = 0;
virtual MPD::SongList getSelectedSongs() = 0;
};