KItinerary

extractorcapabilities.cpp
1/*
2 SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include <config-kitinerary.h>
8#include <kitinerary_version.h>
9
10#include "extractorcapabilities.h"
11
12#include <KItinerary/ExtractorRepository>
13
14#include <kcalendarcore_version.h>
15
16#include <QString>
17
18using namespace KItinerary;
19
21{
22 const char s[] =
23 "Engine version : " KITINERARY_VERSION_STRING "\n"
24 "Qt version : " QT_VERSION_STR "\n"
25
26 "HTML support : "
27#if HAVE_LIBXML2
28 "libxml2"
29#else
30 "not available"
31#endif
32 "\n"
33
34 "PDF support : poppler (" KPOPPLER_VERSION_STRING ")\n"
35
36 "iCal support : kcal (" KCALENDARCORE_VERSION_STRING ")\n"
37
38 "Barcode decoder : ZXing (" ZXING_VERSION_STRING ")\n"
39
40 "Phone number decoder: "
41#if HAVE_PHONENUMBER
42 "libphonenumber"
43#else
44 "not available"
45#endif
46 "\n"
47
48 "Extractors : ";
49
50 auto caps = QString::fromLatin1(s);
52 caps += QString::number(repo.extractors().size()) + QLatin1Char('\n');
53
54 return caps;
55}
Collection of all known data extractors.
const std::vector< std::unique_ptr< AbstractExtractor > > & extractors() const
All known extractors.
QString capabilitiesString()
Textual representation, mainly useful for bug reports/support.
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
QString fromLatin1(QByteArrayView str)
QString number(double n, char format, int precision)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:49 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.