Changeset View
Changeset View
Standalone View
Standalone View
daemon/powerdevilbackendinterface.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 38 | public: | |||
---|---|---|---|---|---|
60 | */ | 60 | */ | ||
61 | enum AcAdapterState{ UnknownAcAdapterState, Plugged, Unplugged }; | 61 | enum AcAdapterState{ UnknownAcAdapterState, Plugged, Unplugged }; | ||
62 | Q_ENUM(AcAdapterState) | 62 | Q_ENUM(AcAdapterState) | ||
63 | 63 | | |||
64 | /** | 64 | /** | ||
65 | * This enum type defines the types of system button events. | 65 | * This enum type defines the types of system button events. | ||
66 | * | 66 | * | ||
67 | * - UnknownButtonType: An unknown button | 67 | * - UnknownButtonType: An unknown button | ||
68 | * - PowerDown: A power down pressed event, generally used to turn on or off the system. KWin emits on long power button presses. | ||||
68 | * - PowerButton: A power button pressed event, generally used to turn on or off the system | 69 | * - PowerButton: A power button pressed event, generally used to turn on or off the system | ||
69 | * - SleepButton: A sleep button pressed event, generally used to make the system asleep | 70 | * - SleepButton: A sleep button pressed event, generally used to make the system asleep | ||
broulik: Please document what `PowerDownButton` is, especially that it has this magic behavior in… | |||||
70 | * - LidOpen: A laptop lid open event | 71 | * - LidOpen: A laptop lid open event | ||
71 | * - LidClose: A laptop lid close event | 72 | * - LidClose: A laptop lid close event | ||
72 | */ | 73 | */ | ||
73 | enum ButtonType{ UnknownButtonType, PowerButton, SleepButton, LidOpen, LidClose, HibernateButton }; | 74 | enum ButtonType{ UnknownButtonType, PowerButton, PowerDownButton, SleepButton, LidOpen, LidClose, HibernateButton }; | ||
74 | Q_ENUM(ButtonType) | 75 | Q_ENUM(ButtonType) | ||
75 | 76 | | |||
76 | /** | 77 | /** | ||
77 | * This enum type defines the different suspend methods. | 78 | * This enum type defines the different suspend methods. | ||
78 | * | 79 | * | ||
79 | * - UnknownSuspendMethod: The name says it all | 80 | * - UnknownSuspendMethod: The name says it all | ||
80 | * - Standby: Processes are stopped, some hardware is deactivated (ACPI S1) | 81 | * - Standby: Processes are stopped, some hardware is deactivated (ACPI S1) | ||
81 | * - ToRam: Most devices are deactivated, only RAM is powered (ACPI S3) | 82 | * - ToRam: Most devices are deactivated, only RAM is powered (ACPI S3) | ||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |
Please document what PowerDownButton is, especially that it has this magic behavior in kglobalaccel