X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverterCache.h;h=665f32d285401425b877a82bd2f0ff5c1c690e93;hb=ba62665f966508db5a4de6864f4aa7374c5a5356;hp=162f0f3be5fef3ffeb5895c80577603a0088d914;hpb=5ed606f9c5ae2ee31cd665e7d4408f858b6ef9f2;p=lyx.git diff --git a/src/ConverterCache.h b/src/ConverterCache.h index 162f0f3be5..665f32d285 100644 --- a/src/ConverterCache.h +++ b/src/ConverterCache.h @@ -29,6 +29,8 @@ namespace lyx { +namespace support { class FileName; } + /** * Cache for converted files. The cache works as follows: * @@ -60,27 +62,27 @@ public: * Add \c converted_file (\c orig_from converted to \c to_format) to * the cache if it is not already in or not up to date. */ - void add(std::string const & orig_from, std::string const & to_format, - std::string const & converted_file) const; + void add(support::FileName const & orig_from, std::string const & to_format, + support::FileName const & converted_file) const; /// Remove a file from the cache. - void remove(std::string const & orig_from, + void remove(support::FileName const & orig_from, std::string const & to_format) const; /** * Returns \c true if \c orig_from converted to \c to_format is in * the cache and up to date. */ - bool inCache(std::string const & orig_from, + bool inCache(support::FileName const & orig_from, std::string const & to_format) const; /// Get the name of the cached file - std::string const cacheName(std::string const & orig_from, - std::string const & to_format) const; + support::FileName const & cacheName(support::FileName const & orig_from, + std::string const & to_format) const; /// Copy the file from the cache to \p dest - bool copy(std::string const & orig_from, std::string const & to_format, - std::string const & dest) const; + bool copy(support::FileName const & orig_from, std::string const & to_format, + support::FileName const & dest) const; private: /** Make the c-tor, d-tor private so we can control how many objects