swift
dbliverycomponent.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_DBLIVERYCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_DBLIVERYCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 
16 #include "gui/swiftguiexport.h"
19 
20 namespace Ui
21 {
22  class CDbLiveryComponent;
23 }
24 namespace swift::misc::aviation
25 {
26  class CLivery;
27 }
28 namespace swift::gui
29 {
30  namespace views
31  {
32  class CLiveryView;
33  }
34  namespace components
35  {
40  public COverlayMessagesFrame,
43  {
44  Q_OBJECT
45 
46  public:
48  explicit CDbLiveryComponent(QWidget *parent = nullptr);
49 
51  virtual ~CDbLiveryComponent();
52 
55 
57  void filter(const swift::misc::aviation::CLivery &livery);
58 
60  void filterByAirline(const swift::misc::aviation::CAirlineIcaoCode &icao);
61 
62  private:
64  void onLiveriesRead(swift::misc::network::CEntityFlags::Entity entity,
66 
68  void onEntityDownloadProgress(swift::misc::network::CEntityFlags::Entity entity, int logId, int progress,
69  qint64 current, qint64 max, const QUrl &url);
70 
72  void onReload();
73 
74  private:
75  QScopedPointer<Ui::CDbLiveryComponent> ui;
76  };
77  } // namespace components
78 } // namespace swift::gui
79 
80 #endif // SWIFT_GUI_COMPONENTS_DBLIVERYCOMPONENT_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.
Value object encapsulating information about an airpot.
Definition: livery.h:29
GUI related classes.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.