File indexing completed on 2025-01-05 03:59:46

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2006-21-07
0007  * Description : Camera item download settings container.
0008  *
0009  * SPDX-FileCopyrightText: 2006-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_DOWNLOAD_SETTINGS_H
0016 #define DIGIKAM_DOWNLOAD_SETTINGS_H
0017 
0018 // Qt includes
0019 
0020 #include <QString>
0021 #include <QDateTime>
0022 
0023 // Local includes
0024 
0025 #include "digikam_globals.h"
0026 #include "dngwriter.h"
0027 
0028 namespace Digikam
0029 {
0030 
0031 class DownloadSettings
0032 {
0033 
0034 public:
0035 
0036     DownloadSettings()
0037       : autoRotate  (true),
0038         fixDateTime (false),
0039         convertJpeg (false),
0040         documentName(false),
0041         backupRaw   (false),
0042         convertDng  (false),
0043         compressDng (true),
0044         previewMode (DNGWriter::FULL_SIZE),
0045         rating      (NoRating),
0046         pickLabel   (NoPickLabel),
0047         colorLabel  (NoColorLabel)
0048     {
0049     };
0050 
0051     ~DownloadSettings()
0052     {
0053     };
0054 
0055 public:
0056 
0057     /// Settings from AdvancedSettings widget
0058     bool       autoRotate;
0059     bool       fixDateTime;
0060     bool       convertJpeg;
0061     bool       documentName;
0062 
0063     QDateTime  newDateTime;
0064 
0065     /// New format to convert Jpeg files.
0066     QString    losslessFormat;
0067 
0068     /// Metadata template title.
0069     QString    templateTitle;
0070 
0071     /// File path to download
0072     QString    folder;
0073     QString    file;
0074     QString    dest;
0075 
0076     /// Mime type from file to download
0077     QString    mime;
0078 
0079     /// Settings from DNG convert widget
0080     bool       backupRaw;
0081     bool       convertDng;
0082     bool       compressDng;
0083     int        previewMode;
0084 
0085     /// Settings from ScriptingSettings widget
0086     QString    script;
0087 
0088     /// Pre-rating of each camera file
0089     int        rating;
0090 
0091     /// Pre-pickLabel of each camera file
0092     int        pickLabel;
0093 
0094     /// Pre-colorLabel of each camera file
0095     int        colorLabel;
0096 
0097     /// Pre-tags of each camera file
0098     QList<int> tagIds;
0099 };
0100 
0101 typedef QList<DownloadSettings> DownloadSettingsList;
0102 
0103 } // namespace Digikam
0104 
0105 #endif // DIGIKAM_DOWNLOAD_SETTINGS_H