swift
settingsmodelcomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2016 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_SETTINGSMODELCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_SETTINGSMODELCOMPONENT_H
8 
9 #include <QFrame>
10 
13 
14 namespace Ui
15 {
16  class CSettingsModelComponent;
17 }
18 namespace swift::core::db
19 {
20  class CBackgroundDataUpdater;
21 }
22 namespace swift::gui::components
23 {
27  class CSettingsModelComponent : public QFrame
28  {
29  Q_OBJECT
30 
31  public:
33  explicit CSettingsModelComponent(QWidget *parent = nullptr);
34 
36  virtual ~CSettingsModelComponent();
37 
40 
43 
44  private:
45  QScopedPointer<Ui::CSettingsModelComponent> ui;
47  this, &CSettingsModelComponent::cacheChanged
48  };
50  this, &CSettingsModelComponent::cacheChanged
51  };
53  nullptr;
54 
56  void consolidationEntered();
57 
59  void allowExcludedModelsChanged(bool allow);
60 
62  void cacheChanged();
63  };
64 } // namespace swift::gui::components
65 
66 #endif // SWIFT_GUI_COMPONENTS_SETTINGSMODELCOMPONENT_H
Update and consolidation of DB data.
Settings UI for model matching/mapping.
CSettingsModelComponent(QWidget *parent=nullptr)
Constructor.
void setBackgroundUpdater(const swift::core::db::CBackgroundDataUpdater *updater)
Updater (the updater this setting is for)
int getBackgroundUpdaterIntervallSecs() const
Interval, -1 for disabled.
Class template for accessing a specific value in the CSettingsCache.
Definition: settingscache.h:68
Classes interacting with the swift database (aka "datastore").
High level reusable GUI components.
Definition: aboutdialog.cpp:13