File indexing completed on 2025-01-19 03:52:58

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2005-07-07
0007  * Description : a tool to export images to Flickr web service
0008  *
0009  * SPDX-FileCopyrightText: 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
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_FLICKR_WIDGET_H
0017 #define DIGIKAM_FLICKR_WIDGET_H
0018 
0019 // Qt includes
0020 
0021 #include <QWidget>
0022 #include <QTabWidget>
0023 #include <QLineEdit>
0024 #include <QComboBox>
0025 
0026 // Local includes
0027 
0028 #include "wscomboboxintermediate.h"
0029 #include "flickrlist.h"
0030 #include "wssettingswidget.h"
0031 #include "dinfointerface.h"
0032 
0033 using namespace Digikam;
0034 
0035 namespace DigikamGenericFlickrPlugin
0036 {
0037 
0038 class FlickrWidget : public WSSettingsWidget
0039 {
0040     Q_OBJECT
0041 
0042 public:
0043 
0044     explicit FlickrWidget(QWidget* const parent,
0045                           DInfoInterface* const iface,
0046                           const QString& serviceName);
0047     ~FlickrWidget()                                     override;
0048 
0049     void updateLabels(const QString& name = QString(),
0050                       const QString& url = QString())   override;
0051 
0052 private Q_SLOTS:
0053 
0054     void slotPermissionChanged(FlickrList::FieldType, Qt::CheckState);
0055     void slotSafetyLevelChanged(FlickrList::SafetyLevel);
0056     void slotContentTypeChanged(FlickrList::ContentType);
0057     void slotMainPublicToggled(int);
0058     void slotMainFamilyToggled(int);
0059     void slotMainFriendsToggled(int);
0060     void slotMainSafetyLevelChanged(int);
0061     void slotMainContentTypeChanged(int);
0062     void slotExtendedPublicationToggled(bool);
0063     void slotExtendedTagsToggled(bool);
0064     void slotAddExtraTagsToggled(bool);
0065 
0066 private:
0067 
0068     void mainPermissionToggled(FlickrList::FieldType, Qt::CheckState);
0069 
0070 private:
0071 
0072     class Private;
0073     Private* const d;
0074 
0075     friend class FlickrWindow;
0076 };
0077 
0078 } // namespace DigikamGenericFlickrPlugin
0079 
0080 #endif // DIGIKAM_FLICKR_WIDGET_H