implement HasSongs interface

This commit is contained in:
Andrzej Rybczak
2012-09-02 13:47:57 +02:00
parent ad8fef343f
commit 6f59a175ec
37 changed files with 840 additions and 705 deletions

View File

@@ -22,6 +22,7 @@
#define _INTERFACES_H
#include <string>
#include "mpdpp.h"
#include "gcc.h"
struct Filterable
@@ -37,4 +38,15 @@ struct Searchable
virtual void prevFound(bool wrap) = 0;
};
struct HasSongs
{
virtual MPD::Song *getSong(size_t pos) = 0;
virtual MPD::Song *currentSong() = 0;
virtual bool allowsSelection() = 0;
virtual void reverseSelection() = 0;
virtual void removeSelection() = 0;
virtual MPD::SongList getSelectedSongs() = 0;
};
#endif // _INTERFACES_H