digiKam
fccontainer.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2020-07-05
7  * Description : File copy settings container.
8  *
9  * Copyright (C) 2020 by Maik Qualmann <metzpinguin at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_FC_CONTAINER_H
25 #define DIGIKAM_FC_CONTAINER_H
26 
27 // Qt includes
28 
29 #include <QUrl>
30 
31 // Local includes
32 
33 #include "dinfointerface.h"
34 
35 using namespace Digikam;
36 
38 {
39 
41 {
42 
43 public:
44 
46  {
47  CopyFile = 0,
49  RelativeSymLink
50  };
51 
53  {
54  JPEG = 0,
55  PNG
56  };
57 
58 public:
59 
61  : iface (nullptr),
62  behavior (CopyFile),
63  imageFormat (JPEG),
64  imageResize (1024),
65  imageCompression (75),
66  overwrite (false),
67  albumPath (false),
68  removeMetadata (false),
69  changeImageProperties(false)
70  {
71  };
72 
74  {
75  };
76 
77 public:
78 
79 
81 
82  QUrl destUrl;
83 
84  int behavior;
88 
89  bool overwrite;
90  bool albumPath;
93 };
94 
95 } // namespace DigikamGenericFileCopyPlugin
96 
97 #endif // DIGIKAM_FC_CONTAINER_H
Definition: fccontainer.h:41
int behavior
Definition: fccontainer.h:84
~FCContainer()
Definition: fccontainer.h:73
bool albumPath
Definition: fccontainer.h:90
int imageFormat
Definition: fccontainer.h:85
int imageResize
Definition: fccontainer.h:86
bool overwrite
Definition: fccontainer.h:89
ImageFormat
Definition: fccontainer.h:53
FileCopyType
Definition: fccontainer.h:46
@ FullSymLink
Definition: fccontainer.h:48
bool changeImageProperties
Definition: fccontainer.h:92
DInfoInterface * iface
Definition: fccontainer.h:75
QUrl destUrl
Definition: fccontainer.h:82
int imageCompression
Definition: fccontainer.h:87
FCContainer()
Definition: fccontainer.h:60
bool removeMetadata
Definition: fccontainer.h:91
Definition: dinfointerface.h:56
Definition: fccontainer.h:38
@ JPEG
Definition: panoactions.h:62
QStringList imageFormat(QString::fromLatin1("jpg,png,gif,webp").split(QLatin1Char(',')))
@ PNG
Definition: thumbsdb.h:55
Definition: datefolderview.cpp:43