swift
modelmatcherlogenable.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 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_MODELMATCHERLOGENABLE_H
7 #define SWIFT_GUI_COMPONENTS_MODELMATCHERLOGENABLE_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
13 
14 namespace Ui
15 {
16  class CModelMatcherLogEnable;
17 }
18 namespace swift::gui::components
19 {
21  class CModelMatcherLogEnable : public QFrame
22  {
23  Q_OBJECT
24 
25  public:
27  explicit CModelMatcherLogEnable(QWidget *parent = nullptr);
28 
30  virtual ~CModelMatcherLogEnable() override;
31 
33  bool isReverseLookupLogEnabled() const;
34 
36  bool isMatchingLogEnabled() const;
37 
38  private:
39  QScopedPointer<Ui::CModelMatcherLogEnable> ui;
40 
42  void enabledCheckboxChanged(bool enabled);
43 
45  void initGui();
46 
48  bool hasContexts() const;
49 
51  void valuesChanged();
52 
54  void connectionStatusChanged(const swift::misc::network::CConnectionStatus &from,
56  };
57 } // namespace swift::gui::components
58 
59 #endif // SWIFT_GUI_COMPONENTS_MODELMATCHERLOGENABLE_H
bool isMatchingLogEnabled() const
Matching log.enabled.
CModelMatcherLogEnable(QWidget *parent=nullptr)
Constructor.
bool isReverseLookupLogEnabled() const
Reverse lookup enabled?
Value object encapsulating information about a connection status.
High level reusable GUI components.
Definition: aboutdialog.cpp:13