digiKam
dscannerplugin.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2018-07-30
7  * Description : a plugin to acquire images with a digital scanner.
8  *
9  * Copyright (C) 2018-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_DSCANNER_PLUGIN_H
24 #define DIGIKAM_DSCANNER_PLUGIN_H
25 
26 // Local includes
27 
28 #include "dplugingeneric.h"
29 
30 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.DigitalScanner"
31 
32 namespace KSaneIface
33 {
34  class KSaneWidget;
35 }
36 
37 using namespace Digikam;
38 
40 {
41 
43 {
44  Q_OBJECT
45  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
46  Q_INTERFACES(Digikam::DPluginGeneric)
47 
48 public:
49 
50  explicit DigitalScannerPlugin(QObject* const parent = nullptr);
51  ~DigitalScannerPlugin() override;
52 
53  QString name() const override;
54  QString iid() const override;
55  QIcon icon() const override;
56  QString details() const override;
57  QString description() const override;
58  QList<DPluginAuthor> authors() const override;
59 
60  void setup(QObject* const) override;
61  void cleanUp() override;
62 
63 private Q_SLOTS:
64 
65  void slotDigitalScanner();
66 
67 private:
68 
69  KSaneIface::KSaneWidget* m_saneWidget = nullptr;
70 };
71 
72 } // namespace DigikamGenericDScannerPlugin
73 
74 #endif // DIGIKAM_DSCANNER_PLUGIN_H
Definition: dplugingeneric.h:42
Definition: piwigotalker.h:48
#define DPLUGIN_IID
Definition: dscannerplugin.h:30
Definition: dscannerplugin.cpp:46
Definition: datefolderview.cpp:43