File indexing completed on 2024-05-12 05:22:20
0001 /* 0002 * This file is part of LibKGAPI library 0003 * 0004 * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #pragma once 0010 0011 #include "deletejob.h" 0012 #include "kgapidrive_export.h" 0013 0014 #include <QStringList> 0015 0016 namespace KGAPI2 0017 { 0018 0019 namespace Drive 0020 { 0021 0022 class KGAPIDRIVE_EXPORT FileDeleteJob : public KGAPI2::DeleteJob 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 explicit FileDeleteJob(const QString &fileId, const AccountPtr &account, QObject *parent = nullptr); 0028 explicit FileDeleteJob(const QStringList &filesIds, const AccountPtr &account, QObject *parent = nullptr); 0029 explicit FileDeleteJob(const FilePtr &file, const AccountPtr &account, QObject *parent = nullptr); 0030 explicit FileDeleteJob(const FilesList &files, const AccountPtr &account, QObject *parent = nullptr); 0031 ~FileDeleteJob() override; 0032 0033 protected: 0034 void start() override; 0035 0036 private: 0037 class Private; 0038 Private *const d; 0039 friend class Private; 0040 }; 0041 0042 } // namespace Drive 0043 0044 } // namespace KGAPI2