implement saving selected tracks directly to playlists

closes #103
This commit is contained in:
Henrik Friedrichsen
2019-11-02 23:12:33 +01:00
parent 6bf1d662dc
commit ed1dc2e22e
5 changed files with 84 additions and 14 deletions

View File

@@ -10,6 +10,7 @@ use command::Command;
use commands::CommandResult;
use library::Library;
use queue::Queue;
use track::Track;
pub trait ListItem: Sync + Send + 'static {
fn is_playing(&self, queue: Arc<Queue>) -> bool;
@@ -31,6 +32,10 @@ pub trait ListItem: Sync + Send + 'static {
None
}
fn track(&self) -> Option<Track> {
None
}
fn as_listitem(&self) -> Box<dyn ListItem>;
}