digiKam
iteminfojob.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 : 2006-22-01
7  * Description : interface to get item info from database.
8  *
9  * Copyright (C) 2006-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_JOB_H
25 #define DIGIKAM_ITEM_INFO_JOB_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 #include <QList>
31 #include <QByteArray>
32 
33 // Local includes
34 
35 #include "album.h"
36 #include "iteminfo.h"
37 
38 namespace Digikam
39 {
40 
41 class ItemInfoJob : public QObject
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit ItemInfoJob();
48  ~ItemInfoJob() override;
49 
50  void allItemsFromAlbum(Album* const album);
51  void stop();
52  bool isRunning() const;
53 
54 Q_SIGNALS:
55 
56  void signalItemsInfo(const ItemInfoList& items);
58 
59 private Q_SLOTS:
60 
61  void slotResult();
62  void slotData(const QList<ItemListerRecord>& data);
63 
64 private:
65 
66  // Disabme
67  ItemInfoJob(QObject*) = delete;
68 
69 private:
70 
71  class Private;
72  Private* const d;
73 };
74 
75 } // namespace Digikam
76 
77 #endif // DIGIKAM_ITEM_INFO_JOB_H
Abstract base class for all album types.
Definition: album.h:67
Definition: iteminfojob.h:42
void allItemsFromAlbum(Album *const album)
Definition: iteminfojob.cpp:71
ItemInfoJob()
Definition: iteminfojob.cpp:56
bool isRunning() const
Definition: iteminfojob.cpp:139
~ItemInfoJob() override
Definition: iteminfojob.cpp:61
void signalItemsInfo(const ItemInfoList &items)
void stop()
Definition: iteminfojob.cpp:130
Definition: iteminfolist.h:47
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43