digiKam
wswizard.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 : 2017-06-27
7  * Description : a tool to export items to web services.
8  *
9  * Copyright (C) 2017-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2018 by Thanh Trung Dinh <dinhthanhtrung1996 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_WS_WIZARD_H
25 #define DIGIKAM_WS_WIZARD_H
26 
27 // Qt includes
28 
29 #include <QList>
30 #include <QUrl>
31 #include <QSettings>
32 
33 // Local includes
34 
35 #include "dwizarddlg.h"
36 #include "dinfointerface.h"
37 #include "o0settingsstore.h"
38 #include "wssettings.h"
39 #include "wsauthentication.h"
40 
41 using namespace Digikam;
42 
44 {
45 
46 class WSWizard : public DWizardDlg
47 {
48  Q_OBJECT
49 
50 public:
51 
52  explicit WSWizard(DInfoInterface* const iface, QWidget* const parent);
53  ~WSWizard();
54 
55  bool validateCurrentPage() override;
56  int nextId() const override;
57 
58  DInfoInterface* iface() const;
59  WSSettings* settings() const;
60 
61  /*
62  * Instance of WSAuthentication (which wraps instance of WSTalker) and correspondent QSettings
63  * are initialized only once in WSWizard.
64  *
65  * These 2 methods below are getters, used in other pages of wizard so as to facilitate
66  * access to WSAuthentication instance and its settings.
67  */
68  WSAuthentication* wsAuth() const;
69  QSettings* oauthSettings() const;
70  O0SettingsStore* oauthSettingsStore() const;
71 
72  void setItemsList(const QList<QUrl>& urls);
73 
74 public Q_SLOTS:
75 
76  void slotBusy(bool val);
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 };
83 
84 } // namespace DigikamGenericUnifiedPlugin
85 
86 #endif // DIGIKAM_WS_WIZARD_H
Definition: wsauthentication.h:49
Definition: wswizard.h:47
Definition: dinfointerface.h:56
Definition: dwizarddlg.h:40
Definition: wssettings.h:49
Definition: wsauthentication.cpp:56
Definition: datefolderview.cpp:43