|
Packit Service |
d328f3 |
// SPDX-License-Identifier: GPL-2.0+
|
|
Packit Service |
d328f3 |
/* ap-menu-item.h - Class to represent a Wifi access point
|
|
Packit Service |
d328f3 |
*
|
|
Packit Service |
d328f3 |
* Jonathan Blandford <jrb@redhat.com>
|
|
Packit Service |
d328f3 |
* Dan Williams <dcbw@redhat.com>
|
|
Packit Service |
d328f3 |
*
|
|
Packit Service |
d328f3 |
* Copyright (C) 2005 - 2010 Red Hat, Inc.
|
|
Packit Service |
d328f3 |
*/
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
#ifndef _MB_MENU_ITEM_H_
|
|
Packit Service |
d328f3 |
#define _MB_MENU_ITEM_H_
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
#include <gtk/gtk.h>
|
|
Packit Service |
d328f3 |
#include "applet.h"
|
|
Packit Service |
d328f3 |
#include "mobile-helpers.h"
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
#define NM_TYPE_MB_MENU_ITEM (nm_mb_menu_item_get_type ())
|
|
Packit Service |
d328f3 |
#define NM_MB_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_MB_MENU_ITEM, NMMbMenuItem))
|
|
Packit Service |
d328f3 |
#define NM_MB_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_MB_MENU_ITEM, NMMbMenuItemClass))
|
|
Packit Service |
d328f3 |
#define NM_IS_MB_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_MB_MENU_ITEM))
|
|
Packit Service |
d328f3 |
#define NM_IS_MB_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_MB_MENU_ITEM))
|
|
Packit Service |
d328f3 |
#define NM_MB_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_MB_MENU_ITEM, NMMbMenuItemClass))
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
typedef struct {
|
|
Packit Service |
d328f3 |
GtkMenuItem image_item;
|
|
Packit Service |
d328f3 |
} NMMbMenuItem;
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
typedef struct {
|
|
Packit Service |
d328f3 |
GtkMenuItemClass parent_class;
|
|
Packit Service |
d328f3 |
} NMMbMenuItemClass;
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
GType nm_mb_menu_item_get_type (void) G_GNUC_CONST;
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
GtkWidget *nm_mb_menu_item_new (const char *connection_name,
|
|
Packit Service |
d328f3 |
guint32 strength,
|
|
Packit Service |
d328f3 |
const char *provider,
|
|
Packit Service |
d328f3 |
gboolean active,
|
|
Packit Service |
d328f3 |
guint32 technology,
|
|
Packit Service |
d328f3 |
guint32 state,
|
|
Packit Service |
d328f3 |
gboolean enabled,
|
|
Packit Service |
d328f3 |
NMApplet *applet);
|
|
Packit Service |
d328f3 |
|
|
Packit Service |
d328f3 |
#endif /* _MB_MENU_ITEM_H_ */
|
|
Packit Service |
d328f3 |
|