Files
PowerToys/src/common/notifications/NotificationUtil.h
Davide Giacometti 9e1242e8d5 [Common]NotificationUtil helper class with FileWatcher (#36720)
* add NotificationUtil helper with file watcher and cache

* fix spellcheck

* indentation
2025-01-19 15:19:40 +00:00

23 lines
501 B
C++

#pragma once
#include <common/SettingsAPI/FileWatcher.h>
namespace notifications
{
class NotificationUtil
{
public:
NotificationUtil();
~NotificationUtil();
void WarnIfElevationIsRequired(std::wstring title, std::wstring message, std::wstring button1, std::wstring button2);
private:
std::unique_ptr<FileWatcher> m_settingsFileWatcher;
bool m_warningsElevatedApps;
bool m_warningShown = false;
void ReadSettings();
};
}