KFileMetaData
officeextractor.cpp
48 args << QStringLiteral("-s") << QStringLiteral("cp1252"); // FIXME: Store somewhere a map between the user's language and the encoding of the Windows files it may use ?
62 int words = contents.count(QRegularExpression(QStringLiteral("\\b\\w+\\b"), QRegularExpression::UseUnicodePropertiesOption));
90 QString OfficeExtractor::textFromFile(const QString& fileUrl, const QString& command, QStringList& arguments)
void start(const QString &program, const QStringList &arguments, QIODevice::OpenMode mode)
virtual void addType(Type::Type type)=0
This function is called by the plugins.
ReadOnly
The ExtractionResult class is where all the data extracted by the indexer is saved....
Definition: extractionresult.h:34
QString fromUtf8(const char *str, int size)
bool waitForFinished(int msecs)
KCALUTILS_EXPORT QString mimeType()
QString inputUrl() const
The input url which the plugins will use to locate the file.
Definition: extractionresult.cpp:35
QString findExecutable(const QString &executableName, const QStringList &paths)
NormalExit
QProcess::ExitStatus exitStatus() const const
bool isEmpty() const const
UseUnicodePropertiesOption
virtual void append(const QString &text)=0
This function is called by plugins when they wish for some plain text to be indexed without any prope...
int count() const const
virtual void add(Property::Property property, const QVariant &value)=0
This function is called by the plugins when they wish to add a key value pair which should be indexed...
The ExtractorPlugin is the base class for all file metadata extractors. It is responsible for extract...
Definition: extractorplugin.h:33
QByteArray readAll()
void setReadChannel(QProcess::ProcessChannel channel)
int exitCode() const const
StandardOutput
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 03:46:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 03:46:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.