mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
17 lines
463 B
C
17 lines
463 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "SettingsObserver.h"
|
||
|
|
|
||
|
|
// The LightSwitchServiceObserver reacts when LightSwitchSettings changes.
|
||
|
|
class LightSwitchServiceObserver : public SettingsObserver
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit LightSwitchServiceObserver(std::unordered_set<SettingId> observedSettings) :
|
||
|
|
SettingsObserver(std::move(observedSettings))
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void SettingsUpdate(SettingId id) override;
|
||
|
|
bool WantsToBeNotified(SettingId id) const noexcept override;
|
||
|
|
};
|