| 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 |
| 12 | |
| 13 | #include <QDomNode> |
| 14 | |
| 15 | namespace KFileMetaData |
| 16 | { |
| 17 | |
| 18 | class ; |
| 19 | |
| 20 | class |
| 21 | { |
| 22 | public: |
| 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 (ExtractionResult* result, const QDomNode& fragment); |
| 33 | |
| 34 | }; |
| 35 | |
| 36 | } // namespace KFileMetaData |
| 37 | |
| 38 | #endif // DUBLINCORE_EXTRACTOR_H |
| 39 | |
| 40 | |