digiKam
metadatahubmngr.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 : 2015-08-21
7  * Description : metadatahub manager
8  *
9  * Copyright (C) 2015 by Veaceslav Munteanu <veaceslav dot munteanu90 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_METADATA_HUB_MNGR_H
25 #define DIGIKAM_METADATA_HUB_MNGR_H
26 
27 // Qt includes
28 
29 #include <QPointer>
30 
31 namespace Digikam
32 {
33 
34 class ItemInfo;
35 
36 class MetadataHubMngr : public QObject
37 {
38  Q_OBJECT
39 
40 public:
41 
42  static MetadataHubMngr* instance();
43  ~MetadataHubMngr() override;
44 
45  static QPointer<MetadataHubMngr> internalPtr;
46  static bool isCreated();
47 
48  void addPending(const ItemInfo& info);
49  void requestShutDown();
50 
51 Q_SIGNALS:
52 
53  void signalPendingMetadata(int numbers);
54 
55 public Q_SLOTS:
56 
57  void slotApplyPending();
58 
59 private:
60 
61  // Disable
63  explicit MetadataHubMngr(QObject*);
64 
65  class Private;
66  Private* const d;
67 };
68 
69 } // namespace Digikam
70 
71 #endif // DIGIKAM_METADATA_HUB_MNGR_H
Definition: iteminfo.h:78
Definition: metadatahubmngr.h:37
static QPointer< MetadataHubMngr > internalPtr
Definition: metadatahubmngr.h:45
void requestShutDown()
Definition: metadatahubmngr.cpp:132
static MetadataHubMngr * instance()
Definition: metadatahubmngr.cpp:70
void addPending(const ItemInfo &info)
Definition: metadatahubmngr.cpp:85
static bool isCreated()
Definition: metadatahubmngr.cpp:80
void signalPendingMetadata(int numbers)
void slotApplyPending()
Definition: metadatahubmngr.cpp:97
~MetadataHubMngr() override
Definition: metadatahubmngr.cpp:65
Definition: datefolderview.cpp:43