digiKam
yfwidget.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 : 2008-09-12
7  * Description : a tool to export items to YandexFotki web service
8  *
9  * Copyright (C) 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com>
10  * Copyright (C) 2015-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_YF_WIDGET_H
25 #define DIGIKAM_YF_WIDGET_H
26 
27 // Qt includes
28 
29 #include <QCheckBox>
30 #include <QGroupBox>
31 #include <QComboBox>
32 
33 // Local includes
34 
35 #include "wssettingswidget.h"
36 #include "dinfointerface.h"
37 
38 using namespace Digikam;
39 
40 namespace DigikamGenericYFPlugin
41 {
42 
43 class YFWidget : public WSSettingsWidget
44 {
45  Q_OBJECT
46 
47 public:
48 
50  {
51  POLICY_UPDATE_MERGE = 0,
52  POLICY_UPDATE_KEEP, // is not used in GUI
54  POLICY_ADDNEW
55  };
56 
57 public:
58 
59  explicit YFWidget(QWidget* const parent, DInfoInterface* const iface, const QString& toolName);
60  ~YFWidget() override;
61 
62 public:
63 
64  void updateLabels(const QString& name = QString(),
65  const QString& url = QString())
66  override;
67 
68  QComboBox* accessCB() const;
69  QCheckBox* hideOriginalCB() const;
70  QCheckBox* disableCommentsCB() const;
71  QCheckBox* adultCB() const;
72  QButtonGroup* policyGB() const;
73 
74 private:
75 
76  class Private;
77  Private* const d;
78 };
79 
80 } // namespace DigikamGenericYFPlugin
81 
82 #endif // DIGIKAM_YF_WIDGET_H
Definition: yfwidget.h:44
UpdatePolicy
Definition: yfwidget.h:50
@ POLICY_UPDATE_KEEP
Definition: yfwidget.h:52
@ POLICY_SKIP
Definition: yfwidget.h:53
Definition: dinfointerface.h:56
Definition: wssettingswidget.h:54
Definition: yfalbum.cpp:27
Definition: datefolderview.cpp:43