digiKam
smugplugin.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 SmugMug web-service.
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_SMUG_PLUGIN_H
24 #define DIGIKAM_SMUG_PLUGIN_H
25 
26 // Local includes
27 
28 #include "dplugingeneric.h"
29 
30 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.SmugMug"
31 
32 using namespace Digikam;
33 
35 {
36 
37 class SmugWindow;
38 
39 class SmugPlugin : public DPluginGeneric
40 {
41  Q_OBJECT
42  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
43  Q_INTERFACES(Digikam::DPluginGeneric)
44 
45 public:
46 
47  explicit SmugPlugin(QObject* const parent = nullptr);
48  ~SmugPlugin() override;
49 
50  QString name() const override;
51  QString iid() const override;
52  QIcon icon() const override;
53  QString details() const override;
54  QString description() const override;
55  QList<DPluginAuthor> authors() const override;
56 
57  void setup(QObject* const) override;
58  void cleanUp() override;
59 
60 private Q_SLOTS:
61 
62  void slotSmugMugExport();
63  void slotSmugMugImport();
64 
65 private:
66 
67  QPointer<SmugWindow> m_toolDlgExport;
68  QPointer<SmugWindow> m_toolDlgImport;
69 };
70 
71 } // namespace DigikamGenericSmugPlugin
72 
73 #endif // DIGIKAM_SMUG_PLUGIN_H
Definition: smugplugin.h:40
Definition: dplugingeneric.h:42
Definition: piwigotalker.h:48
Definition: smugitem.h:33
Definition: datefolderview.cpp:43
#define DPLUGIN_IID
Definition: smugplugin.h:30