digiKam
fcplugin.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 : 2019-03-27
7  * Description : a plugin to export items to a local storage.
8  *
9  * Copyright (C) 2018-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (c) 2019-2020 by Maik Qualmann <metzpinguin at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_FC_PLUGIN_H
25 #define DIGIKAM_FC_PLUGIN_H
26 
27 // Local includes
28 
29 #include "dplugingeneric.h"
30 
31 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.FileCopy"
32 
33 using namespace Digikam;
34 
36 {
37 
38 class FCExportWindow;
39 
40 class FCPlugin : public DPluginGeneric
41 {
42  Q_OBJECT
43  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
44  Q_INTERFACES(Digikam::DPluginGeneric)
45 
46 public:
47 
48  explicit FCPlugin(QObject* const parent = nullptr);
49  ~FCPlugin() override;
50 
51  QString name() const override;
52  QString iid() const override;
53  QIcon icon() const override;
54  QString details() const override;
55  QString description() const override;
56  QList<DPluginAuthor> authors() const override;
57 
58  void setup(QObject* const) override;
59  void cleanUp() override;
60 
61 private Q_SLOTS:
62 
63  void slotFileCopyExport();
64 
65 private:
66 
67  QPointer<FCExportWindow> m_toolDlgExport;
68 };
69 
70 } // namespace DigikamGenericFileCopyPlugin
71 
72 #endif // DIGIKAM_FC_PLUGIN_H
Definition: dplugingeneric.h:42
Definition: piwigotalker.h:48
#define DPLUGIN_IID
Definition: fcplugin.h:31
Definition: fccontainer.h:38
Definition: datefolderview.cpp:43