bindings/cpp/desktop_native.hpp¶
C++98 API source. Preserve the bindings/cpp/ layout when downloading multiple files.
Source files · Download desktop_native.hpp
#ifndef GASPARDOS_DESKTOP_NATIVE_HPP
#define GASPARDOS_DESKTOP_NATIVE_HPP
#include "file_explorer.hpp"
#include "gui.hpp"
namespace gaspardos
{
namespace desktop
{
class NativeFileAccess : public FileAccess
{
public:
std::vector<FileEntry> roots();
int64_t stat(const std::string& path, FileEntry& entry);
int64_t openDirectory(const std::string& path);
int64_t next(int64_t handle, FileEntry& entry);
int64_t close(int64_t handle);
int64_t mkdir(const std::string& path);
int64_t read(const std::string& path, std::string& data, std::size_t limit);
int64_t create(const std::string& path, const std::string& data);
int64_t rename(const std::string& from, const std::string& to);
int64_t remove(const std::string& path);
};
} // namespace desktop
} // namespace gaspardos
#endif