~cyruslien/network-manager-applet/network-manager-applet

« back to all changes in this revision

Viewing changes to src/libnma/nma-wifi-dialog.h

  • Committer: cyrus.lien at canonical
  • Date: 2016-11-30 05:14:42 UTC
  • Revision ID: cyrus.lien@canonical.com-20161130051442-1odgw3pwcqbdmuuw
Import from soruce package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* NetworkManager Wireless Applet -- Display wireless access points and allow user control
 
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 along
 
16
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
17
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
18
 *
 
19
 * Copyright 2007 - 2014 Red Hat, Inc.
 
20
 */
 
21
 
 
22
 
 
23
/* WARNING: this file is private API between nm-applet and various GNOME
 
24
 * bits; it may change without notice and is not guaranteed to be stable.
 
25
 */
 
26
 
 
27
#ifndef NMA_WIFI_DIALOG_H
 
28
#define NMA_WIFI_DIALOG_H
 
29
 
 
30
#include <gtk/gtk.h>
 
31
#include <glib.h>
 
32
#include <glib-object.h>
 
33
 
 
34
#include <NetworkManager.h>
 
35
 
 
36
#define NMA_TYPE_WIFI_DIALOG            (nma_wifi_dialog_get_type ())
 
37
#define NMA_WIFI_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NMA_TYPE_WIFI_DIALOG, NMAWifiDialog))
 
38
#define NMA_WIFI_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NMA_TYPE_WIFI_DIALOG, NMAWifiDialogClass))
 
39
#define NMA_IS_WIFI_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NMA_TYPE_WIFI_DIALOG))
 
40
#define NMA_IS_WIFI_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NMA_TYPE_WIFI_DIALOG))
 
41
#define NMA_WIFI_DIALOG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NMA_TYPE_WIFI_DIALOG, NMAWifiDialogClass))
 
42
 
 
43
typedef struct {
 
44
        GtkDialog parent;
 
45
} NMAWifiDialog;
 
46
 
 
47
typedef struct {
 
48
        GtkDialogClass parent;
 
49
} NMAWifiDialogClass;
 
50
 
 
51
GType nma_wifi_dialog_get_type (void);
 
52
 
 
53
GtkWidget *nma_wifi_dialog_new (NMClient *client,
 
54
                                NMConnection *connection,
 
55
                                NMDevice *device,
 
56
                                NMAccessPoint *ap,
 
57
                                gboolean secrets_only);
 
58
 
 
59
GtkWidget *nma_wifi_dialog_new_for_hidden (NMClient *client);
 
60
 
 
61
GtkWidget *nma_wifi_dialog_new_for_create (NMClient *client);
 
62
 
 
63
NMConnection * nma_wifi_dialog_get_connection (NMAWifiDialog *self,
 
64
                                               NMDevice **device,
 
65
                                               NMAccessPoint **ap);
 
66
 
 
67
GLIB_DEPRECATED
 
68
GtkWidget * nma_wifi_dialog_nag_user (NMAWifiDialog *self);
 
69
 
 
70
GLIB_DEPRECATED
 
71
void nma_wifi_dialog_set_nag_ignored (NMAWifiDialog *self, gboolean ignored);
 
72
 
 
73
GLIB_DEPRECATED
 
74
gboolean nma_wifi_dialog_get_nag_ignored (NMAWifiDialog *self);
 
75
 
 
76
GLIB_DEPRECATED_FOR(nma_wifi_dialog_new_for_hidden)
 
77
GtkWidget *nma_wifi_dialog_new_for_other (NMClient *client);
 
78
 
 
79
#endif  /* NMA_WIFI_DIALOG_H */
 
80