digiKam
maintenancedata.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 : 2017-02-20
7  * Description : Synchronized container for maintenance data.
8  *
9  * Copyright (C) 2017-2018 by Mario Frank <mario dot frank at uni minus potsdam dot de>
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_MAINTENANCE_DATA_H
25 #define DIGIKAM_MAINTENANCE_DATA_H
26 
27 // Qt includes
28 
29 #include <QList>
30 
31 // Local includes
32 
33 #include "iteminfo.h"
34 #include "identity.h"
35 
36 namespace Digikam
37 {
38 
39 class ImageQualitySettings;
40 
42 {
43 public:
44 
45  explicit MaintenanceData();
47 
48  void setImageIds(const QList<qlonglong>& ids);
49  void setThumbnailIds(const QList<int>& ids);
50  void setImagePaths(const QList<QString>& paths);
51  void setItemInfos(const QList<ItemInfo>& infos);
52  void setIdentities(const QList<Identity>& identities);
53  void setSimilarityImageIds(const QList<qlonglong>& ids);
54 
55  void setRebuildAllFingerprints(bool b);
56 
57  qlonglong getImageId() const;
58  int getThumbnailId() const;
59  QString getImagePath() const;
60  ItemInfo getItemInfo() const;
61  Identity getIdentity() const;
62  qlonglong getSimilarityImageId() const;
63 
64  bool getRebuildAllFingerprints() const;
65 
66 private:
67 
68  // Disable
69  MaintenanceData(const MaintenanceData&) = delete;
70  MaintenanceData& operator=(const MaintenanceData&) = delete;
71 
72 private:
73 
74  class Private;
75  Private* const d;
76 };
77 
78 } // namespace Digikam
79 
80 #endif // DIGIKAM_MAINTENANCE_DATA_H
Definition: identity.h:41
Definition: iteminfo.h:78
Definition: maintenancedata.h:42
void setThumbnailIds(const QList< int > &ids)
Definition: maintenancedata.cpp:73
Identity getIdentity() const
Definition: maintenancedata.cpp:163
void setImagePaths(const QList< QString > &paths)
Definition: maintenancedata.cpp:78
MaintenanceData()
Definition: maintenancedata.cpp:58
bool getRebuildAllFingerprints() const
Definition: maintenancedata.cpp:193
void setRebuildAllFingerprints(bool b)
Definition: maintenancedata.cpp:98
qlonglong getSimilarityImageId() const
Definition: maintenancedata.cpp:178
~MaintenanceData()
Definition: maintenancedata.cpp:63
void setSimilarityImageIds(const QList< qlonglong > &ids)
Definition: maintenancedata.cpp:88
void setIdentities(const QList< Identity > &identities)
Definition: maintenancedata.cpp:93
qlonglong getImageId() const
Definition: maintenancedata.cpp:103
void setImageIds(const QList< qlonglong > &ids)
Definition: maintenancedata.cpp:68
ItemInfo getItemInfo() const
Definition: maintenancedata.cpp:148
QString getImagePath() const
Definition: maintenancedata.cpp:133
int getThumbnailId() const
Definition: maintenancedata.cpp:118
void setItemInfos(const QList< ItemInfo > &infos)
Definition: maintenancedata.cpp:83
Definition: datefolderview.cpp:43