aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-22 09:31:10 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-22 16:53:57 +0900
commit7f6dec0676123629d2cdf9da7640c1e17566ed3d (patch)
treef404d3e572651146c7f30aa2cb2ab1d8f696d494 /lib/util.h
parentf9dccac588f2aa1c809018c0c5eb606a1470d2c5 (diff)
downloadlibquotient-7f6dec0676123629d2cdf9da7640c1e17566ed3d.tar.gz
libquotient-7f6dec0676123629d2cdf9da7640c1e17566ed3d.zip
Generalise and expose cacheLocation()
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h6
1 files changed, 6 insertions, 0 deletions
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