Back to index

indicator-power  12.10.0
indicator-power.h
Go to the documentation of this file.
00001 /*
00002 An indicator to power related information in the menubar.
00003 
00004 Copyright 2011 Canonical Ltd.
00005 
00006 Authors:
00007     Javier Jardon <javier.jardon@codethink.co.uk>
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 /* Gtk required */
00023 #include <gtk/gtk.h>
00024 
00025 /* parent class */
00026 #include <libindicator/indicator.h>
00027 #include <libindicator/indicator-object.h>
00028 
00029 G_BEGIN_DECLS
00030 
00031 #define INDICATOR_POWER_TYPE            (indicator_power_get_type ())
00032 #define INDICATOR_POWER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), INDICATOR_POWER_TYPE, IndicatorPower))
00033 #define INDICATOR_POWER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), INDICATOR_POWER_TYPE, IndicatorPowerClass))
00034 #define IS_INDICATOR_POWER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INDICATOR_POWER_TYPE))
00035 #define IS_INDICATOR_POWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INDICATOR_POWER_TYPE))
00036 #define INDICATOR_POWER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), INDICATOR_POWER_TYPE, IndicatorPowerClass))
00037 
00038 typedef struct _IndicatorPower         IndicatorPower;
00039 typedef struct _IndicatorPowerClass    IndicatorPowerClass;
00040 typedef struct _IndicatorPowerPrivate  IndicatorPowerPrivate;
00041 
00042 struct _IndicatorPowerClass
00043 {
00044   IndicatorObjectClass parent_class;
00045 };
00046 
00047 struct _IndicatorPower
00048 {
00049   IndicatorObject parent_instance;
00050   IndicatorPowerPrivate * priv;
00051 };
00052 
00053 GType indicator_power_get_type (void) G_GNUC_CONST;
00054 
00055 void indicator_power_set_devices (IndicatorPower         * power,
00056                                   GSList                 * devices);
00057 
00058 G_END_DECLS