File indexing completed on 2025-01-05 03:53:31

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2012-02-02
0007  * Description : a tool to export items to ImageShack web service
0008  *
0009  * SPDX-FileCopyrightText: 2012      by Dodon Victor <dodonvictor at gmail dot com>
0010  * SPDX-FileCopyrightText: 2013-2023 by Caulier Gilles <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_IMAGE_SHACK_WIDGET_H
0017 #define DIGIKAM_IMAGE_SHACK_WIDGET_H
0018 
0019 // Qt includes
0020 
0021 #include <QString>
0022 #include <QWidget>
0023 
0024 // Local includes
0025 
0026 #include "dprogresswdg.h"
0027 #include "wssettingswidget.h"
0028 #include "dinfointerface.h"
0029 
0030 using namespace Digikam;
0031 
0032 namespace DigikamGenericImageShackPlugin
0033 {
0034 
0035 class ImageShackSession;
0036 
0037 class ImageShackWidget : public WSSettingsWidget
0038 {
0039     Q_OBJECT
0040 
0041 public:
0042 
0043     explicit ImageShackWidget(QWidget* const parent,
0044                               ImageShackSession* const session,
0045                               DInfoInterface* const iface,
0046                               const QString& toolName);
0047     ~ImageShackWidget() override;
0048 
0049 Q_SIGNALS:
0050 
0051     void signalReloadGalleries();
0052 
0053 private:
0054 
0055     void updateLabels(const QString& name = QString(),
0056                       const QString& url = QString()) override;
0057 
0058 private Q_SLOTS:
0059 
0060     void slotGetGalleries(const QStringList& gTexts, const QStringList& gNames);
0061     void slotReloadGalleries();
0062 
0063 private:
0064 
0065     class Private;
0066     Private* const d;
0067 
0068     friend class ImageShackWindow;
0069 };
0070 
0071 } // namespace DigikamGenericImageShackPlugin
0072 
0073 #endif // DIGIKAM_IMAGE_SHACK_WIDGET_H