Debian Codegraph @

core/libs/album/engine/albumparser.h

raw
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2012-01-24
7 * Description : album parser progress indicator
8 *
9 * SPDX-FileCopyrightText: 2012-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2019-2020 by Minh Nghia Duong <minhnghiaduong997 at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16 #pragma once
17
18 // Local includes
19
20 #include "iteminfo.h"
21 #include "progressmanager.h"
22
23 namespace Digikam
24 {
25 class Album;
26
27 class DIGIKAM_GUI_EXPORT AlbumParser : public ProgressItem
28 {
29 Q_OBJECT
30
31 public:
32
33 /**
34 * Constructor to work on image list
35 */
36 explicit AlbumParser(const ItemInfoList& infoList);
37
38 /**
39 * Constructor to work on recursive mode from album
40 */
41 explicit AlbumParser(Album* const album);
42
43 ~AlbumParser() override;
44
45 void run();
46
47 Q_SIGNALS:
48
49 void signalComplete(const QList<QUrl>&);
50
51 private Q_SLOTS:
52
53 void slotRun();
54 void slotCancel();
55 void slotParseItemInfoList(const ItemInfoList& list);
56
57 private:
58
59 /// @note disabled
60 AlbumParser(QObject*) = delete;
61
62 class Private;
63 Private* const d = nullptr;
64 };
65
66 } // namespace Digikam