~ubuntu-branches/ubuntu/hardy/network-manager-applet/hardy

« back to all changes in this revision

Viewing changes to src/nm-gconf-wso.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2007-06-15 12:46:22 UTC
  • Revision ID: james.westby@ubuntu.com-20070615124622-01cyrnf0uxxun4lz
Tags: upstream-0.6.5
ImportĀ upstreamĀ versionĀ 0.6.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* NetworkManager -- Network link manager
 
2
 *
 
3
 * Dan Williams <dcbw@redhat.com>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program 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
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 *
 
19
 * (C) Copyright 2005 Red Hat, Inc.
 
20
 */
 
21
 
 
22
#ifndef NM_GCONF_WSO_H
 
23
#define NM_GCONF_WSO_H
 
24
 
 
25
#include <glib-object.h>
 
26
#include <gconf/gconf-client.h>
 
27
#include <dbus/dbus.h>
 
28
 
 
29
#include "wireless-security-option.h"
 
30
 
 
31
#define NM_TYPE_GCONF_WSO                       (nm_gconf_wso_get_type ())
 
32
#define NM_GCONF_WSO(obj)                       (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_GCONF_WSO, NMGConfWSO))
 
33
#define NM_GCONF_WSO_CLASS(klass)               (G_TYPE_CHECK_CLASS_CAST ((klass),  NM_TYPE_GCONF_WSO, NMGConfWSOClass))
 
34
#define NM_IS_AP_SECURITY(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_GCONF_WSO))
 
35
#define NM_IS_AP_SECURITY_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass),  NM_TYPE_GCONF_WSO))
 
36
#define NM_GCONF_WSO_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj),  NM_TYPE_GCONF_WSO, NMGConfWSOClass))
 
37
 
 
38
typedef struct _NMGConfWSO NMGConfWSO;
 
39
typedef struct _NMGConfWSOClass NMGConfWSOClass;
 
40
typedef struct _NMGConfWSOPrivate NMGConfWSOPrivate;
 
41
 
 
42
struct _NMGConfWSO
 
43
{
 
44
        GObject parent;
 
45
 
 
46
        /*< private >*/
 
47
        NMGConfWSOPrivate *priv;
 
48
};
 
49
 
 
50
struct NMDevice;
 
51
 
 
52
struct _NMGConfWSOClass
 
53
{
 
54
        GObjectClass parent;
 
55
 
 
56
        /* class members */
 
57
        gboolean        (*serialize_dbus_func)  (NMGConfWSO *self, DBusMessageIter *iter);
 
58
 
 
59
        gboolean        (*serialize_gconf_func) (NMGConfWSO *self, GConfClient *client, const char *network);
 
60
};
 
61
 
 
62
 
 
63
GType nm_gconf_wso_get_type (void);
 
64
 
 
65
NMGConfWSO * nm_gconf_wso_new_deserialize_dbus (DBusMessageIter *iter);
 
66
 
 
67
NMGConfWSO * nm_gconf_wso_new_deserialize_gconf (GConfClient *client, const char *network);
 
68
 
 
69
NMGConfWSO * nm_gconf_wso_new_from_wso (WirelessSecurityOption *opt, const char *ssid);
 
70
 
 
71
int nm_gconf_wso_get_we_cipher (NMGConfWSO *self);
 
72
 
 
73
const char * nm_gconf_wso_get_key (NMGConfWSO *self);
 
74
 
 
75
void nm_gconf_wso_set_key (NMGConfWSO *self, const char *key, int key_len);
 
76
 
 
77
gboolean nm_gconf_wso_serialize_dbus (NMGConfWSO *self, DBusMessageIter *iter);
 
78
 
 
79
gboolean nm_gconf_wso_serialize_gconf (NMGConfWSO *self, GConfClient *client, const char *network);
 
80
 
 
81
#endif  /* NM_GCONF_WSO_H */