1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright (C) 2012 Red Hat, Inc.
5
* Licensed under the GNU General Public License Version 2
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
#ifndef __NET_CONNECTION_EDITOR_H
23
#define __NET_CONNECTION_EDITOR_H
25
#include <glib-object.h>
28
#include <NetworkManager.h>
32
#define NET_TYPE_CONNECTION_EDITOR (net_connection_editor_get_type ())
33
#define NET_CONNECTION_EDITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NET_TYPE_CONNECTION_EDITOR, NetConnectionEditor))
34
#define NET_CONNECTION_EDITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), NET_TYPE_CONNECTION_EDITOR, NetConnectionEditorClass))
35
#define NET_IS_CONNECTION_EDITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NET_TYPE_CONNECTION_EDITOR))
36
#define NET_IS_CONNECTION_EDITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NET_TYPE_CONNECTION_EDITOR))
37
#define NET_CONNECTION_EDITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NET_TYPE_CONNECTION_EDITOR, NetConnectionEditorClass))
39
typedef struct _NetConnectionEditor NetConnectionEditor;
40
typedef struct _NetConnectionEditorClass NetConnectionEditorClass;
42
struct _NetConnectionEditor
46
GtkWidget *parent_window;
50
NMConnection *connection;
51
NMConnection *orig_connection;
52
gboolean is_new_connection;
59
GSList *initializing_pages;
63
NMClientPermissionResult can_modify;
66
gboolean show_when_initialized;
69
struct _NetConnectionEditorClass
71
GObjectClass parent_class;
73
void (*done) (NetConnectionEditor *details, gboolean success);
76
GType net_connection_editor_get_type (void);
77
NetConnectionEditor *net_connection_editor_new (GtkWindow *parent_window,
78
NMConnection *connection,
82
void net_connection_editor_set_title (NetConnectionEditor *editor,
84
void net_connection_editor_run (NetConnectionEditor *editor);
85
void net_connection_editor_present (NetConnectionEditor *editor);
86
void net_connection_editor_forget (NetConnectionEditor *editor);
87
void net_connection_editor_reset (NetConnectionEditor *editor);
91
#endif /* __NET_CONNECTION_EDITOR_H */