File indexing completed on 2025-03-09 03:58:50
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-02-21 0007 * Description : Queue common settings container. 0008 * 0009 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_BQM_QUEUE_SETTINGS_H 0016 #define DIGIKAM_BQM_QUEUE_SETTINGS_H 0017 0018 // Qt includes 0019 0020 #include <QUrl> 0021 0022 // Local includes 0023 0024 #include "iofilesettings.h" 0025 #include "drawdecodersettings.h" 0026 #include "filesaveconflictbox.h" 0027 0028 namespace Digikam 0029 { 0030 0031 /** 0032 * This container host all common settings used by a queue, not including assigned batch tools 0033 */ 0034 class QueueSettings 0035 { 0036 0037 public: 0038 0039 enum RenamingRule 0040 { 0041 USEORIGINAL = 0, 0042 CUSTOMIZE 0043 }; 0044 0045 enum RawLoadingRule 0046 { 0047 USEEMBEDEDJPEG = 0, 0048 DEMOSAICING 0049 }; 0050 0051 public: 0052 0053 explicit QueueSettings(); 0054 ~QueueSettings(); 0055 0056 public: 0057 0058 bool useMultiCoreCPU; 0059 0060 bool saveAsNewVersion; 0061 0062 /// Setting managed through Metadata control panel. 0063 bool exifSetOrientation; 0064 0065 /// If true, original file dir will be used to process queue items. 0066 bool useOrgAlbum; 0067 0068 QString renamingParser; 0069 0070 QUrl workingUrl; 0071 0072 FileSaveConflictBox::ConflictRule conflictRule; 0073 RenamingRule renamingRule; 0074 RawLoadingRule rawLoadingRule; 0075 0076 DRawDecoderSettings rawDecodingSettings; 0077 0078 IOFileSettings ioFileSettings; 0079 }; 0080 0081 } // namespace Digikam 0082 0083 #endif // DIGIKAM_BQM_QUEUE_SETTINGS_H