Toob Player UI

This commit is contained in:
Robin E. R. Davies
2025-06-07 21:52:23 -04:00
parent 82f94cb152
commit 6ea45f46df
29 changed files with 1860 additions and 319 deletions
+3
View File
@@ -21,6 +21,8 @@
#include <string>
#include <cstdint>
#include <chrono>
#include <filesystem>
namespace pipedal {
@@ -29,6 +31,7 @@ class HtmlHelper {
public:
static std::string timeToHttpDate();
static std::string timeToHttpDate(time_t time);
static std::string timeToHttpDate(std::filesystem::file_time_type time);
static std::string encode_url_segment(const char*pStart, const char*pEnd, bool isQuerySegment = false);
+4 -2
View File
@@ -71,6 +71,7 @@ namespace pipedal
return contains(vector, std::string(value));
}
bool HasWritePermissions(const std::filesystem::path &path);
class NoCopy
{
public:
@@ -114,11 +115,12 @@ namespace pipedal
return true;
}
// C locale to lower. Only does 'A'-'Z'.
std::string ToLower(const std::string&value);
std::filesystem::path MakeRelativePath(const std::filesystem::path &path, const std::filesystem::path&parentPath);
bool IsSubdirectory(const std::filesystem::path &path, const std::filesystem::path &basePath);
std::string ToLower(const std::string&value);
}