The Battle for Wesnoth  1.15.1+dev
Functions | Variables
dbus Namespace Reference

Functions

void send_notification (const std::string &owner, const std::string &message, bool with_history)
 
bool does_device_have_battery ()
 
double get_battery_percentage ()
 

Variables

const std::size_t MAX_MSG_LINES = 5
 

Function Documentation

◆ does_device_have_battery()

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

Definition at line 305 of file dbus_features.cpp.

Referenced by desktop::battery_info::does_device_have_battery().

◆ get_battery_percentage()

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

Definition at line 310 of file dbus_features.cpp.

Referenced by desktop::battery_info::get_battery_percentage().

◆ send_notification()

void dbus::send_notification ( const std::string &  owner,
const std::string &  message,
bool  with_history 
)

Definition at line 264 of file dbus_features.cpp.

References ERR_DU, and i.

Referenced by desktop::notifications::send().

Variable Documentation

◆ MAX_MSG_LINES

const std::size_t dbus::MAX_MSG_LINES = 5

Definition at line 262 of file dbus_features.cpp.