aboutsummaryrefslogtreecommitdiff
path: root/plugins/FileManager.hpp
blob: f13184b8deaa821f3a7786498ac61bf94f0dc0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "Plugin.hpp"
#include <filesystem>

namespace QuickMedia {
    class FileManager : public Plugin {
    public:
        FileManager();
        virtual ~FileManager() = default;
        PluginResult get_files_in_directory(BodyItems &result_items);
        bool set_current_directory(const std::string &path);
        bool set_child_directory(const std::string &filename);
        const std::filesystem::path& get_current_dir() const;

        bool search_suggestions_has_thumbnails() const override { return true; }
        bool search_results_has_thumbnails() const override { return true; }
        int get_search_delay() const override { return 50; }
        Page get_page_after_search() const override { return Page::FILE_MANAGER; }
    private:
        std::filesystem::path current_dir;
    };
}