3
* Copyright (C) 2013 Bastien Nocera <hadess@hadess.net>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef __BLUETOOTH_SETTINGS_WIDGET_H
22
#define __BLUETOOTH_SETTINGS_WIDGET_H
28
#define BLUETOOTH_TYPE_SETTINGS_WIDGET (bluetooth_settings_widget_get_type())
29
#define BLUETOOTH_SETTINGS_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
30
BLUETOOTH_TYPE_SETTINGS_WIDGET, BluetoothSettingsWidget))
31
#define BLUETOOTH_SETTINGS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
32
BLUETOOTH_TYPE_SETTINGS_WIDGET, BluetoothSettingsWidgetClass))
33
#define BLUETOOTH_IS_SETTINGS_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
34
BLUETOOTH_TYPE_SETTINGS_WIDGET))
35
#define BLUETOOTH_IS_SETTINGS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \
36
BLUETOOTH_TYPE_SETTINGS_WIDGET))
37
#define BLUETOOTH_GET_SETTINGS_WIDGET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
38
BLUETOOTH_TYPE_SETTINGS_WIDGET, BluetoothSettingsWidgetClass))
41
* BluetoothSettingsWidget:
43
* The <structname>BluetoothSettingsWidget</structname> struct contains
44
* only private fields and should not be directly accessed.
46
typedef struct _BluetoothSettingsWidget BluetoothSettingsWidget;
47
typedef struct _BluetoothSettingsWidgetClass BluetoothSettingsWidgetClass;
49
struct _BluetoothSettingsWidget {
53
struct _BluetoothSettingsWidgetClass {
54
GtkBoxClass parent_class;
57
GType bluetooth_settings_widget_get_type (void);
59
GtkWidget *bluetooth_settings_widget_new (void);
61
gboolean bluetooth_settings_widget_get_default_adapter_powered (BluetoothSettingsWidget *widget);
65
#endif /* __BLUETOOTH_SETTINGS_WIDGET_H */