From 7f6dec0676123629d2cdf9da7640c1e17566ed3d Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 22 Nov 2018 09:31:10 +0900 Subject: Generalise and expose cacheLocation() --- lib/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/util.h') diff --git a/lib/util.h b/lib/util.h index 13eec143..88c756a1 100644 --- a/lib/util.h +++ b/lib/util.h @@ -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 -- cgit v1.2.3