Back to index

indicator-appmenu  12.10.0
hudappmenuregistrar.h
Go to the documentation of this file.
00001 /*
00002  * Copyright © 2012 Canonical Ltd.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU General Public License version 3, as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranties of
00010  * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License along
00014  * with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Author: Ryan Lortie <desrt@desrt.ca>
00017  */
00018 
00019 #ifndef __HUD_APP_MENU_REGISTRAR_H__
00020 #define __HUD_APP_MENU_REGISTRAR_H__
00021 
00022 #include <glib-object.h>
00023 
00024 #define HUD_TYPE_APP_MENU_REGISTRAR                         (hud_app_menu_registrar_get_type ())
00025 #define HUD_APP_MENU_REGISTRAR(inst)                        (G_TYPE_CHECK_INSTANCE_CAST ((inst),                     \
00026                                                              HUD_TYPE_APP_MENU_REGISTRAR,                            \
00027                                                              HudAppMenuRegistrar))
00028 #define HUD_IS_APP_MENU_REGISTRAR(inst)                     (G_TYPE_CHECK_INSTANCE_TYPE ((inst),                     \
00029                                                              HUD_TYPE_APP_MENU_REGISTRAR))
00030 
00031 typedef struct _HudAppMenuRegistrar                         HudAppMenuRegistrar;
00032 
00033 GType                   hud_app_menu_registrar_get_type                 (void);
00034 
00035 HudAppMenuRegistrar *   hud_app_menu_registrar_get                      (void);
00036 
00037 typedef void         (* HudAppMenuRegistrarObserverFunc)                (HudAppMenuRegistrar             *registrar,
00038                                                                          guint                            xid,
00039                                                                          const gchar                     *bus_name,
00040                                                                          const gchar                     *object_path,
00041                                                                          gpointer                         user_data);
00042 
00043 void                    hud_app_menu_registrar_add_observer             (HudAppMenuRegistrar             *registrar,
00044                                                                          guint                            xid,
00045                                                                          HudAppMenuRegistrarObserverFunc  callback,
00046                                                                          gpointer                         user_data);
00047 
00048 void                    hud_app_menu_registrar_remove_observer          (HudAppMenuRegistrar             *registrar,
00049                                                                          guint                            xid,
00050                                                                          HudAppMenuRegistrarObserverFunc  callback,
00051                                                                          gpointer                         user_data);
00052 
00053 #endif /* __HUD_APP_MENU_REGISTRAR_H__ */