File indexing completed on 2025-01-19 03:52:36

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2017-07-04
0007  * Description : Autodetect Tesseract binary program
0008  *
0009  * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_TESSERACT_BINARY_H
0016 #define DIGIKAM_TESSERACT_BINARY_H
0017 
0018 // Qt includes
0019 
0020 #include <QStringList>
0021 
0022 // Local includes
0023 
0024 #include "dbinaryiface.h"
0025 
0026 using namespace Digikam;
0027 
0028 namespace DigikamGenericTextConverterPlugin
0029 {
0030 
0031 class TesseractBinary : public DBinaryIface
0032 {
0033     Q_OBJECT
0034 
0035 public:
0036 
0037     explicit TesseractBinary(QObject* const parent = nullptr);
0038     ~TesseractBinary()                      override;
0039 
0040     QStringList tesseractLanguages() const;
0041 };
0042 
0043 } // namespace DigikamGenericTextConverterPlugin
0044 
0045 #endif // DIGIKAM_TESSERACT_BINARY_H