KFileMetaData

extractionresult.cpp
1/*
2 SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "extractionresult.h"
8
9using namespace KFileMetaData;
10
11class KFileMetaData::ExtractionResultPrivate
12{
13public:
14 QString url;
15 QString mimetype;
18};
19
20ExtractionResult::ExtractionResult(const QString& url, const QString& mimetype, const Flags& flags)
21 : d(new ExtractionResultPrivate)
22{
23 d->url = url;
24 d->mimetype = mimetype;
25 d->flags = flags;
26}
27
29 : d(new ExtractionResultPrivate(*rhs.d))
30{
31}
32
33ExtractionResult::~ExtractionResult() = default;
34
36{
37 return d->url;
38}
39
41{
42 return d->mimetype;
43}
44
46{
47 return d->flags;
48}
49
54
57{
58 return d->images;
59}
60
The ExtractionResult class is where all the data extracted by the indexer is saved.
QString inputUrl() const
The input URL which the plugins will use to locate the file.
ExtractionResult(const QString &url, const QString &mimetype=QString(), const Flags &flags=Flags{ExtractPlainText|ExtractMetaData})
Create an ExtractionResult which can be passed be to Extractors.
QString inputMimetype() const
The input MIME type.
Flags inputFlags() const
The flags which the extraction plugin should considering following when extracting metadata from the ...
void addImageData(QMap< EmbeddedImageData::ImageType, QByteArray > &&images)
This function is called by the plugins.
QMap< EmbeddedImageData::ImageType, QByteArray > imageData() const
Return embedded image data.
The KFileMetaData namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:50:42 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.