mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-19 22:37:58 +08:00
212ea2de30
- remove common lib - split settings, remove common-md - move ipc interop/kb_layout to interop - rename core -> settings, settings -> old_settings - os-detect header-only; interop -> PowerToysInterop - split notifications, move single-use headers where they're used - winstore lib - rename com utils - rename Updating and Telemetry projects - rename core -> settings-ui and remove examples folder - rename settings-ui folder + consisent common/version include
38 lines
1.5 KiB
C++
38 lines
1.5 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include "Generated Files/resource.h"
|
|
#include <common/SettingsAPI/settings_objects.h>
|
|
#include "registry_wrapper_interface.h"
|
|
|
|
namespace PowerPreviewSettings
|
|
{
|
|
// PowerToy Windows Explorer File Preview Settings.
|
|
class FileExplorerPreviewSettings
|
|
{
|
|
private:
|
|
bool m_toggleSettingEnabled;
|
|
std::wstring m_toggleSettingName;
|
|
std::wstring m_toggleSettingDescription;
|
|
std::wstring m_registryValueData;
|
|
LPCWSTR m_clsid;
|
|
|
|
protected:
|
|
std::unique_ptr<RegistryWrapperIface> m_registryWrapper;
|
|
|
|
public:
|
|
FileExplorerPreviewSettings(bool toggleSettingEnabled, const std::wstring& toggleSettingName, const std::wstring& toggleSettingDescription, LPCWSTR clsid, const std::wstring& registryValueData, std::unique_ptr<RegistryWrapperIface>);
|
|
|
|
virtual bool GetToggleSettingState() const;
|
|
virtual void UpdateToggleSettingState(bool state);
|
|
virtual std::wstring GetToggleSettingName() const;
|
|
virtual std::wstring GetToggleSettingDescription() const;
|
|
virtual LPCWSTR GetCLSID() const;
|
|
virtual std::wstring GetRegistryValueData() const;
|
|
virtual void LoadState(PowerToysSettings::PowerToyValues& settings);
|
|
virtual bool UpdateState(PowerToysSettings::PowerToyValues& settings, bool enabled, bool isElevated);
|
|
virtual LONG Enable() = 0;
|
|
virtual LONG Disable() = 0;
|
|
virtual bool CheckRegistryState() = 0;
|
|
};
|
|
}
|