swift
atcstationview.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 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_ATCSTATIONVIEW_H
7 #define SWIFT_GUI_ATCSTATIONVIEW_H
8 
9 #include <QList>
10 #include <QObject>
11 
13 #include "gui/swiftguiexport.h"
17 #include "misc/pq/frequency.h"
18 
19 class QAction;
20 
21 namespace swift::misc::aviation
22 {
23  class CCallsign;
24 }
25 namespace swift::gui
26 {
27  namespace menus
28  {
29  class CMenuActions;
30  }
31  namespace views
32  {
35  public CViewWithCallsignObjects<swift::gui::models::CAtcStationListModel>
36  {
37  Q_OBJECT
38 
39  public:
41  explicit CAtcStationView(QWidget *parent = nullptr);
42 
44  void setStationMode(swift::gui::models::CAtcStationListModel::AtcStationMode stationMode);
45 
47  void changedAtcStationConnectionStatus(const swift::misc::aviation::CAtcStation &station, bool added);
48 
49  signals:
52 
56 
59 
60  protected:
62  virtual void customMenu(swift::gui::menus::CMenuActions &menuActions) override;
63 
64  private:
65  void emitTestRequest1kAtcOnlineDummies() { emit this->testRequestDummyAtcOnlineStations(1000); }
66  void emitTestRequest3kAtcOnlineDummies() { emit this->testRequestDummyAtcOnlineStations(3000); }
67  void tuneInAtcCom1();
68  void tuneInAtcCom2();
69  void requestTextMessage();
70 
71  QList<QAction *> m_actions;
72  QList<QAction *> m_debugActions;
73  };
74  } // namespace views
75 } // namespace swift::gui
76 
77 #endif // SWIFT_GUI_ATCSTATIONVIEW_H
Bunch of CMenuAction objects.
Definition: menuaction.h:384
void testRequestDummyAtcOnlineStations(int number)
Request some dummy ATC stations.
void requestTextMessageWidget(const swift::misc::aviation::CCallsign &callsign)
Request a text message to.
void requestComFrequency(const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit unit)
Request COM frequency.
Base class for views with DB objects.
Value object encapsulating information about an ATC station.
Definition: atcstation.h:38
Value object encapsulating information of a callsign.
Definition: callsign.h:30
GUI related classes.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.