summaryrefslogtreecommitdiff
path: root/src/tangara/lua/file_iterator.hpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-07-30 04:36:48 +0000
committercooljqln <cooljqln@noreply.codeberg.org>2024-07-30 04:36:48 +0000
commitb34959917446ac5d47ddec7bb6d98a6397045558 (patch)
treebb71f4e85ed1d4979c508ffa1cb0a74ecba0ba54 /src/tangara/lua/file_iterator.hpp
parent64c8496a91a166e52b7d77a3189e2696720294b7 (diff)
downloadtangara-fw-b34959917446ac5d47ddec7bb6d98a6397045558.tar.gz
daniel/playlist-queue (#84)
Support for playlist files being opened along side the queue's own playlist. Playlists can be opened from the file browser, if the file ends in ".playlist" (will add support for .m3u as well eventually) Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/84 Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
Diffstat (limited to 'src/tangara/lua/file_iterator.hpp')
-rw-r--r--src/tangara/lua/file_iterator.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tangara/lua/file_iterator.hpp b/src/tangara/lua/file_iterator.hpp
index b803062c..c4071445 100644
--- a/src/tangara/lua/file_iterator.hpp
+++ b/src/tangara/lua/file_iterator.hpp
@@ -21,11 +21,12 @@ struct FileEntry {
bool isDirectory;
bool isTrack;
std::string filepath;
+ std::string name;
};
class FileIterator {
public:
- FileIterator(std::string filepath);
+ FileIterator(std::string filepath, bool showHidden);
~FileIterator();
auto value() const -> const std::optional<FileEntry>&;
@@ -35,6 +36,7 @@ class FileIterator {
private:
FF_DIR dir_;
std::string original_path_;
+ bool show_hidden_;
std::optional<FileEntry> current_;
int offset_;