digiKam
ftplugin.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 export and import items with a remote location.
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_FT_PLUGIN_H
24 #define DIGIKAM_FT_PLUGIN_H
25 
26 // Local includes
27 
28 #include "dplugingeneric.h"
29 
30 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.FileTransfer"
31 
32 using namespace Digikam;
33 
35 {
36 
37 class FTExportWindow;
38 class FTImportWindow;
39 
40 class FTPlugin : public DPluginGeneric
41 {
42  Q_OBJECT
43  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
44  Q_INTERFACES(Digikam::DPluginGeneric)
45 
46 public:
47 
48  explicit FTPlugin(QObject* const parent = nullptr);
49  ~FTPlugin() 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 slotFileTransferExport();
64  void slotFileTransferImport();
65 
66 private:
67 
68  QPointer<FTExportWindow> m_toolDlgExport;
69  QPointer<FTImportWindow> m_toolDlgImport;
70 };
71 
72 } // namespace DigikamGenericFileTransferPlugin
73 
74 #endif // DIGIKAM_FT_PLUGIN_H
Definition: dplugingeneric.h:42
Definition: piwigotalker.h:48
#define DPLUGIN_IID
Definition: ftplugin.h:30
Definition: ftexportwidget.cpp:50
Definition: datefolderview.cpp:43