swift
Loading...
Searching...
No Matches
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
20namespace Ui
21{
22 class CDbLiveryComponent;
23}
24namespace swift::misc::aviation
25{
26 class CLivery;
27}
28namespace swift::gui
29{
30 namespace views
31 {
32 class CLiveryView;
33 }
34 namespace components
35 {
43 {
45
46 public:
48 explicit CDbLiveryComponent(QWidget *parent = nullptr);
49
52
55
57 void filter(const swift::misc::aviation::CLivery &livery);
58
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:
76 };
77 } // namespace components
78} // namespace swift::gui
79
80#endif // SWIFT_GUI_COMPONENTS_DBLIVERYCOMPONENT_H
CEnableForDockWidgetInfoArea(CDockWidgetInfoArea *parentInfoArea=nullptr)
Constructor.
CEnableForViewBasedIndicator(views::CViewBaseNonTemplate *viewWithIndicator=nullptr)
Constructor.
COverlayMessagesFrame(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Constructor.
CDbLiveryComponent(QWidget *parent=nullptr)
Constructor.
void filterByAirline(const swift::misc::aviation::CAirlineIcaoCode &icao)
Filter by airline ICAO.
swift::gui::views::CLiveryView * view()
The livery view.
void filter(const swift::misc::aviation::CLivery &livery)
Filter by livery.
Value object for ICAO classification.
Value object encapsulating information about an airpot.
Definition livery.h:29
High level reusable GUI components.
Views, mainly QTableView.
GUI related classes.
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
#define SWIFT_GUI_EXPORT
Export a class or function from the library.