KFileMetaData

office2007extractor.h
1 /*
2  SPDX-FileCopyrightText: 2013 Vishesh Handa <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 
8 #ifndef OFFICE_2007_EXTRACTOR_H
9 #define OFFICE_2007_EXTRACTOR_H
10 
11 #include "extractorplugin.h"
12 
13 #include <QIODevice>
14 
15 class KArchiveDirectory;
16 
17 namespace KFileMetaData
18 {
19 
20 class Office2007Extractor : public ExtractorPlugin
21 {
22  Q_OBJECT
23  Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin"
24  FILE "office2007extractor.json")
26 
27 public:
28  explicit Office2007Extractor(QObject* parent = nullptr);
29 
30  QStringList mimetypes() const override;
31  void extract(ExtractionResult* result) override;
32 
33 private:
34  void extractTextWithTag(QIODevice* device, const QString& tag, ExtractionResult* result);
35  void extractAllText(QIODevice* device, ExtractionResult* result);
36  void extractTextFromFiles(const KArchiveDirectory* archiveDir, ExtractionResult* result);
37 };
38 }
39 
40 #endif // OFFICE_2007_EXTRACTOR_H
Q_OBJECTQ_OBJECT
Q_INTERFACES(...)
The ExtractorPlugin is the base class for all file metadata extractors. It is responsible for extract...
virtual QStringList mimetypes() const =0
Provide a list of mimetypes which are supported by this plugin.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri May 27 2022 03:47:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.