File indexing completed on 2024-12-29 04:50:00
0001 /* 0002 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef KITINERARY_ACTIVITYPUBEXTRACTOR_H 0007 #define KITINERARY_ACTIVITYPUBEXTRACTOR_H 0008 0009 #include <KItinerary/AbstractExtractor> 0010 #include <KItinerary/ExtractorFilter> 0011 0012 namespace KItinerary { 0013 0014 /** ActivityPub extractor. 0015 * @see https://www.w3.org/TR/activitypub 0016 * @see https://www.w3.org/ns/activitystreams 0017 * @see https://www.w3.org/TR/activitystreams-core 0018 * @see https://www.w3.org/TR/activitystreams-vocabulary 0019 * @see https://www.w3.org/TR/json-ld 0020 * @see https://www.w3.org/TR/json-ld-api 0021 */ 0022 class ActivityPubExtractor : public AbstractExtractor 0023 { 0024 public: 0025 explicit ActivityPubExtractor(); 0026 ~ActivityPubExtractor(); 0027 0028 QString name() const override; 0029 bool canHandle(const KItinerary::ExtractorDocumentNode & node) const override; 0030 ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override; 0031 }; 0032 0033 } 0034 0035 #endif // KITINERARY_ACTIVITYPUBEXTRACTOR_H