File indexing completed on 2025-01-19 03:53:14
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2018-07-30 0007 * Description : a plugin to export to Twitter web-service. 0008 * 0009 * SPDX-FileCopyrightText: 2018-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_TWITTER_PLUGIN_H 0016 #define DIGIKAM_TWITTER_PLUGIN_H 0017 0018 // Local includes 0019 0020 #include "dplugingeneric.h" 0021 #include "dplugindialog.h" 0022 0023 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.Twitter" 0024 0025 using namespace Digikam; 0026 0027 namespace DigikamGenericTwitterPlugin 0028 { 0029 0030 class TwitterPlugin : public DPluginGeneric 0031 { 0032 Q_OBJECT 0033 Q_PLUGIN_METADATA(IID DPLUGIN_IID) 0034 Q_INTERFACES(Digikam::DPluginGeneric) 0035 0036 public: 0037 0038 explicit TwitterPlugin(QObject* const parent = nullptr); 0039 ~TwitterPlugin() override; 0040 0041 QString name() const override; 0042 QString iid() const override; 0043 QIcon icon() const override; 0044 QString details() const override; 0045 QString description() const override; 0046 QList<DPluginAuthor> authors() const override; 0047 QString handbookSection() const override; 0048 QString handbookChapter() const override; 0049 0050 void setup(QObject* const) override; 0051 void cleanUp() override; 0052 0053 private Q_SLOTS: 0054 0055 void slotTwitter(); 0056 0057 private: 0058 0059 QPointer<DPluginDialog> m_toolDlg; 0060 }; 0061 0062 } // namespace DigikamGenericTwitterPlugin 0063 0064 #endif // DIGIKAM_TWITTER_PLUGIN_H