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

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2008-12-26
0007  * Description : a tool to export items to Facebook web service
0008  *
0009  * SPDX-FileCopyrightText: 2008-2009 by Luka Renko <lure at kubuntu dot org>
0010  * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_FB_WIDGET_H
0017 #define DIGIKAM_FB_WIDGET_H
0018 
0019 // Qt includes
0020 
0021 #include <QWidget>
0022 
0023 //local includes
0024 
0025 #include "wssettingswidget.h"
0026 #include "dinfointerface.h"
0027 
0028 using namespace Digikam;
0029 
0030 namespace DigikamGenericFaceBookPlugin
0031 {
0032 
0033 class FbWidget : public WSSettingsWidget
0034 {
0035     Q_OBJECT
0036 
0037 public:
0038 
0039     explicit FbWidget(QWidget* const parent,
0040                       DInfoInterface* const iface,
0041                       const QString& toolName);
0042     ~FbWidget();
0043 
0044     void updateLabels(const QString& name = QString(),
0045                       const QString& url = QString()) override;
0046 
0047 Q_SIGNALS:
0048 
0049     void reloadAlbums(long long userID);
0050 
0051 private Q_SLOTS:
0052 
0053     void slotReloadAlbumsRequest();
0054 
0055 private:
0056 
0057     friend class FbWindow;
0058 };
0059 
0060 } // namespace DigikamGenericFaceBookPlugin
0061 
0062 #endif // DIGIKAM_FB_WIDGET_H