~ubuntu-branches/ubuntu/vivid/xfce4-power-manager/vivid

« back to all changes in this revision

Viewing changes to src/xfpm-enum-glib.h

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-06-25 19:13:23 UTC
  • mfrom: (21.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20140625191323-w7xzyk3dkwkk15uh
Tags: 1.3.0-1ubuntu1
* Merge from debian. (LP: #1334185) Remaining changes:
  - Switch to using logind for session tracking. Depend on systemd-services
    and add libsystemd-login-dev build dependency.
* Use upower << 0.99
* Drop all patches, fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * * Copyright (C) 2008-2011 Ali <aliov@xfce.org>
3
 
 *
4
 
 * Licensed under the GNU General Public License Version 2
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef __XFPM_ENUM_GLIB_H
22
 
#define __XFPM_ENUM_GLIB_H
23
 
 
24
 
#ifdef HAVE_CONFIG_H
25
 
#include <config.h>
26
 
#endif
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
typedef enum
31
 
{
32
 
    XFPM_DEVICE_TYPE_UNKNOWN,
33
 
    XFPM_DEVICE_TYPE_LINE_POWER,
34
 
    XFPM_DEVICE_TYPE_BATTERY,
35
 
    XFPM_DEVICE_TYPE_UPS,
36
 
    XFPM_DEVICE_TYPE_MONITOR,
37
 
    XFPM_DEVICE_TYPE_MOUSE,
38
 
    XFPM_DEVICE_TYPE_KBD,
39
 
    XFPM_DEVICE_TYPE_PDA,
40
 
    XFPM_DEVICE_TYPE_PHONE
41
 
    
42
 
} XfpmDeviceType;
43
 
  
44
 
typedef enum
45
 
{
46
 
    XFPM_DEVICE_STATE_UNKNOWN,
47
 
    XFPM_DEVICE_STATE_CHARGING,
48
 
    XFPM_DEVICE_STATE_DISCHARGING,
49
 
    XFPM_DEVICE_STATE_EMPTY,
50
 
    XFPM_DEVICE_STATE_FULLY_CHARGED,
51
 
    XFPM_DEVICE_STATE_PENDING_CHARGING,
52
 
    XFPM_DEVICE_STATE_PENDING_DISCHARGING
53
 
    
54
 
} XfpmDeviceState;
55
 
 
56
 
/*
57
 
 * Order matters
58
 
 */
59
 
typedef enum
60
 
{
61
 
    XFPM_BATTERY_CHARGE_UNKNOWN,
62
 
    XFPM_BATTERY_CHARGE_CRITICAL,
63
 
    XFPM_BATTERY_CHARGE_LOW,
64
 
    XFPM_BATTERY_CHARGE_OK
65
 
    
66
 
} XfpmBatteryCharge;
67
 
 
68
 
typedef enum
69
 
{
70
 
    XFPM_DO_NOTHING,
71
 
    XFPM_DO_SUSPEND,
72
 
    XFPM_DO_HIBERNATE,
73
 
    XFPM_ASK,
74
 
    XFPM_DO_SHUTDOWN
75
 
    
76
 
} XfpmShutdownRequest;
77
 
 
78
 
typedef enum
79
 
{
80
 
    LID_TRIGGER_NOTHING,
81
 
    LID_TRIGGER_SUSPEND,
82
 
    LID_TRIGGER_HIBERNATE,
83
 
    LID_TRIGGER_LOCK_SCREEN,
84
 
    
85
 
} XfpmLidTriggerAction;
86
 
 
87
 
typedef enum
88
 
{
89
 
    BUTTON_UNKNOWN = 0,
90
 
    BUTTON_POWER_OFF,
91
 
    BUTTON_HIBERNATE,
92
 
    BUTTON_SLEEP,
93
 
    BUTTON_MON_BRIGHTNESS_UP,
94
 
    BUTTON_MON_BRIGHTNESS_DOWN,
95
 
    BUTTON_LID_CLOSED,
96
 
    BUTTON_BATTERY,
97
 
    NUMBER_OF_BUTTONS
98
 
    
99
 
} XfpmButtonKey;
100
 
 
101
 
typedef enum
102
 
{
103
 
    SHOW_ICON_ALWAYS,
104
 
    SHOW_ICON_WHEN_BATTERY_PRESENT,
105
 
    SHOW_ICON_WHEN_BATTERY_CHARGING_DISCHARGING,
106
 
    NEVER_SHOW_ICON
107
 
    
108
 
} XfpmShowIcon;
109
 
 
110
 
typedef enum
111
 
{
112
 
    XFPM_POWER_MODE_NORMAL,
113
 
    XFPM_POWER_MODE_PRESENTATION
114
 
    
115
 
} XfpmPowerMode;
116
 
 
117
 
G_END_DECLS
118
 
 
119
 
#endif /* __XFPM_ENUM_GLIB_H */