2008-09-18 03:15:49 +00:00
|
|
|
#include "..\Settings.h"
|
|
|
|
#include "Notification Settings.h"
|
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
bool CNotificationSettings::m_bInFullScreen = false;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
CNotificationSettings::CNotificationSettings()
|
|
|
|
{
|
2008-11-14 20:51:06 +00:00
|
|
|
_Settings->RegisterChangeCB(UserInterface_InFullScreen,this,(CSettings::SettingChangedFunc)StaticRefreshSettings);
|
|
|
|
RefreshSettings();
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CNotificationSettings::~CNotificationSettings()
|
|
|
|
{
|
|
|
|
if (_Settings)
|
|
|
|
{
|
2008-11-14 20:51:06 +00:00
|
|
|
_Settings->UnregisterChangeCB(UserInterface_InFullScreen,this,(CSettings::SettingChangedFunc)StaticRefreshSettings);
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
void CNotificationSettings::RefreshSettings()
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
2008-11-14 20:51:06 +00:00
|
|
|
m_bInFullScreen = _Settings->LoadBool(UserInterface_InFullScreen);
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|