File indexing completed on 2025-01-19 03:52:56
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2020-07-05 0007 * Description : File copy settings container. 0008 * 0009 * SPDX-FileCopyrightText: 2020 by Maik Qualmann <metzpinguin at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_FC_CONTAINER_H 0016 #define DIGIKAM_FC_CONTAINER_H 0017 0018 // Qt includes 0019 0020 #include <QUrl> 0021 0022 // Local includes 0023 0024 #include "dinfointerface.h" 0025 0026 using namespace Digikam; 0027 0028 namespace DigikamGenericFileCopyPlugin 0029 { 0030 0031 class FCContainer 0032 { 0033 0034 public: 0035 0036 enum FileCopyType 0037 { 0038 CopyFile = 0, 0039 FullSymLink, 0040 RelativeSymLink 0041 }; 0042 0043 enum ImageFormat 0044 { 0045 JPEG = 0, 0046 PNG 0047 }; 0048 0049 public: 0050 0051 FCContainer() 0052 : iface (nullptr), 0053 behavior (CopyFile), 0054 imageFormat (JPEG), 0055 imageResize (1024), 0056 imageCompression (75), 0057 sidecars (false), 0058 writeMetadataToFile (false), 0059 overwrite (false), 0060 albumPath (false), 0061 removeMetadata (false), 0062 changeImageProperties(false) 0063 { 0064 }; 0065 0066 ~FCContainer() 0067 { 0068 }; 0069 0070 public: 0071 0072 0073 DInfoInterface* iface; 0074 0075 QUrl destUrl; 0076 0077 int behavior; 0078 int imageFormat; 0079 int imageResize; 0080 int imageCompression; 0081 0082 bool sidecars; 0083 bool writeMetadataToFile; 0084 bool overwrite; 0085 bool albumPath; 0086 bool removeMetadata; 0087 bool changeImageProperties; 0088 }; 0089 0090 } // namespace DigikamGenericFileCopyPlugin 0091 0092 #endif // DIGIKAM_FC_CONTAINER_H