aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/Cache.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/dchat/Cache.hpp')
-rw-r--r--include/dchat/Cache.hpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/include/dchat/Cache.hpp b/include/dchat/Cache.hpp
index 4d37b54..8d3f28e 100644
--- a/include/dchat/Cache.hpp
+++ b/include/dchat/Cache.hpp
@@ -59,12 +59,11 @@ namespace dchat
i64 lastAccessed;
};
- using LoadBindsCallbackFunc = std::function<void(const std::string &key, const std::string &value)>;
// @fileContent contains data allocated with new[], deallocate it with delete[] fileContent.data;
// Returned gif should be allocated with @new
using CreateGifFunc = std::function<Gif*(StringView fileContent)>;
using CreateStaticImageFunc = std::function<StaticImage*(const boost::filesystem::path &filepath)>;
-
+
class Cache
{
DISABLE_COPY(Cache)
@@ -74,16 +73,6 @@ namespace dchat
Cache(CreateGifFunc createGifFunc, CreateStaticImageFunc createStaticImageFunc);
~Cache();
- // Creates directory if it doesn't exist (recursively). Throws boost exception on failure
- static boost::filesystem::path getDchatDir();
-
- // Creates directory if it doesn't exist (recursively). Throws boost exception on failure
- static boost::filesystem::path getImagesDir();
-
- // @callbackFunc can't be nullptr
- static void loadBindsFromFile(LoadBindsCallbackFunc callbackFunc);
- static void replaceBindsInFile(const std::unordered_map<std::string, std::string> &binds);
-
// Get cached content or download it.
// Default download file limit is 12MB
// Returns ContentByUrlResult describing texture status.