Back to index

indicator-appmenu  12.10.0
window-menu-dbusmenu.h
Go to the documentation of this file.
00001 /*
00002 An implementation of indicator object showing menus from applications.
00003 
00004 Copyright 2010 Canonical Ltd.
00005 
00006 Authors:
00007     Ted Gould <ted@canonical.com>
00008 
00009 This program is free software: you can redistribute it and/or modify it 
00010 under the terms of the GNU General Public License version 3, as published 
00011 by the Free Software Foundation.
00012 
00013 This program is distributed in the hope that it will be useful, but 
00014 WITHOUT ANY WARRANTY; without even the implied warranties of 
00015 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
00016 PURPOSE.  See the GNU General Public License for more details.
00017 
00018 You should have received a copy of the GNU General Public License along 
00019 with this program.  If not, see <http://www.gnu.org/licenses/>.
00020 */
00021 
00022 #ifndef __WINDOW_MENU_DBUSMENU_H__
00023 #define __WINDOW_MENU_DBUSMENU_H__
00024 
00025 #include "window-menu.h"
00026 
00027 G_BEGIN_DECLS
00028 
00029 #define WINDOW_MENU_DBUSMENU_TYPE            (window_menu_dbusmenu_get_type ())
00030 #define WINDOW_MENU_DBUSMENU(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), WINDOW_MENU_DBUSMENU_TYPE, WindowMenuDbusmenu))
00031 #define WINDOW_MENU_DBUSMENU_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), WINDOW_MENU_DBUSMENU_TYPE, WindowMenuDbusmenuClass))
00032 #define IS_WINDOW_MENU_DBUSMENU(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WINDOW_MENU_DBUSMENU_TYPE))
00033 #define IS_WINDOW_MENU_DBUSMENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WINDOW_MENU_DBUSMENU_TYPE))
00034 #define WINDOW_MENU_DBUSMENU_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), WINDOW_MENU_DBUSMENU_TYPE, WindowMenuDbusmenuClass))
00035 
00036 typedef struct _WindowMenuDbusmenu      WindowMenuDbusmenu;
00037 typedef struct _WindowMenuDbusmenuClass WindowMenuDbusmenuClass;
00038 
00039 struct _WindowMenuDbusmenuClass {
00040        WindowMenuClass parent_class;
00041 };
00042 
00043 struct _WindowMenuDbusmenu {
00044        WindowMenu parent;
00045 };
00046 
00047 GType window_menu_dbusmenu_get_type (void);
00048 WindowMenuDbusmenu * window_menu_dbusmenu_new (const guint windowid, const gchar * dbus_addr, const gchar * dbus_object);
00049 gchar * window_menu_dbusmenu_get_path (WindowMenuDbusmenu * wm);
00050 gchar * window_menu_dbusmenu_get_address (WindowMenuDbusmenu * wm);
00051 
00052 G_END_DECLS
00053 
00054 #endif