Implement event handling and logging improvements

- Updated `ChatMuteList` to implement `UserMuteStateChanged` methods with logging and event handling.
- Modified `UserDisplayInfo` methods to log informational messages instead of throwing exceptions.
- Introduced `m_notificationPositionHint` in `SystemUI` and updated `SetNotificationPositionHint` to log changes.
- Updated header files to declare new static members for better accessibility.
This commit is contained in:
Serenity
2025-06-03 06:15:14 -04:00
parent 9d6d26d584
commit 07e5a6de1e
5 changed files with 57 additions and 10 deletions

View File

@@ -6,39 +6,40 @@ namespace winrt::Windows::Xbox::System::implementation
{
hstring UserDisplayInfo::Gamertag()
{
LOG_NOT_IMPLEMENTED();
LOG_INFO("UserDisplayInfo::Gamertag() called");
hstring gamertag = L"durangler" + m_gamertag;
return gamertag;
}
uint32_t UserDisplayInfo::GamerScore()
{
LOG_NOT_IMPLEMENTED(); return 0;
LOG_INFO("UserDisplayInfo::GamerScore() called");
return 0;
}
hstring UserDisplayInfo::ApplicationDisplayName()
{
LOG_NOT_IMPLEMENTED();
LOG_INFO("UserDisplayInfo::GameDisplayName() called");
return winrt::to_hstring("WinDurango");
}
hstring UserDisplayInfo::GameDisplayName()
{
LOG_NOT_IMPLEMENTED();
LOG_INFO("UserDisplayInfo::GameDisplayName() called");
hstring gamertag = L"durangler" + m_gamertag;
return gamertag;
}
int32_t UserDisplayInfo::Reputation()
{
LOG_NOT_IMPLEMENTED();
LOG_INFO("UserDisplayInfo::Reputation() called");
return 1;
}
winrt::Windows::Xbox::System::UserAgeGroup UserDisplayInfo::AgeGroup()
{
Logger::Info("UserDisplayInfo::AgeGroup() called");
LOG_INFO("UserDisplayInfo::AgeGroup() called");
return UserAgeGroup::Unknown;
}
winrt::Windows::Foundation::Collections::IVectorView<uint32_t> UserDisplayInfo::Privileges()
{
LOG_NOT_IMPLEMENTED();
LOG_INFO("UserDisplayInfo::Privileges() called");
auto vector = winrt::single_threaded_vector<uint32_t>();
vector.Append(1);
return vector.GetView();