mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
23 lines
501 B
C++
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();
|
|
};
|
|
}
|