Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ pub enum State {
Connecting,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ViewMode {
Queue,
Favorites,
}

#[derive(Debug)]
pub enum Direction {
Up,
Down,
}

#[derive(Debug)]
pub enum Action {
Play,
Expand All @@ -25,6 +37,9 @@ pub enum Action {
NextSpeaker,
PrevSpeaker,
VolAdjust(i16),
SwitchView(ViewMode),
NavigateFavorites(Direction),
PlayFavorite(usize),
Nop,
}

Expand Down
Loading