File indexing completed on 2025-01-05 03:53:42
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2011-04-12 0007 * Description : A tool to export items to Rajce web service 0008 * 0009 * SPDX-FileCopyrightText: 2011 by Lukas Krejci <krejci.l at centrum dot cz> 0010 * SPDX-FileCopyrightText: 2011-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_RAJCE_WIDGET_H 0017 #define DIGIKAM_RAJCE_WIDGET_H 0018 0019 // Qt includes 0020 0021 #include <QWidget> 0022 #include <QString> 0023 0024 // Local includes 0025 0026 #include "wssettingswidget.h" 0027 #include "dinfointerface.h" 0028 0029 using namespace Digikam; 0030 0031 namespace DigikamGenericRajcePlugin 0032 { 0033 0034 class RajceWidget : public WSSettingsWidget 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 0040 explicit RajceWidget(DInfoInterface* const iface, QWidget* const parent); 0041 ~RajceWidget() override; 0042 0043 Q_SIGNALS: 0044 0045 void signalLoginStatusChanged(bool loggedIn); 0046 0047 public Q_SLOTS: 0048 0049 void slotStartUpload(); 0050 0051 public: 0052 0053 void reactivate(); 0054 void cancelUpload(); 0055 0056 void writeSettings(); 0057 void readSettings(); 0058 0059 private Q_SLOTS: 0060 0061 void slotChangeUserClicked(); 0062 0063 void slotProgressStarted(unsigned); 0064 void slotProgressFinished(unsigned); 0065 void slotProgressChanged(unsigned, unsigned percent); 0066 0067 void slotLoadAlbums(); 0068 void slotCreateAlbum(); 0069 void slotCloseAlbum(); 0070 0071 void slotUploadNext(); 0072 0073 void slotStartUploadAfterAlbumOpened(); 0074 void slotSelectedAlbumChanged(const QString&); 0075 0076 private: 0077 0078 void updateLabels(const QString& name = QString(), 0079 const QString& url = QString()) override; 0080 0081 void setEnabledWidgets(bool); 0082 0083 private: 0084 0085 class Private; 0086 Private* const d; 0087 }; 0088 0089 } // namespace DigikamGenericRajcePlugin 0090 0091 #endif // DIGIKAM_RAJCE_WIDGET_H