swift
dbairlineicaocomponent.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_DBAIRLINEICAOCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_DBAIRLINEICAOCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 
16 #include "gui/swiftguiexport.h"
18 
19 namespace Ui
20 {
21  class CDbAirlineIcaoComponent;
22 }
23 namespace swift::gui
24 {
25  namespace views
26  {
27  class CAirlineIcaoCodeView;
28  }
29  namespace components
30  {
35  public COverlayMessagesFrame,
38  {
39  Q_OBJECT
40 
41  public:
43  explicit CDbAirlineIcaoComponent(QWidget *parent = nullptr);
44 
46  virtual ~CDbAirlineIcaoComponent();
47 
50 
51  private:
53  void onIcaoRead(swift::misc::network::CEntityFlags::Entity entity,
54  swift::misc::network::CEntityFlags::ReadState readState, int count, const QUrl &url);
55 
57  void onEntityDownloadProgress(swift::misc::network::CEntityFlags::Entity entity, int logId, int progress,
58  qint64 current, qint64 max, const QUrl &url);
59 
61  void onReload();
62 
63  private:
64  QScopedPointer<Ui::CDbAirlineIcaoComponent> ui;
65  };
66  } // namespace components
67 } // namespace swift::gui
68 #endif // SWIFT_GUI_COMPONENTS_DBAIRLINEICAOCOMPONENT_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.
GUI related classes.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.