File indexing completed on 2025-02-09 07:11:24

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2008-2009, 2011 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #include "abstractfilesystemsyncwithremotejob.hpp"
0010 #include "abstractfilesystemsyncwithremotejob_p.hpp"
0011 
0012 namespace Kasten {
0013 
0014 AbstractFileSystemSyncWithRemoteJob::AbstractFileSystemSyncWithRemoteJob(AbstractModelFileSystemSynchronizer* synchronizer,
0015                                                                          const QUrl& url, AbstractModelSynchronizer::ConnectOption option)
0016     : AbstractSyncWithRemoteJob(new AbstractFileSystemSyncWithRemoteJobPrivate(this, synchronizer, url, option))
0017 {}
0018 
0019 AbstractFileSystemSyncWithRemoteJob::~AbstractFileSystemSyncWithRemoteJob() = default;
0020 
0021 AbstractModelFileSystemSynchronizer* AbstractFileSystemSyncWithRemoteJob::synchronizer() const
0022 {
0023     Q_D(const AbstractFileSystemSyncWithRemoteJob);
0024 
0025     return d->synchronizer();
0026 }
0027 QFile* AbstractFileSystemSyncWithRemoteJob::file() const
0028 {
0029     Q_D(const AbstractFileSystemSyncWithRemoteJob);
0030 
0031     return d->file();
0032 }
0033 
0034 void AbstractFileSystemSyncWithRemoteJob::start()
0035 {
0036     Q_D(AbstractFileSystemSyncWithRemoteJob);
0037 
0038     d->start();
0039 }
0040 
0041 void AbstractFileSystemSyncWithRemoteJob::completeSync(bool success)
0042 {
0043     Q_D(AbstractFileSystemSyncWithRemoteJob);
0044 
0045     d->completeSync(success);
0046 }
0047 
0048 }
0049 
0050 // have to include this because of Q_PRIVATE_SLOT
0051 #include "moc_abstractfilesystemsyncwithremotejob.cpp"