digiKam
Loading...
Searching...
No Matches
metaengine_previews.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-09-15
7
* Description : Exiv2 library interface.
8
* Embedded preview loading.
9
*
10
* SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* SPDX-FileCopyrightText: 2006-2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
12
*
13
* SPDX-License-Identifier: GPL-2.0-or-later
14
*
15
* ============================================================ */
16
17
#pragma once
18
19
// Qt includes
20
21
#include <QByteArray>
22
#include <QSize>
23
#include <QString>
24
#include <QImage>
25
26
// Local includes
27
28
#include "
digikam_export.h
"
29
30
namespace
Digikam
31
{
32
33
class
DIGIKAM_EXPORT
MetaEnginePreviews
34
{
35
public
:
36
40
explicit
MetaEnginePreviews
(
const
QString& filePath);
41
45
explicit
MetaEnginePreviews
(
const
QByteArray& imgData);
46
~MetaEnginePreviews
();
47
49
QSize originalSize()
const
;
50
52
QString originalMimeType()
const
;
53
55
bool
isEmpty();
56
58
int
count()
const
;
59
int
size()
const
;
60
68
int
dataSize(
int
index = 0);
69
int
width(
int
index = 0);
70
int
height(
int
index = 0);
71
QString mimeType(
int
index = 0);
72
QString fileExtension(
int
index = 0);
73
77
QByteArray data(
int
index = 0);
78
83
QImage image(
int
index = 0);
84
85
private
:
86
87
// Disable
88
MetaEnginePreviews
(
const
MetaEnginePreviews
&) =
delete
;
89
MetaEnginePreviews
& operator=(
const
MetaEnginePreviews
&) =
delete
;
90
91
private
:
92
93
class
Private;
94
Private*
const
d =
nullptr
;
95
};
96
97
}
// namespace Digikam
Digikam::MetaEnginePreviews
Definition
metaengine_previews.h:34
digikam_export.h
Digikam
Definition
datefolderview.cpp:34
core
libs
metadataengine
engine
metaengine_previews.h
Generated by
1.9.8