The Battle for Wesnoth  1.19.5+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 ( )

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 ( )

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, i, and MAX_MSG_LINES.

Variable Documentation

◆ MAX_MSG_LINES

const std::size_t dbus::MAX_MSG_LINES = 5

Definition at line 264 of file dbus_features.cpp.

Referenced by send_notification().