KFileMetaData

dublincoreextractor.h
1 /*
2  Helper class to extract XML encoded Dublin Core metadata
3 
4  SPDX-FileCopyrightText: 2018 Stefan BrĂ¼ns <[email protected]>
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 
15 namespace KFileMetaData
16 {
17 
18 class ExtractionResult;
19 
20 class DublinCoreExtractor
21 {
22 public:
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 
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

KDE's Doxygen guidelines are available online.