swift
dbmodelcomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_UI_COMPONENTS_DBMODELCOMPONENT_H
7 #define SWIFT_UI_COMPONENTS_DBMODELCOMPONENT_H
8 
9 #include <QObject>
10 #include <QScopedPointer>
11 
16 #include "gui/swiftguiexport.h"
20 
21 namespace Ui
22 {
23  class CDbModelComponent;
24 }
25 namespace swift::gui::components
26 {
31  public COverlayMessagesFrame,
35  {
36  Q_OBJECT
37 
38  public:
40  explicit CDbModelComponent(QWidget *parent = nullptr);
41 
43  virtual ~CDbModelComponent();
44 
47 
49  bool hasModels() const;
50 
52  void requestUpdatedData();
53 
54  signals:
57 
58  private:
60  void onModelsRead(swift::misc::network::CEntityFlags::Entity entity,
61  swift::misc::network::CEntityFlags::ReadState readState, int count, const QUrl &url);
62 
64  void onReload();
65 
67  void onStyleSheetChanged();
68 
70  void onEntityDownloadProgress(swift::misc::network::CEntityFlags::Entity entity, int logId, int progress,
71  qint64 current, qint64 max, const QUrl &url);
72 
73  private:
74  QScopedPointer<Ui::CDbModelComponent> ui;
75  };
76 } // namespace swift::gui::components
77 
78 #endif // SWIFT_UI_COMPONENTS_DBMODELCOMPONENT_H
Helper class: If a component is residing in an dockable widget. This class provides access to its inf...
Hand over indication task to an embedded view.
Using this class provides a QFrame with the overlay functionality already integrated.
Allows subcomponents to gain access to model component.
swift::misc::simulation::CAircraftModel getLatestModel() const
Get latest model if any.
void requestStash(const swift::misc::simulation::CAircraftModelList &models)
Request to stash the selected models.
Aircraft model (used by another pilot, my models on disk)
Definition: aircraftmodel.h:71
Value object encapsulating a list of aircraft models.
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.