digiKam
batchtoolutils.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 : 2008-11-24
7  * Description : Batch Tool utils.
8  *
9  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles 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_BQM_BATCH_TOOL_UTILS_H
25 #define DIGIKAM_BQM_BATCH_TOOL_UTILS_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QVariant>
31 #include <QMap>
32 #include <QList>
33 #include <QUrl>
34 
35 // Local includes
36 
37 #include "batchtool.h"
38 
39 namespace Digikam
40 {
41 
46 
47 // -------------------------------------------------------------------------------------------------------------
48 
53 {
54 public:
55 
56  explicit BatchToolSet();
57  ~BatchToolSet() = default;
58 
62  bool operator==(const BatchToolSet& set) const;
63 
65  int index;
66  int version;
67  QString name;
69 
72 };
73 
75 QDebug operator<<(QDebug dbg, const BatchToolSet& s);
76 
77 // -------------------------------------------------------------------------------------------------------------
78 
83 
84 // -------------------------------------------------------------------------------------------------------------
85 
91 {
92 public:
93 
94  explicit AssignedBatchTools() = default;
95  ~AssignedBatchTools() = default;
96 
97  QString targetSuffix(bool* const extSet = nullptr) const;
98 
99 public:
100 
101  QString m_destFileName;
102  QUrl m_itemUrl;
104 };
105 
106 } // namespace Digikam
107 
108 #endif // DIGIKAM_BQM_BATCH_TOOL_UTILS_H
Definition: batchtoolutils.h:91
QString m_destFileName
Definition: batchtoolutils.h:101
BatchSetList m_toolsList
Definition: batchtoolutils.h:103
QString targetSuffix(bool *const extSet=nullptr) const
Definition: batchtoolutils.cpp:69
QUrl m_itemUrl
Definition: batchtoolutils.h:102
Definition: batchtoolutils.h:53
int index
Tool identifier data. Index is tool ID from assigned list.
Definition: batchtoolutils.h:65
BatchToolSettings settings
Settings hosted in this container.
Definition: batchtoolutils.h:71
bool operator==(const BatchToolSet &set) const
Definition: batchtoolutils.cpp:45
int version
Definition: batchtoolutils.h:66
QString name
Definition: batchtoolutils.h:67
BatchToolSet()
Definition: batchtoolutils.cpp:38
BatchTool::BatchToolGroup group
Definition: batchtoolutils.h:68
BatchToolGroup
Definition: batchtool.h:62
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
QList< BatchToolSet > BatchSetList
Definition: batchtoolutils.h:82
QMap< QString, QVariant > BatchToolSettings
Definition: batchtool.h:48
QList< BatchTool * > BatchToolsList
Definition: batchtoolutils.h:45