mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

Add a QDBusConnection to org.freedesktop.UPower to DBusPower in dbuspower.cpp. Add a QDBusInterface (m_uPowerInter) to PowerPlugin in powerplugin.h to retrieve the correct battery device (calling 'EnumerateDevices'). Add a QDBusInterface (m_uBatteryDeviceInter) to PowerPlugin in powerplugin.h to gather battery time to empty and to fully recharged, and display it in the power widget tip. Add BatteryState enum in powerplugin.h to replace BATTERY_DISCHARED and BATTERY_FULL macros, and add support for all the battery states provided by UPower. Change-Id: Ia4677298a1d13cab1e1a03035dbe4a2e660f994b
DDE Dock
DDE Dock is the dock of Deepin Desktop Environment.
A tutorial for build dde-dock plugin: plugins-developer-guide
Getting help
Any usage issues can ask for help via
Getting involved
We encourage you to report issues and contribute changes
- Contribution guide for developers. (English)
- 开发者代码贡献指南 (中文)
Description
Languages
C++
97%
CMake
2%
C
0.8%
Shell
0.2%