diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-22 09:31:10 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-22 16:53:57 +0900 |
commit | 7f6dec0676123629d2cdf9da7640c1e17566ed3d (patch) | |
tree | f404d3e572651146c7f30aa2cb2ab1d8f696d494 /lib/util.h | |
parent | f9dccac588f2aa1c809018c0c5eb606a1470d2c5 (diff) | |
download | libquotient-7f6dec0676123629d2cdf9da7640c1e17566ed3d.tar.gz libquotient-7f6dec0676123629d2cdf9da7640c1e17566ed3d.zip |
Generalise and expose cacheLocation()
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -240,5 +240,11 @@ namespace QMatrixClient * This includes HTML escaping of <,>,",& and URLs linkification. */ QString prettyPrint(const QString& plainText); + + /** Return a path to cache directory after making sure that it exists + * The returned path has a trailing slash, clients don't need to append it. + * \param dir path to cache directory relative to the standard cache path + */ + QString cacheLocation(const QString& dirName); } // namespace QMatrixClient |