KItinerary

extractorcapabilities.cpp
1 /*
2  SPDX-FileCopyrightText: 2019 Volker Krause <[email protected]>
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 
18 using 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 : "
39 #if HAVE_ZXING
40  "zxing (" ZXING_VERSION_STRING ")"
41 #else
42  "not available"
43 #endif
44  "\n"
45 
46  "Phone number decoder: "
47 #if HAVE_PHONENUMBER
48  "libphonenumber"
49 #else
50  "not available"
51 #endif
52  "\n"
53 
54  "Extractors : ";
55 
56  auto caps = QString::fromLatin1(s);
58  caps += QString::number(repo.extractors().size()) + QLatin1Char('\n');
59 
60  return caps;
61 }
QString number(int n, int base)
Collection of all known data extractors.
const std::vector< std::unique_ptr< AbstractExtractor > > & extractors() const
All known extractors.
QString fromLatin1(const char *str, int size)
QString capabilitiesString()
Textual representation, mainly useful for bug reports/support.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 03:54:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.