swift
dbaircrafticaocomponent.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_GUI_COMPONENTS_DBAIRCRAFTICAOCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_DBAIRCRAFTICAOCOMPONENT_H
8 
9 #include <QObject>
10 #include <QScopedPointer>
11 
15 #include "gui/swiftguiexport.h"
17 
18 namespace Ui
19 {
20  class CDbAircraftIcaoComponent;
21 }
22 namespace swift::misc::aviation
23 {
24  class CAircraftIcaoCode;
25 }
26 namespace swift::gui
27 {
28  namespace views
29  {
31  }
32  namespace components
33  {
38  public COverlayMessagesFrame,
41  {
42  Q_OBJECT
43 
44  public:
46  explicit CDbAircraftIcaoComponent(QWidget *parent = nullptr);
47 
49  virtual ~CDbAircraftIcaoComponent() override;
50 
53 
55  void filter(const swift::misc::aviation::CAircraftIcaoCode &icao);
56 
58  bool selectAircraftIcao(const swift::misc::aviation::CAircraftIcaoCode &icao);
59 
60  private:
62  void onIcaoRead(swift::misc::network::CEntityFlags::Entity entity,
64 
66  void onEntityDownloadProgress(swift::misc::network::CEntityFlags::Entity entity, int logId, int progress,
67  qint64 current, qint64 max, const QUrl &url);
68 
70  void onReload();
71 
72  private:
73  QScopedPointer<Ui::CDbAircraftIcaoComponent> ui;
74  };
75  } // namespace components
76 } // namespace swift::gui
77 
78 #endif // SWIFT_GUI_COMPONENTS_DBAIRCRAFTICAOCOMPONENT_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.
Value object for ICAO classification.
GUI related classes.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.