digiKam
Loading...
Searching...
No Matches
syncjob.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 : 2004-10-04
7 * Description : synchronize Input/Output jobs.
8 *
9 * SPDX-FileCopyrightText: 2006-2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QObject>
21#include <QPixmap>
22
23// Local includes
24
25#include "digikam_export.h"
26
27class QString;
28
29namespace Digikam
30{
31
32class Album;
33class TAlbum;
34
35// -------------------------------------------------------------------------------
36
37class DIGIKAM_GUI_EXPORT SyncJob : public QObject
38{
39 Q_OBJECT
40
41public:
42
46 static QPixmap getTagThumbnail(TAlbum* const album);
47 static QPixmap getTagThumbnail(const QString& name, int size);
48
49private:
50
51 void enterWaitingLoop() const;
52 void quitWaitingLoop() const;
53
54 QPixmap getTagThumbnailPriv(TAlbum* const album) const;
55
56private Q_SLOTS:
57
58 void slotGotThumbnailFromIcon(Album* album, const QPixmap& pix);
59 void slotLoadThumbnailFailed(Album* album);
60
61private:
62
63 // Disable
64 SyncJob();
65 explicit SyncJob(QObject*) = delete;
66 ~SyncJob() override;
67
68private:
69
70 class Private;
71 Private* const d = nullptr;
72};
73
74} // namespace Digikam
Abstract base class for all album types.
Definition album.h:57
Definition syncjob.h:38
static QPixmap getTagThumbnail(const QString &name, int size)
Definition album.h:421
@ Album
Definition coredbfields.h:48
Definition datefolderview.cpp:34