Debian Codegraph @

core/libs/fileactionmanager/metadatahubmngr.h

raw symbols SCIP
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2015-08-21
7 * Description : metadatahub manager
8 *
9 * SPDX-FileCopyrightText: 2015 by Veaceslav Munteanu <veaceslav dot munteanu90 at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15 #pragma once
16
17 // Qt includes
18
19 #include <QObject>
20 #include <QPointer>
21
22 namespace Digikam
23 {
24
25 class ItemInfo;
26
27 class MetadataHubMngr : public QObject
28 {
29 Q_OBJECT
30
31 public:
32
33 static MetadataHubMngr* instance();
34 ~MetadataHubMngr() override;
35
36 static QPointer<MetadataHubMngr> internalPtr;
37 static bool isCreated();
38
39 void addPendingIds(const QList<qlonglong>& imageIds);
40 void addPending(const ItemInfo& info);
41 void requestShutDown();
42
43 Q_SIGNALS:
44
45 void signalPendingMetadata(int numbers);
46
47 public Q_SLOTS:
48
49 void slotRemovePending(const ItemInfo& info);
50 void slotApplyPending();
51
52 private:
53
54 /// @note disabled
55 MetadataHubMngr();
56 explicit MetadataHubMngr(QObject*);
57
58 class Private;
59 Private* const d = nullptr;
60 };
61
62 } // namespace Digikam