swift
ecosystemcombobox.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2017 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_ECOSYSTEMCOMBOBOX_H
7 #define SWIFT_GUI_ECOSYSTEMCOMBOBOX_H
8 
9 #include <QComboBox>
10 
12 
13 namespace swift::gui
14 {
16  class CEcosystemComboBox : public QComboBox
17  {
18  Q_OBJECT
19 
20  public:
22  CEcosystemComboBox(QWidget *parent = nullptr);
23 
25  CEcosystemComboBox(const swift::misc::network::CEcosystemList &systems, QWidget *parent = nullptr);
26 
28  virtual ~CEcosystemComboBox() {}
29 
32 
35 
38 
39  private:
41  void initAllItems();
42 
44  };
45 } // namespace swift::gui
46 #endif // SWIFT_GUI_ECOSYSTEMCOMBOBOX_H
Combo box widget for ecosystems.
swift::misc::network::CEcosystem getSelectedEcosystem() const
The selected ecosystem.
virtual ~CEcosystemComboBox()
Destructor.
CEcosystemComboBox(QWidget *parent=nullptr)
Constructor.
void setCurrentEcosystem(const swift::misc::network::CEcosystem &ecosystem)
Set current system.
void setEcosystems(const swift::misc::network::CEcosystemList &systems)
Set the supported systems.
Ecosystem of server belonging together.
Definition: ecosystem.h:21
Value object encapsulating a list of voice rooms.
Definition: ecosystemlist.h:25
static const CEcosystemList & allKnownSystems()
All systems.
GUI related classes.