digiKam
piwigowindow.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 : 2014-09-30
7  * Description : a tool to export items to Piwigo web service
8  *
9  * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2006 by Colin Guthrie <kde at colin dot guthr dot ie>
11  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  * Copyright (C) 2008 by Andrea Diamantini <adjam7 at gmail dot com>
13  * Copyright (C) 2010-2014 by Frederic Coiffier <frederic dot coiffier at free dot com>
14  *
15  * This program is free software; you can redistribute it
16  * and/or modify it under the terms of the GNU General
17  * Public License as published by the Free Software Foundation;
18  * either version 2, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * ============================================================ */
26 
27 #ifndef DIGIKAM_PIWIGO_WINDOW_H
28 #define DIGIKAM_PIWIGO_WINDOW_H
29 
30 // Qt includes
31 
32 #include <QList>
33 
34 // Local includes
35 
36 #include "piwigoitem.h"
37 #include "wstooldialog.h"
38 #include "dinfointerface.h"
39 
40 using namespace Digikam;
41 
43 {
44 
45 class PiwigoWindow : public WSToolDialog
46 {
47  Q_OBJECT
48 
49 public:
50 
51  explicit PiwigoWindow(DInfoInterface* const iface,
52  QWidget* const parent);
53  ~PiwigoWindow() override;
54 
55 private:
56 
57  void connectSignals();
58  void readSettings();
59  QString cleanName(const QString&) const;
60 
61 private Q_SLOTS:
62 
63  void slotDoLogin();
64  void slotLoginFailed(const QString& msg);
65  void slotBusy(bool val);
66  void slotProgressInfo(const QString& msg);
67  void slotError(const QString& msg);
68  void slotAlbums(const QList<PiwigoAlbum>& albumList);
69  void slotAlbumSelected();
70  void slotAddPhoto();
71  void slotAddPhotoNext();
72  void slotAddPhotoSucceeded();
73  void slotAddPhotoFailed(const QString& msg);
74  void slotAddPhotoCancel();
75  void slotEnableSpinBox(int n);
76  void slotSettings();
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 };
83 
84 } // namespace DigikamGenericPiwigoPlugin
85 
86 #endif // DIGIKAM_PIWIGO_WINDOW_H
Definition: piwigowindow.h:46
Definition: dinfointerface.h:56
Definition: wstooldialog.h:43
Definition: piwigotalker.h:48
Definition: piwigoitem.h:35
Definition: datefolderview.cpp:43