digiKam
Loading...
Searching...
No Matches
thumbsgenerator.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-30-08
7 * Description : batch thumbnails generator
8 *
9 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles 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 <QImage>
21
22// Local includes
23
24#include "album.h"
25#include "maintenancetool.h"
26
27namespace Digikam
28{
29
30class ItemInfo;
31
33{
34 Q_OBJECT
35
36public:
37
41 explicit ThumbsGenerator(const bool rebuildAll, int albumId, ProgressItem* const parent = nullptr);
42
46 ThumbsGenerator(const bool rebuildAll, const AlbumList& list, ProgressItem* const parent = nullptr);
47 ~ThumbsGenerator() override;
48
49 void setUseMultiCoreCPU(bool b) override;
50
51private:
52
53 void init(const bool rebuildAll);
54
55private Q_SLOTS:
56
57 void slotStart() override;
58 void slotCancel() override;
59 void slotDone() override;
60 void slotAdvance(const ItemInfo&, const QImage&);
61
62private:
63
64 class Private;
65 Private* const d = nullptr;
66};
67
68} // namespace Digikam
Definition iteminfo.h:68
Definition maintenancetool.h:31
Definition progressmanager.h:35
ProgressItem * parent() const
Definition progressmanager.cpp:283
Definition thumbsgenerator.h:33
void setUseMultiCoreCPU(bool b) override
Definition thumbsgenerator.cpp:103
~ThumbsGenerator() override
Definition thumbsgenerator.cpp:86
Definition datefolderview.cpp:34
QList< Album * > AlbumList
Definition album.h:41