File indexing completed on 2025-03-09 03:52:46

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2000-06-08
0007  * Description : Core database <-> thumbnail database interface
0008  *
0009  * SPDX-FileCopyrightText: 2009      by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
0010  * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_CORE_DB_THUMB_INFO_PROVIDER_H
0017 #define DIGIKAM_CORE_DB_THUMB_INFO_PROVIDER_H
0018 
0019 // Local includes
0020 
0021 #include "digikam_export.h"
0022 #include "thumbnailinfo.h"
0023 #include "loadsavethread.h"
0024 
0025 namespace Digikam
0026 {
0027 
0028 class DIGIKAM_DATABASE_EXPORT ThumbsDbInfoProvider : public ThumbnailInfoProvider
0029 {
0030 public:
0031 
0032     ThumbnailInfo thumbnailInfo(const ThumbnailIdentifier& identifier) override;
0033 };
0034 
0035 // ----------------------------------------------------------------------------------------------
0036 
0037 class DIGIKAM_DATABASE_EXPORT DatabaseLoadSaveFileInfoProvider : public LoadSaveFileInfoProvider
0038 {
0039 public:
0040 
0041     int   orientationHint(const QString& path) override;
0042     QSize dimensionsHint(const QString& path)  override;
0043 };
0044 
0045 } // namespace Digikam
0046 
0047 #endif // DIGIKAM_CORE_DB_THUMB_INFO_PROVIDER_H