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 \a fragment
28 * - The 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
40

source code of kfilemetadata/src/extractors/dublincoreextractor.h