swift
dbcountrycomponent.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_DBCOUNTRYCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_DBCOUNTRYCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 
15 #include "gui/swiftguiexport.h"
17 
18 class QWidget;
19 
20 namespace Ui
21 {
22  class CDbCountryComponent;
23 }
24 namespace swift::gui::components
25 {
30  public QFrame,
33  {
34  Q_OBJECT
35 
36  public:
38  explicit CDbCountryComponent(QWidget *parent = nullptr);
39 
41  virtual ~CDbCountryComponent() override;
42 
43  private:
45  void onCountriesRead(swift::misc::network::CEntityFlags::Entity entity,
46  swift::misc::network::CEntityFlags::ReadState readState, int count, const QUrl &url);
47 
49  void onReload();
50 
51  private:
52  QScopedPointer<Ui::CDbCountryComponent> ui;
53  };
54 
55 } // namespace swift::gui::components
56 
57 #endif // SWIFT_GUI_COMPONENTS_DBCOUNTRYCOMPONENT_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.
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.