KFileMetaData
officeextractor.cpp
49 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 ?
68 int words = contents.count(QRegularExpression(QStringLiteral("\\b\\w+\\b"), QRegularExpression::UseUnicodePropertiesOption));
102QString OfficeExtractor::textFromFile(const QString& fileUrl, const QString& command, QStringList& arguments)
The ExtractionResult class is where all the data extracted by the indexer is saved.
Definition extractionresult.h:37
QString inputUrl() const
The input URL which the plugins will use to locate the file.
Definition extractionresult.cpp:35
virtual void addType(Type::Type type)=0
This function is called by the plugins.
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...
Flags inputFlags() const
The flags which the extraction plugin should considering following when extracting metadata from the ...
Definition extractionresult.cpp:45
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...
The ExtractorPlugin is the base class for all file metadata extractors.
Definition extractorplugin.h:36
KCALUTILS_EXPORT QString mimeType()
QString name(StandardAction id)
QByteArray readAll()
ReadOnly
NormalExit
StandardOutput
int exitCode() const const
QProcess::ExitStatus exitStatus() const const
void setReadChannel(ProcessChannel channel)
void start(OpenMode mode)
bool waitForFinished(int msecs)
UseUnicodePropertiesOption
QString findExecutable(const QString &executableName, const QStringList &paths)
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.