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 #include "filetouchjob.h"
0010 #include "driveservice.h"
0011 
0012 using namespace KGAPI2;
0013 using namespace KGAPI2::Drive;
0014 
0015 class Q_DECL_HIDDEN FileTouchJob::Private
0016 {
0017 };
0018 
0019 FileTouchJob::FileTouchJob(const QString &fileId, const AccountPtr &account, QObject *parent)
0020     : FileAbstractModifyJob(fileId, account, parent)
0021     , d(new Private)
0022 {
0023 }
0024 
0025 FileTouchJob::FileTouchJob(const QStringList &filesIds, const AccountPtr &account, QObject *parent)
0026     : FileAbstractModifyJob(filesIds, account, parent)
0027     , d(new Private)
0028 {
0029 }
0030 
0031 FileTouchJob::FileTouchJob(const FilePtr &file, const AccountPtr &account, QObject *parent)
0032     : FileAbstractModifyJob(file, account, parent)
0033     , d(new Private)
0034 {
0035 }
0036 
0037 FileTouchJob::FileTouchJob(const FilesList &files, const AccountPtr &account, QObject *parent)
0038     : FileAbstractModifyJob(files, account, parent)
0039     , d(new Private)
0040 {
0041 }
0042 
0043 FileTouchJob::~FileTouchJob()
0044 {
0045     delete d;
0046 }
0047 
0048 QUrl FileTouchJob::url(const QString &fileId)
0049 {
0050     return DriveService::touchFileUrl(fileId);
0051 }
0052 
0053 #include "moc_filetouchjob.cpp"