LibreWeb-Browser/src/file.h

22 lines
388 B
C
Raw Normal View History

2020-12-04 17:51:40 -08:00
#ifndef FILE_H
#define FILE_H
#include "network.h"
#include <string>
/**
* \class File
2020-12-14 10:40:08 -08:00
* \brief Fetch markdown file from disk or IPFS network
2020-12-04 17:51:40 -08:00
*/
class File
{
public:
2020-12-14 10:40:08 -08:00
File();
2020-12-04 17:51:40 -08:00
2020-12-14 10:40:08 -08:00
std::string const read(const std::string& path); /*!< Read file from disk */
std::string const fetch(const std::string& path); /*!< Fetch file from IPFS network */
2020-12-04 17:51:40 -08:00
private:
2020-12-14 10:40:08 -08:00
Network network;
2020-12-04 17:51:40 -08:00
};
#endif