Back to index

libindicator  12.10.0
indicator-desktop-shortcuts.h
Go to the documentation of this file.
00001 /*
00002 A small file to parse through the actions that are available
00003 in the desktop file and making those easily usable.
00004 
00005 Copyright 2010 Canonical Ltd.
00006 
00007 Authors:
00008     Ted Gould <ted@canonical.com>
00009 
00010 This library is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 version 3.0 as published by the Free Software Foundation.
00013 
00014 This library is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 GNU General Public License version 3.0 for more details.
00018 
00019 You should have received a copy of the GNU General Public
00020 License along with this library. If not, see
00021 <http://www.gnu.org/licenses/>.
00022 */
00023 
00024 #ifndef __INDICATOR_DESKTOP_SHORTCUTS_H__
00025 #define __INDICATOR_DESKTOP_SHORTCUTS_H__
00026 
00027 #include <glib.h>
00028 #include <glib-object.h>
00029 
00030 G_BEGIN_DECLS
00031 
00032 #define INDICATOR_TYPE_DESKTOP_SHORTCUTS            (indicator_desktop_shortcuts_get_type ())
00033 #define INDICATOR_DESKTOP_SHORTCUTS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), INDICATOR_TYPE_DESKTOP_SHORTCUTS, IndicatorDesktopShortcuts))
00034 #define INDICATOR_DESKTOP_SHORTCUTS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), INDICATOR_TYPE_DESKTOP_SHORTCUTS, IndicatorDesktopShortcutsClass))
00035 #define INDICATOR_IS_DESKTOP_SHORTCUTS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INDICATOR_TYPE_DESKTOP_SHORTCUTS))
00036 #define INDICATOR_IS_DESKTOP_SHORTCUTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INDICATOR_TYPE_DESKTOP_SHORTCUTS))
00037 #define INDICATOR_DESKTOP_SHORTCUTS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), INDICATOR_TYPE_DESKTOP_SHORTCUTS, IndicatorDesktopShortcutsClass))
00038 
00039 typedef struct _IndicatorDesktopShortcuts      IndicatorDesktopShortcuts;
00040 typedef struct _IndicatorDesktopShortcutsClass IndicatorDesktopShortcutsClass;
00041 
00048 struct _IndicatorDesktopShortcutsClass {
00049        GObjectClass parent_class;
00050 };
00051 
00059 struct _IndicatorDesktopShortcuts {
00060        GObject parent;
00061 };
00062 
00063 GType                       indicator_desktop_shortcuts_get_type         (void);
00064 IndicatorDesktopShortcuts * indicator_desktop_shortcuts_new              (const gchar * file,
00065                                                                           const gchar * identity);
00066 const gchar **              indicator_desktop_shortcuts_get_nicks        (IndicatorDesktopShortcuts * ids);
00067 gchar *                     indicator_desktop_shortcuts_nick_get_name    (IndicatorDesktopShortcuts * ids,
00068                                                                           const gchar * nick);
00069 gboolean                    indicator_desktop_shortcuts_nick_exec        (IndicatorDesktopShortcuts * ids,
00070                                                                           const gchar * nick);
00071 
00072 G_END_DECLS
00073 
00074 #endif