implement HasSongs interface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user