Back to index

bamf  0.2.120
bamf-indicator.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2010 Canonical Ltd.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of either or both of the following licenses:
00006  *
00007  * 1) the GNU Lesser General Public License version 3, as published by the
00008  * Free Software Foundation; and/or
00009  * 2) the GNU Lesser General Public License version 2.1, as published by
00010  * the Free Software Foundation.
00011  *
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranties of
00014  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00015  * PURPOSE.  See the applicable version of the GNU Lesser General Public
00016  * License for more details.
00017  *
00018  * You should have received a copy of both the GNU Lesser General Public
00019  * License version 3 and version 2.1 along with this program.  If not, see
00020  * <http://www.gnu.org/licenses/>
00021  *
00022  * Authored by: Jason Smith <jason.smith@canonical.com>
00023  *              Neil Jagdish Patel <neil.patel@canonical.com>
00024  *
00025  */
00026 
00027 #ifndef _BAMF_INDICATOR_H_
00028 #define _BAMF_INDICATOR_H_
00029 
00030 #include <time.h>
00031 #include <glib-object.h>
00032 #include <libbamf/bamf-view.h>
00033 
00034 G_BEGIN_DECLS
00035 
00036 #define BAMF_TYPE_INDICATOR (bamf_indicator_get_type ())
00037 
00038 #define BAMF_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
00039         BAMF_TYPE_INDICATOR, BamfIndicator))
00040 
00041 #define BAMF_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
00042         BAMF_TYPE_INDICATOR, BamfIndicatorClass))
00043 
00044 #define BAMF_IS_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
00045         BAMF_TYPE_INDICATOR))
00046 
00047 #define BAMF_IS_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
00048         BAMF_TYPE_INDICATOR))
00049 
00050 #define BAMF_INDICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
00051         BAMF_TYPE_INDICATOR, BamfIndicatorClass))
00052 
00053 typedef struct _BamfIndicator        BamfIndicator;
00054 typedef struct _BamfIndicatorClass   BamfIndicatorClass;
00055 typedef struct _BamfIndicatorPrivate BamfIndicatorPrivate;
00056 
00057 struct _BamfIndicator
00058 {
00059   BamfView parent;
00060 
00061   BamfIndicatorPrivate *priv;
00062 };
00063 
00064 struct _BamfIndicatorClass
00065 {
00066   BamfViewClass parent_class;
00067 
00068   /*< private >*/
00069   void (*_indicator_padding1) (void);
00070   void (*_indicator_padding2) (void);
00071   void (*_indicator_padding3) (void);
00072   void (*_indicator_padding4) (void);
00073   void (*_indicator_padding5) (void);
00074   void (*_indicator_padding6) (void);
00075 };
00076 
00077 GType         bamf_indicator_get_type           (void) G_GNUC_CONST;
00078 
00079 const gchar * bamf_indicator_get_remote_path    (BamfIndicator *self);
00080 
00081 const gchar * bamf_indicator_get_remote_address (BamfIndicator *self);
00082 
00083 const gchar * bamf_indicator_get_dbus_menu_path (BamfIndicator *self);
00084 
00085 G_END_DECLS
00086 
00087 #endif