summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cutils.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 17:56:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 17:56:46 +1000
commitb5d812586733353000e741bd4448f217e8ec1224 (patch)
tree99e8966c374538ce71e941cdeeaf76893cb882e6 /plugin/src/Caelestia/cutils.hpp
parentplugin: saveItem ensure parent dir (diff)
downloadcaelestia-shell-b5d812586733353000e741bd4448f217e8ec1224.tar.gz
caelestia-shell-b5d812586733353000e741bd4448f217e8ec1224.tar.bz2
caelestia-shell-b5d812586733353000e741bd4448f217e8ec1224.zip
internal: better copy
Diffstat (limited to 'plugin/src/Caelestia/cutils.hpp')
-rw-r--r--plugin/src/Caelestia/cutils.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/src/Caelestia/cutils.hpp b/plugin/src/Caelestia/cutils.hpp
index e50cab0..e1319a4 100644
--- a/plugin/src/Caelestia/cutils.hpp
+++ b/plugin/src/Caelestia/cutils.hpp
@@ -15,4 +15,7 @@ public:
Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, QJSValue onSaved, QJSValue onFailed) const;
Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect, QJSValue onSaved) const;
Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect, QJSValue onSaved, QJSValue onFailed) const;
+
+ Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target) const;
+ Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target, bool overwrite) const;
};