document urlhelper
This commit is contained in:
@@ -6,10 +6,22 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @class UrlHelper
|
||||||
|
*
|
||||||
|
* A class to help manage URLs.
|
||||||
|
*/
|
||||||
class UrlHelper : public QObject
|
class UrlHelper : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @brief Open the given URL in an appropriate app.
|
||||||
|
*/
|
||||||
Q_INVOKABLE void openUrl(const QUrl &url);
|
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);
|
Q_INVOKABLE void copyTo(const QUrl &origin, const QUrl &destination);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user