DtkSystemSettings  1.0.3
dtk library for systemsettings.
dpowertypes.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#pragma once
6
7#include "dtkpower_global.h"
8#include <qobject.h>
9
10DPOWER_BEGIN_NAMESPACE
11struct History
12{
13 uint time;
14 double value;
15 uint state;
16};
17
19{
20 double value;
21 double accuracy;
22};
23
24enum class KbdSource { Internal, External, Unknown };
25
26enum class PowerMode { Performance, Balance, PowerSave, Unknown };
27
28enum class LidClosedAction : qint32 { Suspend = 1, Hibernate, TurnoffScreen, DoNothing, Unknown };
29
30enum class PowerBtnAction : qint32 { Shutdown = 0, Suspend, Hibernate, TurnoffScreen, DoNothing, Unknown };
31
32DPOWER_END_NAMESPACE
33
34Q_DECLARE_METATYPE(DTK_POWER_NAMESPACE::History)
35Q_DECLARE_METATYPE(DTK_POWER_NAMESPACE::Statistic)
PowerBtnAction
按下电源键的行为
Definition: dpowertypes.h:30
KbdSource
键盘背光的调整来源
Definition: dpowertypes.h:24
LidClosedAction
关闭笔记本电脑盖子的行为
Definition: dpowertypes.h:28
PowerMode
键盘背光的调整来源
Definition: dpowertypes.h:26
Definition: dpowertypes.h:12
double value
Definition: dpowertypes.h:14
uint time
Definition: dpowertypes.h:13
uint state
Definition: dpowertypes.h:15
Definition: dpowertypes.h:19
double accuracy
Definition: dpowertypes.h:21
double value
Definition: dpowertypes.h:20