The Battle for Wesnoth  1.19.7+dev
Namespaces | Macros | Functions | Variables
dbus_features.cpp File Reference
#include "desktop/dbus_features.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "log.hpp"
#include <dbus/dbus.h>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/member.hpp>
#include <cstdlib>
#include <functional>
#include <memory>
#include <string>
Include dependency graph for dbus_features.cpp:

Go to the source code of this file.

Namespaces

 dbus
 

Macros

#define ERR_DU   LOG_STREAM(err, log_desktop)
 
#define LOG_DU   LOG_STREAM(info, log_desktop)
 
#define DBG_DU   LOG_STREAM(info, log_desktop)
 

Functions

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

Variables

static lg::log_domain log_desktop ("desktop")
 
const std::size_t dbus::MAX_MSG_LINES = 5
 

Macro Definition Documentation

◆ DBG_DU

#define DBG_DU   LOG_STREAM(info, log_desktop)

Definition at line 41 of file dbus_features.cpp.

◆ ERR_DU

#define ERR_DU   LOG_STREAM(err, log_desktop)

Definition at line 39 of file dbus_features.cpp.

◆ LOG_DU

#define LOG_DU   LOG_STREAM(info, log_desktop)

Definition at line 40 of file dbus_features.cpp.

Variable Documentation

◆ log_desktop

lg::log_domain log_desktop("desktop") ( "desktop"  )
static