| 11 | namespace winrt::TranslucentTB::Xaml::Pages::implementation |
| 12 | { |
| 13 | TrayFlyoutPage::TrayFlyoutPage(bool hasPackageIdentity) : |
| 14 | m_HasPackageIdentity(hasPackageIdentity) |
| 15 | { |
| 16 | SYSTEM_POWER_STATUS powerStatus; |
| 17 | if (GetSystemPowerStatus(&powerStatus)) |
| 18 | { |
| 19 | // 128 means no system battery. assume everything else |
| 20 | // means the system has one. |
| 21 | m_SystemHasBattery = powerStatus.BatteryFlag != 128; |
| 22 | } |
| 23 | else |
| 24 | { |
| 25 | m_SystemHasBattery = true; // assume the system has a battery |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | void TrayFlyoutPage::SetTaskbarSettings(const txmp::TaskbarState &state, const txmp::TaskbarAppearance &appearance) |
| 30 | { |
nothing calls this directly
no outgoing calls
no test coverage detected