digiKam
Loading...
Searching...
No Matches
baloowrap.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 : 2014-08-05
7 * Description : Plasma file indexer interface.
8 *
9 * SPDX-FileCopyrightText: 2014 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 <QStringList>
21#include <QPointer>
22
23// Local includes
24
25#include "digikam_export.h"
26
27class QUrl;
28
29namespace Digikam
30{
31
32class ItemInfo;
33
35{
36public:
37
38 BalooInfo() = default;
39
40 QStringList tags;
41 QString comment;
42 int rating = -1;
43};
44
55class DIGIKAM_EXPORT BalooWrap : public QObject
56{
57 Q_OBJECT
58
59public:
60
61 BalooWrap();
62 ~BalooWrap() override;
63
67 static QPointer<BalooWrap> internalPtr;
68 static BalooWrap* instance();
69 static bool isCreated();
70
76 void setSemanticInfo(const QUrl& url, const BalooInfo& bInfo);
77
84 BalooInfo getSemanticInfo(const QUrl& url) const;
85
86 void setSyncToBaloo(bool value);
87
88 bool getSyncToBaloo() const;
89
90 void setSyncToDigikam(bool value);
91
92 bool getSyncToDigikam() const;
93
94private:
95
96 // Disable
97 explicit BalooWrap(QObject*) = delete;
98
99private:
100
101 class Private;
102 Private* const d = nullptr;
103};
104
105} // namespace Digikam
Definition baloowrap.h:35
QStringList tags
Definition baloowrap.h:40
int rating
Definition baloowrap.h:42
QString comment
Definition baloowrap.h:41
The BalooWrap class is a singleton class which offer functionality for reading and writing image comm...
Definition baloowrap.h:56
static QPointer< BalooWrap > internalPtr
internalPtr - singleton implementation
Definition baloowrap.h:67
qulonglong value
Definition itemviewutilities.cpp:585
Definition datefolderview.cpp:34