1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3
* NetworkManager Applet
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
19
* (C) Copyright 2009 - 2012 Red Hat, Inc.
23
#ifndef NMA_BT_DEVICE_H
24
#define NMA_BT_DEVICE_H
27
#include <glib-object.h>
29
#include <dbus/dbus-glib.h>
31
#define NMA_TYPE_BT_DEVICE (nma_bt_device_get_type ())
32
#define NMA_BT_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NMA_TYPE_BT_DEVICE, NmaBtDevice))
33
#define NMA_BT_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NMA_TYPE_BT_DEVICE, NmaBtDeviceClass))
34
#define NMA_IS_BT_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NMA_TYPE_BT_DEVICE))
35
#define NMA_IS_BT_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NMA_TYPE_BT_DEVICE))
36
#define NMA_BT_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NMA_TYPE_BT_DEVICE, NmaBtDeviceClass))
38
#define NMA_BT_DEVICE_BDADDR "bdaddr"
39
#define NMA_BT_DEVICE_ALIAS "alias"
40
#define NMA_BT_DEVICE_OBJECT_PATH "object-path"
41
#define NMA_BT_DEVICE_HAS_PAN "has-pan"
42
#define NMA_BT_DEVICE_PAN_ENABLED "pan-enabled"
43
#define NMA_BT_DEVICE_HAS_DUN "has-dun"
44
#define NMA_BT_DEVICE_DUN_ENABLED "dun-enabled"
45
#define NMA_BT_DEVICE_BUSY "busy"
46
#define NMA_BT_DEVICE_STATUS "status"
56
GType nma_bt_device_get_type (void);
58
NmaBtDevice *nma_bt_device_new (const char *bdaddr,
60
const char *object_path,
64
void nma_bt_device_set_parent_window (NmaBtDevice *device,
67
const char *nma_bt_device_get_bdaddr (NmaBtDevice *device);
69
gboolean nma_bt_device_get_has_dun (NmaBtDevice *device);
70
gboolean nma_bt_device_get_dun_enabled (NmaBtDevice *device);
71
void nma_bt_device_set_dun_enabled (NmaBtDevice *device, gboolean enabled);
73
void nma_bt_device_cancel_dun (NmaBtDevice *device);
75
gboolean nma_bt_device_get_has_pan (NmaBtDevice *device);
76
gboolean nma_bt_device_get_pan_enabled (NmaBtDevice *device);
77
void nma_bt_device_set_pan_enabled (NmaBtDevice *device, gboolean enabled);
79
gboolean nma_bt_device_get_busy (NmaBtDevice *device);
81
const char *nma_bt_device_get_status (NmaBtDevice *device);
83
#endif /* NMA_BT_DEVICE_H */