digiKam
albumparser.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 : 2012-01-24
7  * Description : album parser progress indicator
8  *
9  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2019-2020 by Minh Nghia Duong <minhnghiaduong997 at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_ALBUM_PARSER_H
26 #define DIGIKAM_ALBUM_PARSER_H
27 
28 // Local includes
29 
30 #include "iteminfo.h"
31 #include "progressmanager.h"
32 
33 namespace Digikam
34 {
35 class Album;
36 
37 class DIGIKAM_GUI_EXPORT AlbumParser : public ProgressItem
38 {
39  Q_OBJECT
40 
41 public:
42 
46  explicit AlbumParser(const ItemInfoList& infoList);
47 
51  explicit AlbumParser(Album* const album);
52 
53  ~AlbumParser() override;
54 
55  void run();
56 
57 Q_SIGNALS:
58 
60 
61 private Q_SLOTS:
62 
63  void slotRun();
64  void slotCancel();
65  void slotParseItemInfoList(const ItemInfoList& list);
66 
67 private:
68 
69  // Disable
70  AlbumParser(QObject*) = delete;
71 
72  class Private;
73  Private* const d;
74 };
75 
76 } // namespace Digikam
77 
78 #endif // DIGIKAM_ALBUM_PARSER_H
Definition: albumparser.h:38
void signalComplete(const QList< QUrl > &)
Abstract base class for all album types.
Definition: album.h:67
Definition: iteminfolist.h:47
Definition: progressmanager.h:45
@ Album
Definition: coredbfields.h:58
Definition: datefolderview.cpp:43