"Fossies" - the Fresh Open Source Software Archive

Member "digikam-6.3.0/core/dplugins/generic/webservices/twitter/twitterplugin.h" (4 Sep 2019, 1943 Bytes) of package /linux/misc/digikam-6.3.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "twitterplugin.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 6.2.0_vs_6.3.0.

    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-2019 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 
   35 namespace DigikamGenericTwitterPlugin
   36 {
   37 
   38 class TwitterPlugin : public DPluginGeneric
   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();
   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