Solid

upower.h
1/*
2 SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_UPOWER_H
8#define SOLID_BACKENDS_UPOWER_H
9
10/* UPower */
11#define UP_DBUS_SERVICE "org.freedesktop.UPower"
12#define UP_DBUS_PATH "/org/freedesktop/UPower"
13#define UP_DBUS_INTERFACE "org.freedesktop.UPower"
14#define UP_DBUS_INTERFACE_DEVICE UP_DBUS_INTERFACE ".Device"
15#define UP_UDI_PREFIX "/org/freedesktop/UPower"
16
17// These should be kept in sync with https://gitlab.freedesktop.org/upower/upower/-/blob/master/libupower-glib/up-types.h
18
19typedef enum {
20 UP_DEVICE_KIND_UNKNOWN,
21 UP_DEVICE_KIND_LINE_POWER,
22 UP_DEVICE_KIND_BATTERY,
23 UP_DEVICE_KIND_UPS,
24 UP_DEVICE_KIND_MONITOR,
25 UP_DEVICE_KIND_MOUSE,
26 UP_DEVICE_KIND_KEYBOARD,
27 UP_DEVICE_KIND_PDA,
28 UP_DEVICE_KIND_PHONE,
29 UP_DEVICE_KIND_MEDIA_PLAYER,
30 UP_DEVICE_KIND_TABLET,
31 UP_DEVICE_KIND_COMPUTER,
32 UP_DEVICE_KIND_GAMING_INPUT,
33 UP_DEVICE_KIND_PEN,
34 UP_DEVICE_KIND_TOUCHPAD,
35 UP_DEVICE_KIND_MODEM,
36 UP_DEVICE_KIND_NETWORK,
37 UP_DEVICE_KIND_HEADSET,
38 UP_DEVICE_KIND_SPEAKERS,
39 UP_DEVICE_KIND_HEADPHONES,
40 UP_DEVICE_KIND_VIDEO,
41 UP_DEVICE_KIND_OTHER_AUDIO,
42 UP_DEVICE_KIND_REMOTE_CONTROL,
43 UP_DEVICE_KIND_PRINTER,
44 UP_DEVICE_KIND_SCANNER,
45 UP_DEVICE_KIND_CAMERA,
46 UP_DEVICE_KIND_WEARABLE,
47 UP_DEVICE_KIND_TOY,
48 UP_DEVICE_KIND_BLUETOOTH_GENERIC,
49 UP_DEVICE_KIND_LAST
50} UpDeviceKind;
51
52typedef enum {
53 UP_DEVICE_STATE_UNKNOWN,
54 UP_DEVICE_STATE_CHARGING,
55 UP_DEVICE_STATE_DISCHARGING,
56 UP_DEVICE_STATE_EMPTY,
57 UP_DEVICE_STATE_FULLY_CHARGED,
58 UP_DEVICE_STATE_PENDING_CHARGE,
59 UP_DEVICE_STATE_PENDING_DISCHARGE,
60 UP_DEVICE_STATE_LAST
61} UpDeviceState;
62
63typedef enum {
64 UP_DEVICE_TECHNOLOGY_UNKNOWN,
65 UP_DEVICE_TECHNOLOGY_LITHIUM_ION,
66 UP_DEVICE_TECHNOLOGY_LITHIUM_POLYMER,
67 UP_DEVICE_TECHNOLOGY_LITHIUM_IRON_PHOSPHATE,
68 UP_DEVICE_TECHNOLOGY_LEAD_ACID,
69 UP_DEVICE_TECHNOLOGY_NICKEL_CADMIUM,
70 UP_DEVICE_TECHNOLOGY_NICKEL_METAL_HYDRIDE,
71 UP_DEVICE_TECHNOLOGY_LAST
72} UpDeviceTechnology;
73
74#endif // SOLID_BACKENDS_UPOWER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:01:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.