| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
#pragma once |
| 16 |
|
| 17 |
|
| 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 |
|
| 55 |
MetadataHubMngr(); |
| 56 |
explicit MetadataHubMngr(QObject*); |
| 57 |
|
| 58 |
class Private; |
| 59 |
Private* const d = nullptr; |
| 60 |
}; |
| 61 |
|
| 62 |
} |