From cd7f6d52ddf1304b9bacf1b04d174e6c937665a5 Mon Sep 17 00:00:00 2001 From: James Graham Date: Wed, 3 May 2023 20:23:19 +0100 Subject: [PATCH] document urlhelper --- src/urlhelper.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/urlhelper.h b/src/urlhelper.h index fd67847fb..31d4431e1 100644 --- a/src/urlhelper.h +++ b/src/urlhelper.h @@ -6,10 +6,22 @@ #include #include +/** + * @class UrlHelper + * + * A class to help manage URLs. + */ class UrlHelper : public QObject { Q_OBJECT public: + /** + * @brief Open the given URL in an appropriate app. + */ Q_INVOKABLE void openUrl(const QUrl &url); + + /** + * @brief Copy the given URL to the given location. + */ Q_INVOKABLE void copyTo(const QUrl &origin, const QUrl &destination); };