15 #ifndef SHAKA_EMBEDDED_STORAGE_H_ 16 #define SHAKA_EMBEDDED_STORAGE_H_ 20 #include <type_traits> 21 #include <unordered_map> 26 #include "offline_externs.h" 55 virtual void OnProgress(
StoredContent content,
double progress);
120 const std::string& value);
121 template <
typename T,
typename =
typename std::enable_if<
122 std::is_arithmetic<T>::value>
::type>
126 return Configure(name_path, static_cast<double>(value));
132 return Configure(name_path, std::string(value));
169 const std::string& uri,
170 const std::unordered_map<std::string, std::string>& app_metadata);
174 std::unique_ptr<Impl> impl_;
179 #endif // SHAKA_EMBEDDED_STORAGE_H_
AsyncResults< bool > Configure(const std::string &name_path, T value)
#define SHAKA_NON_COPYABLE_TYPE(Type)
#define SHAKA_DECLARE_INTERFACE_METHODS(Type)
AsyncResults< bool > Configure(const std::string &name_path, const char *value)