inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
SearchState Struct Reference

Holds the state for searching artists and songs. More...

#include <state.hpp>

Public Attributes

Trie ArtistSearchTrie
 
Trie SongSearchTrie
 
int artistIndex = 0
 
int songIndex = 0
 
string input = ""
 
int albumsIndex = 0
 
mutex mtx
 

Detailed Description

Holds the state for searching artists and songs.

This structure stores the current search state, including search queries and indices for navigating through the search results for artists and songs.

Member Data Documentation

◆ albumsIndex

int SearchState::albumsIndex = 0

Index for the current album search result

◆ artistIndex

int SearchState::artistIndex = 0

Index for the current artist search result

◆ ArtistSearchTrie

Trie SearchState::ArtistSearchTrie

Trie for searching artists

◆ input

string SearchState::input = ""

The current search input

◆ mtx

mutex SearchState::mtx

Mutex for synchronizing access to search state

◆ songIndex

int SearchState::songIndex = 0

Index for the current song search result

◆ SongSearchTrie

Trie SearchState::SongSearchTrie

Trie for searching songs


The documentation for this struct was generated from the following file: