KFileMetaData

dublincoreextractor.h
1/*
2 Helper class to extract XML encoded Dublin Core metadata
3
4 SPDX-FileCopyrightText: 2018 Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
5
6 SPDX-License-Identifier: LGPL-2.1-or-later
7*/
8
9
10#ifndef DUBLINCORE_EXTRACTOR_H
11#define DUBLINCORE_EXTRACTOR_H
12
13#include <QDomNode>
14
15namespace KFileMetaData
16{
17
18class ExtractionResult;
19
20class DublinCoreExtractor
21{
22public:
23 /**
24 * Extract DC metadata from an XML fragment
25 *
26 * Prerequisites:
27 * - DC element nodes are immediate children to \p fragment
28 * - The \c QDomDocument has been parsed with enabled namespaceProcessing
29 *
30 * \sa QDomDocument::setContent
31 */
32 static void extract(ExtractionResult* result, const QDomNode& fragment);
33
34};
35
36} // namespace KFileMetaData
37
38#endif // DUBLINCORE_EXTRACTOR_H
39
The KFileMetaData namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.