mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
25 lines
442 B
C++
25 lines
442 B
C++
#ifndef WEBUTILS_H
|
|
#define WEBUTILS_H
|
|
|
|
#include <QString>
|
|
|
|
class QUrl;
|
|
|
|
namespace vnotex
|
|
{
|
|
class WebUtils
|
|
{
|
|
public:
|
|
WebUtils() = delete;
|
|
|
|
// Remove query in the url (?xxx).
|
|
static QString purifyUrl(const QString &p_url);
|
|
|
|
static QString toDataUri(const QUrl &p_url, bool p_keepTitle);
|
|
|
|
static QString copyResource(const QUrl &p_url, const QString &p_folder);
|
|
};
|
|
}
|
|
|
|
#endif // WEBUTILS_H
|