digiKam
vkwindow.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 : 2010-11-15
7  * Description : a tool to export images to VKontakte web service
8  *
9  * Copyright (C) 2011-2015 by Alexander Potashev <aspotashev at gmail dot com>
10  * Copyright (C) 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
11  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  * Copyright (C) 2009 by Luka Renko <lure at kubuntu dot org>
13  * Copyright (C) 2010 by Roman Tsisyk <roman at tsisyk 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_VK_WINDOW_H
28 #define DIGIKAM_VK_WINDOW_H
29 
30 // Local includes
31 
32 #include "wstooldialog.h"
33 #include "dprogresswdg.h"
34 #include "dinfointerface.h"
35 #include "ditemslist.h"
36 
37 class KJob;
38 
39 using namespace Digikam;
40 
42 {
43 
44 class VKWindow : public WSToolDialog
45 {
46  Q_OBJECT
47 
48 public:
49 
50  explicit VKWindow(DInfoInterface* const iface,
51  QWidget* const parent,
52  bool import = false);
53  ~VKWindow() override;
54 
59  void startReactivation();
60 
61 Q_SIGNALS:
62 
63  void signalUpdateBusyStatus(bool busy);
64 
65 private Q_SLOTS:
66 
67  // requesting photo information
68  void slotPhotoUploadDone(KJob* kjob);
69 
70  void slotStartTransfer();
71 
72  void slotFinished();
73 
74  void slotUpdateBusyStatus(bool busy);
75  void slotUpdateBusyStatusReady();
76 
77  void slotAuthenticated();
78  void slotAuthCleared();
79  void slotUpdateHeaderLabel();
80 
81 private:
82 
83  void initAccountBox();
84 
85  void readSettings();
86  void writeSettings();
87 
88  void reset();
89 
90  void handleVkError(KJob* kjob);
91 
92  void closeEvent(QCloseEvent* event) override;
93 
94 private:
95 
96  class Private;
97  Private* const d;
98 };
99 
100 } // namespace DigikamGenericVKontaktePlugin
101 
102 #endif // DIGIKAM_VK_WINDOW_H
Definition: dinfointerface.h:56
Definition: wstooldialog.h:43
Definition: vkalbumchooser.cpp:52
Definition: datefolderview.cpp:43