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

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2022-08-26
0007  * Description : a plugin to convert documented images to text
0008  *
0009  * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2022      by Quoc Hung Tran <quochungtran1999 at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_OCR_TEXT_CONVERTER_PLUGIN_H
0017 #define DIGIKAM_OCR_TEXT_CONVERTER_PLUGIN_H
0018 
0019 // Local includes
0020 
0021 #include "dplugingeneric.h"
0022 
0023 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.TextConverter"
0024 
0025 using namespace Digikam;
0026 
0027 namespace DigikamGenericTextConverterPlugin
0028 {
0029 
0030 class TextConverterPlugin : public DPluginGeneric
0031 {
0032     Q_OBJECT
0033     Q_PLUGIN_METADATA(IID DPLUGIN_IID)
0034     Q_INTERFACES(Digikam::DPluginGeneric)
0035 
0036 public:
0037 
0038     explicit TextConverterPlugin(QObject* const parent = nullptr);
0039     ~TextConverterPlugin()               override;
0040 
0041     QString name()                 const override;
0042     QString iid()                  const override;
0043     QIcon   icon()                 const override;
0044     QString details()              const override;
0045     QString description()          const override;
0046     QList<DPluginAuthor> authors() const override;
0047     QString handbookSection()      const override;
0048     QString handbookChapter()      const override;
0049 
0050     void setup(QObject* const)           override;
0051 
0052 private Q_SLOTS:
0053 
0054     void slotTextConverter();
0055 };
0056 
0057 } // namespace DigikamGenericTextConverterPlugin
0058 
0059 #endif // DIGIKAM_OCR_TEXT_CONVERTER_PLUGIN_H