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

因为有些机型不支持待机,但是后端中是否支持待机的接口返回值不对需要修改,因此后端在System DBus中新增了一个 com.deepin.daemon.PowerManager接口,任务栏需要调整使用此接口来判断显示待机和休眠选项 Log: 修复待机后电源无法唤醒,只能硬重启问题 Bug: https://pms.uniontech.com/zentao/bug-view-48165.html Change-Id: I31641df56fc69965e16a92c09b6a725f8465185b
27 lines
733 B
C++
27 lines
733 B
C++
/*
|
|
* This file was generated by qdbusxml2cpp version 0.8
|
|
* Command line was: qdbusxml2cpp -c PowerManager -p com_deepin_daemon_powermanager com.deepin.daemon.PowerManager.xml
|
|
*
|
|
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
|
|
*
|
|
* This is an auto-generated file.
|
|
* This file may have been hand-edited. Look for HAND-EDIT comments
|
|
* before re-generating it.
|
|
*/
|
|
|
|
#include "dbuspowermanager.h"
|
|
|
|
/*
|
|
* Implementation of interface class PowerManager
|
|
*/
|
|
|
|
DBusPowerManager::DBusPowerManager(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
|
|
: QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
|
|
{
|
|
}
|
|
|
|
DBusPowerManager::~DBusPowerManager()
|
|
{
|
|
}
|
|
|