Implement some more commands

This commit is contained in:
2024-11-30 17:12:49 +01:00
parent 8461542735
commit 2ca3cd40bc
31 changed files with 926 additions and 10 deletions
+6 -4
View File
@@ -52,12 +52,14 @@ pub enum Request {
Clear,
Delete(OneOrRange),
DeleteId(SongId),
Move(OneOrRange, SongPosition),
MoveId(SongId, SongPosition),
// TODO: account for relative moves
Move(OneOrRange, AbsouluteRelativeSongPosition),
// TODO: account for relative moves
MoveId(SongId, AbsouluteRelativeSongPosition),
Playlist,
PlaylistFind(Filter, Option<Sort>, Option<WindowRange>),
PlaylistId(SongId),
PlaylistInfo(OneOrRange),
PlaylistInfo(Option<OneOrRange>),
PlaylistSearch(Filter, Option<Sort>, Option<WindowRange>),
// TODO: which type of range?
PlChanges(Version, Option<WindowRange>),
@@ -66,7 +68,7 @@ pub enum Request {
// TODO: which type of range?
Prio(Priority, WindowRange),
PrioId(Priority, Vec<SongId>),
RangeId(SongId, WindowRange),
RangeId(SongId, TimeInterval),
Shuffle(Option<OneOrRange>),
Swap(SongPosition, SongPosition),
SwapId(SongId, SongId),