digiKam
iteminfoalbumsjob.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 : 2007-14-02
7  * Description : interface to get item info from an albums list.
8  *
9  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles 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_ITEM_INFO_ALBUMS_JOB_H
25 #define DIGIKAM_ITEM_INFO_ALBUMS_JOB_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 
31 // Local includes
32 
33 #include "iteminfo.h"
34 #include "albummanager.h"
35 
36 namespace Digikam
37 {
38 
39 class ItemInfoAlbumsJob : public QObject
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit ItemInfoAlbumsJob(QObject* const parent = nullptr);
46  ~ItemInfoAlbumsJob() override;
47 
48  void allItemsFromAlbums(const AlbumList& albumsList);
49  void stop();
50 
51 Q_SIGNALS:
52 
53  void signalCompleted(const ItemInfoList& items);
54 
55 private Q_SLOTS:
56 
57  void slotItemsInfo(const ItemInfoList&);
58  void slotComplete();
59 
60 private:
61 
62  void parseAlbum();
63 
64 private:
65 
66  class Private;
67  Private* const d;
68 };
69 
70 } // namespace Digikam
71 
72 #endif // DIGIKAM_ITEM_INFO_ALBUMS_JOB_H
Definition: iteminfoalbumsjob.h:40
void allItemsFromAlbums(const AlbumList &albumsList)
Definition: iteminfoalbumsjob.cpp:70
void stop()
Definition: iteminfoalbumsjob.cpp:87
void signalCompleted(const ItemInfoList &items)
ItemInfoAlbumsJob(QObject *const parent=nullptr)
Definition: iteminfoalbumsjob.cpp:54
~ItemInfoAlbumsJob() override
Definition: iteminfoalbumsjob.cpp:65
Definition: iteminfolist.h:47
Definition: datefolderview.cpp:43