diff options
Diffstat (limited to 'src/common/utility.h')
-rw-r--r-- | src/common/utility.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/utility.h b/src/common/utility.h index ea715f5ef..753b674d6 100644 --- a/src/common/utility.h +++ b/src/common/utility.h @@ -358,6 +358,11 @@ OCSYNC_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcUtility) Q_UNREACHABLE(); } + /** + * Replace all occurances of @{} values in template with the values from values + */ + OCSYNC_EXPORT QString renderTemplate(QString templ, const QMap<QString, QString> &values); + #ifdef Q_OS_LINUX OCSYNC_EXPORT QString appImageLocation(); OCSYNC_EXPORT bool runningInAppImage(); |