KFileMetaData

odfextractor.h
1/*
2 SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7
8#ifndef ODF_EXTRACTOR_H
9#define ODF_EXTRACTOR_H
10
11#include "extractorplugin.h"
12
13class QIODevice;
14
15namespace KFileMetaData
16{
17
18class OdfExtractor : public ExtractorPlugin
19{
21 Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin"
22 FILE "odfextractor.json")
24
25public:
26 explicit OdfExtractor(QObject* parent = nullptr);
27
28 QStringList mimetypes() const override;
29 void extract(ExtractionResult* result) override;
30
31private:
32 void parseMetaData(const QString &documentElementId, const QByteArray &data, ExtractionResult *result);
33 void extractPlainText(QIODevice *device, ExtractionResult *result);
34};
35}
36
37#endif // ODF_EXTRACTOR_H
The ExtractorPlugin is the base class for all file metadata extractors.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:44:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.