Improved support for loading files, and support for file drop

This commit is contained in:
brunoherbelin
2020-05-12 21:27:21 +02:00
parent 5771196515
commit 0e1cbd33f2
6 changed files with 38 additions and 25 deletions

View File

@@ -24,15 +24,14 @@ namespace SystemToolkit
// builds the OS dependent complete file name for a settings file
std::string settings_prepend_path(const std::string& basefilename);
// extract the base file name from a full URI (e.g. file:://home/me/toto.mpg -> toto)
// extract the base filename from a full path / URI (e.g. file:://home/me/toto.mpg -> toto)
std::string base_filename(const std::string& filename);
// extract the path of a file from a full URI (e.g. file:://home/me/toto.mpg -> file:://home/me/)
// extract the path of a filename from a full URI (e.g. file:://home/me/toto.mpg -> file:://home/me/)
std::string path_filename(const std::string& filename);
std::string path_to_uri(const std::string& path);
std::string uri_to_path(const std::string& uri);
// extract the extension of a filename
std::string extension_filename(const std::string& filename);
// true of file exists
bool file_exists(const std::string& path);