digiKam
twitterplugin.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 to Twitter 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_TWITTER_PLUGIN_H
24 #define DIGIKAM_TWITTER_PLUGIN_H
25 
26 // Local includes
27 
28 #include "dplugingeneric.h"
29 #include "dplugindialog.h"
30 
31 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.Twitter"
32 
33 using namespace Digikam;
34 
36 {
37 
39 {
40  Q_OBJECT
41  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
42  Q_INTERFACES(Digikam::DPluginGeneric)
43 
44 public:
45 
46  explicit TwitterPlugin(QObject* const parent = nullptr);
47  ~TwitterPlugin() override;
48 
49  QString name() const override;
50  QString iid() const override;
51  QIcon icon() const override;
52  QString details() const override;
53  QString description() const override;
54  QList<DPluginAuthor> authors() const override;
55 
56  void setup(QObject* const) override;
57  void cleanUp() override;
58 
59 private Q_SLOTS:
60 
61  void slotTwitter();
62 
63 private:
64 
65  QPointer<DPluginDialog> m_toolDlg;
66 };
67 
68 } // namespace DigikamGenericTwitterPlugin
69 
70 #endif // DIGIKAM_TWITTER_PLUGIN_H
Definition: twitterplugin.h:39
Definition: dplugingeneric.h:42
Definition: piwigotalker.h:48
Definition: twitteritem.h:31
Definition: datefolderview.cpp:43
#define DPLUGIN_IID
Definition: twitterplugin.h:31