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 "fileabstractmodifyjob.h"
0012 #include "kgapidrive_export.h"
0013 
0014 namespace KGAPI2
0015 {
0016 
0017 namespace Drive
0018 {
0019 
0020 class KGAPIDRIVE_EXPORT FileTouchJob : public KGAPI2::Drive::FileAbstractModifyJob
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit FileTouchJob(const QString &fileId, const AccountPtr &account, QObject *parent = nullptr);
0026     explicit FileTouchJob(const QStringList &filesIds, const AccountPtr &account, QObject *parent = nullptr);
0027     explicit FileTouchJob(const FilePtr &file, const AccountPtr &account, QObject *parent = nullptr);
0028     explicit FileTouchJob(const FilesList &files, const AccountPtr &account, QObject *parent = nullptr);
0029     ~FileTouchJob() override;
0030 
0031 protected:
0032     [[nodiscard]] QUrl url(const QString &fileId) override;
0033 
0034 private:
0035     class Private;
0036     Private *const d;
0037     friend class Private;
0038 };
0039 
0040 } // namespace Drive
0041 
0042 } // namespace KGAPI2