KItinerary::ExtractorResult

Search for usage in LXR

KItinerary::ExtractorResult Class Reference

#include <extractorresult.h>

Public Member Functions

 ExtractorResult (const QJsonArray &result)
 
 ExtractorResult (const QVector< QVariant > &result)
 
void append (ExtractorResult &&other)
 
bool isEmpty () const
 
QJsonArray jsonLdResult () const
 
QVector< QVariantresult () const
 
int size () const
 

Detailed Description

Generic extraction result.

This can represent results both in JSON-LD serialized form and in QVariant decoded form.

Definition at line 20 of file extractorresult.h.

Member Function Documentation

void ExtractorResult::append ( ExtractorResult &&  other)

Append another result to this one.

Definition at line 53 of file extractorresult.cpp.

bool ExtractorResult::isEmpty ( ) const

Checks if there is any relevant result set in here.

Definition at line 27 of file extractorresult.cpp.

QJsonArray ExtractorResult::jsonLdResult ( ) const

JSON-LD data extracted from this document or page.

Definition at line 37 of file extractorresult.cpp.

QVector< QVariant > ExtractorResult::result ( ) const

Result in decoded form.

Definition at line 45 of file extractorresult.cpp.

int ExtractorResult::size ( ) const

Amount of contained result elements.

Definition at line 32 of file extractorresult.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:06:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.