2
* Copyright 2014 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Charles Kerr <charles.kerr@canonical.com>
20
#ifndef __INDICATOR_POWER_DEVICE_PROVIDER_MOCK__H__
21
#define __INDICATOR_POWER_DEVICE_PROVIDER_MOCK__H__
23
#include <glib-object.h> /* parent class */
26
#include "device-provider.h"
30
#define INDICATOR_TYPE_POWER_DEVICE_PROVIDER_MOCK \
31
(indicator_power_device_provider_mock_get_type())
33
#define INDICATOR_POWER_DEVICE_PROVIDER_MOCK(o) \
34
(G_TYPE_CHECK_INSTANCE_CAST ((o), \
35
INDICATOR_TYPE_POWER_DEVICE_PROVIDER_MOCK, \
36
IndicatorPowerDeviceProviderMock))
38
#define INDICATOR_POWER_DEVICE_PROVIDER_MOCK_GET_CLASS(o) \
39
(G_TYPE_INSTANCE_GET_CLASS ((o), \
40
INDICATOR_TYPE_POWER_DEVICE_PROVIDER_MOCK, \
41
IndicatorPowerDeviceProviderMockClass))
43
#define INDICATOR_IS_POWER_DEVICE_PROVIDER_MOCK(o) \
44
(G_TYPE_CHECK_INSTANCE_TYPE ((o), \
45
INDICATOR_TYPE_POWER_DEVICE_PROVIDER_MOCK))
47
typedef struct _IndicatorPowerDeviceProviderMock
48
IndicatorPowerDeviceProviderMock;
49
typedef struct _IndicatorPowerDeviceProviderMockPriv
50
IndicatorPowerDeviceProviderMockPriv;
51
typedef struct _IndicatorPowerDeviceProviderMockClass
52
IndicatorPowerDeviceProviderMockClass;
55
* An IndicatorPowerDeviceProvider which gets its devices from Mock.
57
struct _IndicatorPowerDeviceProviderMock
59
GObject parent_instance;
65
struct _IndicatorPowerDeviceProviderMockClass
67
GObjectClass parent_class;
70
GType indicator_power_device_provider_mock_get_type (void);
72
IndicatorPowerDeviceProvider * indicator_power_device_provider_mock_new (void);
74
void indicator_power_device_provider_add_device (IndicatorPowerDeviceProviderMock * provider,
75
IndicatorPowerDevice * device);
79
#endif /* __INDICATOR_POWER_DEVICE_PROVIDER_MOCK__H__ */