2023-12-28 13:33:04 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-01-19 16:19:40 +01:00
|
|
|
#include <common/SettingsAPI/FileWatcher.h>
|
2023-12-28 13:33:04 +03:00
|
|
|
|
|
|
|
|
namespace notifications
|
|
|
|
|
{
|
2025-01-19 16:19:40 +01:00
|
|
|
class NotificationUtil
|
2023-12-28 13:33:04 +03:00
|
|
|
{
|
2025-01-19 16:19:40 +01:00
|
|
|
public:
|
|
|
|
|
NotificationUtil();
|
|
|
|
|
~NotificationUtil();
|
2023-12-28 13:33:04 +03:00
|
|
|
|
2025-01-19 16:19:40 +01:00
|
|
|
void WarnIfElevationIsRequired(std::wstring title, std::wstring message, std::wstring button1, std::wstring button2);
|
2023-12-28 13:33:04 +03:00
|
|
|
|
2025-01-19 16:19:40 +01:00
|
|
|
private:
|
|
|
|
|
std::unique_ptr<FileWatcher> m_settingsFileWatcher;
|
|
|
|
|
bool m_warningsElevatedApps;
|
|
|
|
|
bool m_warningShown = false;
|
2024-01-03 20:22:54 +03:00
|
|
|
|
2025-01-19 16:19:40 +01:00
|
|
|
void ReadSettings();
|
|
|
|
|
};
|
|
|
|
|
}
|