~ubuntu-branches/ubuntu/saucy/network-manager-applet/saucy-updates

« back to all changes in this revision

Viewing changes to src/gnome-bluetooth/nma-bt-device.h

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-08-10 15:44:44 UTC
  • mfrom: (1.2.30)
  • Revision ID: package-import@ubuntu.com-20120810154444-nmjepmyshkpbxt60
Tags: 0.9.6.2-0ubuntu1
* New upstream release.
  - Fix GNOME Bluetooth plugin DUN modem detection and setup
  - Various crash and stability fixes
  - Allow appending DNS servers and domains in automatic addressing mode
  - Fix defaults for PPP echo values
  - Show IPv6 addressing page for VPN plugins that support it
  - Port to GSettings and split out 0.8 -> 0.9 migration code
  - Recognize PKCS#12 certificates imported from Firefox
  - Pre-fill CDMA username/password in the mobile broadband wizard
  - Only handle VPN secrets for GNOME Shell 3.3 and lower
* debian/control: Bump Depends and Build-Depends to (>= 0.9.6) for
  network-manager and the libnm-{glib,util,glib-vpn}-dev packages.
* debian/patches/git_fix_some_leaks_80ef61b.patch: cherry-picked patch to
  fix a few leaks: g_object_get() and gtk_tree_model_get() copy/ref the
  values they return, so make sure to deal with that everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
 
2
/*
 
3
 *  NetworkManager Applet
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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
 
18
 *
 
19
 * (C) Copyright 2009 - 2012 Red Hat, Inc.
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef NMA_BT_DEVICE_H
 
24
#define NMA_BT_DEVICE_H
 
25
 
 
26
#include <glib.h>
 
27
#include <glib-object.h>
 
28
#include <gtk/gtk.h>
 
29
#include <dbus/dbus-glib.h>
 
30
 
 
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))
 
37
 
 
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"
 
47
 
 
48
typedef struct {
 
49
        GObject parent;
 
50
} NmaBtDevice;
 
51
 
 
52
typedef struct {
 
53
        GObjectClass parent;
 
54
} NmaBtDeviceClass;
 
55
 
 
56
GType nma_bt_device_get_type (void);
 
57
 
 
58
NmaBtDevice *nma_bt_device_new (const char *bdaddr,
 
59
                                const char *alias,
 
60
                                const char *object_path,
 
61
                                gboolean has_pan,
 
62
                                gboolean has_dun);
 
63
 
 
64
void nma_bt_device_set_parent_window   (NmaBtDevice *device,
 
65
                                        GtkWindow *window);
 
66
 
 
67
const char *nma_bt_device_get_bdaddr   (NmaBtDevice *device);
 
68
 
 
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);
 
72
 
 
73
void     nma_bt_device_cancel_dun      (NmaBtDevice *device);
 
74
 
 
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);
 
78
 
 
79
gboolean nma_bt_device_get_busy (NmaBtDevice *device);
 
80
 
 
81
const char *nma_bt_device_get_status (NmaBtDevice *device);
 
82
 
 
83
#endif /* NMA_BT_DEVICE_H */
 
84