File indexing completed on 2025-04-27 03:58:06

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2006-01-16
0007  * Description : image file IO threaded interface.
0008  *
0009  * SPDX-FileCopyrightText: 2006-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_SHARED_LOAD_SAVE_THREAD_H
0016 #define DIGIKAM_SHARED_LOAD_SAVE_THREAD_H
0017 
0018 // Local includes
0019 
0020 #include "managedloadsavethread.h"
0021 
0022 namespace Digikam
0023 {
0024 
0025 class DIGIKAM_EXPORT SharedLoadSaveThread : public ManagedLoadSaveThread
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     explicit SharedLoadSaveThread(QObject* const parent = nullptr);
0032     ~SharedLoadSaveThread() override;
0033 
0034     void load(const LoadingDescription& description,
0035               AccessMode mode,
0036               LoadingPolicy policy = LoadingPolicyAppend);
0037 
0038 private:
0039 
0040     // Disable
0041     SharedLoadSaveThread(const SharedLoadSaveThread&)            = delete;
0042     SharedLoadSaveThread& operator=(const SharedLoadSaveThread&) = delete;
0043 };
0044 
0045 } // namespace Digikam
0046 
0047 #endif // DIGIKAM_SHARED_LOAD_SAVE_THREAD_H