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

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2013-11-18
0007  * Description : a tool to export items to Google web services
0008  *
0009  * SPDX-FileCopyrightText: 2013      by Pankaj Kumar <me at panks dot me>
0010  * SPDX-FileCopyrightText: 2013-2020 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_GS_WIDGET_H
0017 #define DIGIKAM_GS_WIDGET_H
0018 
0019 // Qt includes
0020 
0021 #include <QWidget>
0022 
0023 // Local includes
0024 
0025 #include "wssettingswidget.h"
0026 #include "gsitem.h"
0027 #include "dinfointerface.h"
0028 
0029 using namespace Digikam;
0030 
0031 class QButtonGroup;
0032 
0033 namespace DigikamGenericGoogleServicesPlugin
0034 {
0035 
0036 enum GPhotoTagsBehaviour
0037 {
0038     GPTagLeaf = 0,
0039     GPTagSplit,
0040     GPTagCombined
0041 };
0042 
0043 class GSWidget : public WSSettingsWidget
0044 {
0045     Q_OBJECT
0046 
0047 public:
0048 
0049     explicit GSWidget(QWidget* const parent,
0050                       DInfoInterface* const iface,
0051                       const GoogleService& service,
0052                       const QString& serviceName);
0053     ~GSWidget() override;
0054 
0055     void updateLabels(const QString& name = QString(),
0056                       const QString& url = QString()) override;
0057 
0058 private:
0059 
0060     GoogleService m_service;
0061     QButtonGroup* m_tagsBGrp;
0062 
0063     friend class GSWindow;
0064 };
0065 
0066 } // namespace DigikamGenericGoogleServicesPlugin
0067 
0068 #endif // DIGIKAM_GS_WIDGET_H