swift
initialdataloadcomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_INITIALDATALOADCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_INITIALDATALOADCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 #include <QWizardPage>
12 
13 namespace Ui
14 {
15  class CInitialDataLoadComponent;
16 }
17 namespace swift::gui::components
18 {
23  class CInitialDataLoadComponent : public QFrame
24  {
25  Q_OBJECT
26 
27  public:
29  explicit CInitialDataLoadComponent(QWidget *parent = nullptr);
30 
33 
35  void loadAllFromShared();
36 
38  void loadAllFromDb();
39 
41  bool isLoadInProgress() const;
42 
43  private:
44  QScopedPointer<Ui::CInitialDataLoadComponent> ui;
45  };
46 
50  class CInitialDataLoadWizardPage : public QWizardPage
51  {
52  Q_OBJECT
53 
54  public:
56  using QWizardPage::QWizardPage;
57 
59  void setConfigComponent(CInitialDataLoadComponent *config) { m_config = config; }
60 
62  virtual void initializePage() override;
63 
65  virtual bool validatePage() override;
66 
67  private:
68  CInitialDataLoadComponent *m_config = nullptr;
69  };
70 } // namespace swift::gui::components
71 
72 #endif // SWIFT_GUI_COMPONENTS_INITIALDATALOADCOMPONENT_H
CInitialDataLoadComponent(QWidget *parent=nullptr)
Constructor.
Wizard page for CInitialDataLoadComponent.
void setConfigComponent(CInitialDataLoadComponent *config)
Set config.
High level reusable GUI components.
Definition: aboutdialog.cpp:13