File indexing completed on 2025-01-05 04:29:55
0001 /** 0002 * SPDX-FileCopyrightText: 2021 Bart De Vries <bart@mogwai.be> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <KJob> 0010 0011 class StorageMoveJob : public KJob 0012 { 0013 public: 0014 explicit StorageMoveJob(const QString &from, const QString &to, QStringList &list, QObject *parent = nullptr); 0015 0016 void start() override; 0017 bool doKill() override; 0018 0019 private: 0020 void moveFiles(); 0021 0022 QString m_from; 0023 QString m_to; 0024 QStringList m_list; 0025 bool m_abort = false; 0026 };