/* SPDX-FileCopyrightText: 2013 Vishesh Handa SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef ODF_EXTRACTOR_H #define ODF_EXTRACTOR_H #include "extractorplugin.h" class QIODevice; namespace KFileMetaData { class OdfExtractor : public ExtractorPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin" FILE "odfextractor.json") Q_INTERFACES(KFileMetaData::ExtractorPlugin) public: explicit OdfExtractor(QObject* parent = nullptr); QStringList mimetypes() const override; void extract(ExtractionResult* result) override; private: void parseMetaData(const QString &documentElementId, const QByteArray &data, ExtractionResult *result); void extractPlainText(QIODevice *device, ExtractionResult *result); }; } #endif // ODF_EXTRACTOR_H