digiKam
imageshackwindow.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 : 2012-02-02
7  * Description : a tool to export items to ImageShack web service
8  *
9  * Copyright (C) 2012 by Dodon Victor <dodonvictor at gmail dot com>
10  * Copyright (C) 2013-2018 by Caulier Gilles <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_IMAGE_SHACK_WINDOW_H
25 #define DIGIKAM_IMAGE_SHACK_WINDOW_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QWidget>
31 
32 // Local includes
33 
34 #include "wstooldialog.h"
35 #include "ditemslist.h"
36 #include "dinfointerface.h"
37 
38 using namespace Digikam;
39 
41 {
42 
44 {
45  Q_OBJECT
46 
47 public:
48 
49  explicit ImageShackWindow(DInfoInterface* const iface, QWidget* const parent);
50  ~ImageShackWindow() override;
51 
52 public:
53 
55 
56 Q_SIGNALS:
57 
58  void signalBusy(bool val);
59 
60 private Q_SLOTS:
61 
62  void slotImageListChanged();
63  void slotStartTransfer();
64  void slotBusy(bool val);
65  void slotFinished();
66  void slotCancelClicked();
67 
68  void slotJobInProgress(int step, int, const QString& format);
69  void slotLoginDone(int errCode, const QString& errMsg);
70  void slotGetGalleriesDone(int errCode, const QString& errMsg);
71  void slotGetGalleries();
72 
73  void slotAddPhotoDone(int errCode, const QString& errMsg);
74 
75  void authenticate();
76 
77 private:
78 
79  void readSettings();
80  void saveSettings();
81 
82  void authenticationDone(int errCode, const QString& errMsg);
83 
84  void uploadNextItem();
85 
86  void closeEvent(QCloseEvent* e) override;
87 
88 private Q_SLOTS:
89 
90  void slotChangeRegistrantionCode();
91  void slotNewAlbumRequest();
92 
93 private:
94 
95  class Private;
96  Private* const d;
97 };
98 
99 } // namespace DigikamGenericImageShackPlugin
100 
101 #endif // DIGIKAM_IMAGE_SHACK_WINDOW_H
Definition: imageshackwindow.h:44
Definition: dinfointerface.h:56
Definition: ditemslist.h:196
Definition: wstooldialog.h:43
Definition: imageshackitem.h:32
Definition: datefolderview.cpp:43