The Battle for Wesnoth  1.17.0-dev
Functions | Variables
dbus Namespace Reference


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


const std::size_t MAX_MSG_LINES = 5

Function Documentation

◆ does_device_have_battery()

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

Definition at line 307 of file dbus_features.cpp.

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

◆ get_battery_percentage()

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

Definition at line 312 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 266 of file dbus_features.cpp.

References ERR_DU, and i.

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

Variable Documentation


const std::size_t dbus::MAX_MSG_LINES = 5

Definition at line 264 of file dbus_features.cpp.