digiKam
flickrwidget.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2005-07-07
7  * Description : a tool to export images to Flickr web service
8  *
9  * Copyright (C) 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
10  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_FLICKR_WIDGET_H
25 #define DIGIKAM_FLICKR_WIDGET_H
26 
27 // Qt includes
28 
29 #include <QWidget>
30 #include <QTabWidget>
31 #include <QLineEdit>
32 #include <QComboBox>
33 
34 // Local includes
35 
36 #include "wscomboboxintermediate.h"
37 #include "flickrlist.h"
38 #include "wssettingswidget.h"
39 #include "dinfointerface.h"
40 
41 using namespace Digikam;
42 
44 {
45 
47 {
48  Q_OBJECT
49 
50 public:
51 
52  explicit FlickrWidget(QWidget* const parent,
53  DInfoInterface* const iface,
54  const QString& serviceName);
55  ~FlickrWidget() override;
56 
57  void updateLabels(const QString& name = QString(),
58  const QString& url = QString()) override;
59 
60 private Q_SLOTS:
61 
62  void slotPermissionChanged(FlickrList::FieldType, Qt::CheckState);
63  void slotSafetyLevelChanged(FlickrList::SafetyLevel);
64  void slotContentTypeChanged(FlickrList::ContentType);
65  void slotMainPublicToggled(int);
66  void slotMainFamilyToggled(int);
67  void slotMainFriendsToggled(int);
68  void slotMainSafetyLevelChanged(int);
69  void slotMainContentTypeChanged(int);
70  void slotExtendedPublicationToggled(bool);
71  void slotExtendedTagsToggled(bool);
72  void slotAddExtraTagsToggled(bool);
73 
74 private:
75 
76  void mainPermissionToggled(FlickrList::FieldType, Qt::CheckState);
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 
83  friend class FlickrWindow;
84 };
85 
86 } // namespace DigikamGenericFlickrPlugin
87 
88 #endif // DIGIKAM_FLICKR_WIDGET_H
ContentType
Definition: flickrlist.h:76
FieldType
Definition: flickrlist.h:52
SafetyLevel
Definition: flickrlist.h:65
Definition: flickrwidget.h:47
Definition: flickrwindow.h:50
Definition: dinfointerface.h:56
Definition: wssettingswidget.h:54
Definition: flickritem.h:37
Definition: datefolderview.cpp:43