Background updater can be const, only needed "readonly" for UI

This commit is contained in:
Klaus Basan
2017-07-03 19:57:10 +02:00
committed by Mathew Sutcliffe
parent 6a17465633
commit a1e16ea162
5 changed files with 6 additions and 5 deletions

View File

@@ -39,12 +39,12 @@ namespace BlackGui
int getBackgroundUpdaterIntervallSecs() const;
//! Updater (the updater this setting is for)
void setBackgroundUpdater(BlackCore::Db::CBackgroundDataUpdater *updater);
void setBackgroundUpdater(const BlackCore::Db::CBackgroundDataUpdater *updater);
private:
QScopedPointer<Ui::CSettingsModelComponent> ui;
BlackMisc::CSetting<BlackGui::Settings::TBackgroundConsolidation> m_consolidationSetting { this, &CSettingsModelComponent::cacheChanged }; //!< consolidation time
BlackCore::Db::CBackgroundDataUpdater *m_updater = nullptr; //!< externally (i.e. other component) provided existing updater
const BlackCore::Db::CBackgroundDataUpdater *m_updater = nullptr; //!< externally (i.e. other component) provided existing updater
//! Consolidation time entered
void consolidationEntered();