digiKam
rajcewidget.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 : 2011-04-12
7  * Description : A tool to export items to Rajce web service
8  *
9  * Copyright (C) 2011 by Lukas Krejci <krejci.l at centrum dot cz>
10  * Copyright (C) 2011-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_RAJCE_WIDGET_H
25 #define DIGIKAM_RAJCE_WIDGET_H
26 
27 // Qt includes
28 
29 #include <QWidget>
30 #include <QString>
31 
32 // Local includes
33 
34 #include "wssettingswidget.h"
35 #include "dinfointerface.h"
36 
37 using namespace Digikam;
38 
40 {
41 
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit RajceWidget(DInfoInterface* const iface, QWidget* const parent);
49  ~RajceWidget() override;
50 
51 Q_SIGNALS:
52 
53  void signalLoginStatusChanged(bool loggedIn);
54 
55 public Q_SLOTS:
56 
57  void slotStartUpload();
58 
59 public:
60 
61  void reactivate();
62  void cancelUpload();
63 
64  void writeSettings();
65  void readSettings();
66 
67 private Q_SLOTS:
68 
69  void slotChangeUserClicked();
70 
71  void slotProgressStarted(unsigned);
72  void slotProgressFinished(unsigned);
73  void slotProgressChanged(unsigned, unsigned percent);
74 
75  void slotLoadAlbums();
76  void slotCreateAlbum();
77  void slotCloseAlbum();
78 
79  void slotUploadNext();
80 
81  void slotStartUploadAfterAlbumOpened();
82  void slotSelectedAlbumChanged(const QString&);
83 
84 private:
85 
86  void updateLabels(const QString& name = QString(),
87  const QString& url = QString()) override;
88 
89  void setEnabledWidgets(bool);
90 
91 private:
92 
93  class Private;
94  Private* const d;
95 };
96 
97 } // namespace DigikamGenericRajcePlugin
98 
99 #endif // DIGIKAM_RAJCE_WIDGET_H
Definition: rajcewidget.h:43
void signalLoginStatusChanged(bool loggedIn)
Definition: dinfointerface.h:56
Definition: wssettingswidget.h:54
Definition: rajcealbum.h:35
Definition: datefolderview.cpp:43