2
* Copyright 2013 Canonical Ltd.
5
* Charles Kerr <charles.kerr@canonical.com>
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License version 3, as published
9
* by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranties of
13
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
* PURPOSE. See the GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef __INDICATOR_POWER_DEVICE_PROVIDER_UPOWER__H__
21
#define __INDICATOR_POWER_DEVICE_PROVIDER_UPOWER__H__
23
#include <glib-object.h> /* parent class */
25
#include "device-provider.h"
29
#define INDICATOR_TYPE_POWER_DEVICE_PROVIDER_UPOWER \
30
(indicator_power_device_provider_upower_get_type())
32
#define INDICATOR_POWER_DEVICE_PROVIDER_UPOWER(o) \
33
(G_TYPE_CHECK_INSTANCE_CAST ((o), \
34
INDICATOR_TYPE_POWER_DEVICE_PROVIDER_UPOWER, \
35
IndicatorPowerDeviceProviderUPower))
37
#define INDICATOR_POWER_DEVICE_PROVIDER_UPOWER_GET_CLASS(o) \
38
(G_TYPE_INSTANCE_GET_CLASS ((o), \
39
INDICATOR_TYPE_POWER_DEVICE_PROVIDER_UPOWER, \
40
IndicatorPowerDeviceProviderUPowerClass))
42
#define INDICATOR_IS_POWER_DEVICE_PROVIDER_UPOWER(o) \
43
(G_TYPE_CHECK_INSTANCE_TYPE ((o), \
44
INDICATOR_TYPE_POWER_DEVICE_PROVIDER_UPOWER))
46
typedef struct _IndicatorPowerDeviceProviderUPower
47
IndicatorPowerDeviceProviderUPower;
48
typedef struct _IndicatorPowerDeviceProviderUPowerPriv
49
IndicatorPowerDeviceProviderUPowerPriv;
50
typedef struct _IndicatorPowerDeviceProviderUPowerClass
51
IndicatorPowerDeviceProviderUPowerClass;
54
* An IndicatorPowerDeviceProvider which gets its devices from UPower.
56
struct _IndicatorPowerDeviceProviderUPower
58
GObject parent_instance;
60
IndicatorPowerDeviceProviderUPowerPriv * priv;
63
struct _IndicatorPowerDeviceProviderUPowerClass
65
GObjectClass parent_class;
68
IndicatorPowerDeviceProvider * indicator_power_device_provider_upower_new (void);
72
#endif /* __INDICATOR_POWER_DEVICE_PROVIDER_UPOWER__H__ */