The Battle for Wesnoth  1.15.2+dev
Functions
desktop::battery_info::apple Namespace Reference

Functions

bool does_device_have_battery ()
 
double get_battery_percentage ()
 

Function Documentation

◆ does_device_have_battery()

bool desktop::battery_info::apple::does_device_have_battery ( )
Returns
true if the device has a battery, false otherwise.

Definition at line 32 of file battery_info.cpp.

References windows_battery_info::does_device_have_battery(), does_device_have_battery(), and dbus::does_device_have_battery().

Referenced by theme::add_object(), and desktop::battery_info::does_device_have_battery().

◆ get_battery_percentage()

double desktop::battery_info::apple::get_battery_percentage ( )
Returns
battery charge as a number between 0 and 100.

Definition at line 45 of file battery_info.cpp.

References windows_battery_info::get_battery_percentage(), get_battery_percentage(), and dbus::get_battery_percentage().

Referenced by desktop::battery_info::get_battery_percentage(), and REPORT_GENERATOR().