Back to index

indicator-datetime  12.10.0
datetime-interface.h
Go to the documentation of this file.
00001 /*
00002 An indicator to time and date related information in the menubar.
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 __DATETIME_INTERFACE_H__
00023 #define __DATETIME_INTERFACE_H__
00024 
00025 #include <glib.h>
00026 #include <glib-object.h>
00027 
00028 G_BEGIN_DECLS
00029 
00030 #define DATETIME_INTERFACE_TYPE            (datetime_interface_get_type ())
00031 #define DATETIME_INTERFACE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATETIME_INTERFACE_TYPE, DatetimeInterface))
00032 #define DATETIME_INTERFACE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), DATETIME_INTERFACE_TYPE, DatetimeInterfaceClass))
00033 #define IS_DATETIME_INTERFACE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATETIME_INTERFACE_TYPE))
00034 #define IS_DATETIME_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATETIME_INTERFACE_TYPE))
00035 #define DATETIME_INTERFACE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), DATETIME_INTERFACE_TYPE, DatetimeInterfaceClass))
00036 
00037 typedef struct _DatetimeInterface        DatetimeInterface;
00038 typedef struct _DatetimeInterfacePrivate DatetimeInterfacePrivate;
00039 typedef struct _DatetimeInterfaceClass   DatetimeInterfaceClass;
00040 
00041 struct _DatetimeInterfaceClass {
00042        GObjectClass parent_class;
00043 
00044        void (*update_time) (void);
00045 };
00046 
00047 struct _DatetimeInterface {
00048        GObject parent;
00049        DatetimeInterfacePrivate * priv;
00050 };
00051 
00052 GType              datetime_interface_get_type       (void);
00053 void               datetime_interface_update         (DatetimeInterface *self);
00054 
00055 G_END_DECLS
00056 
00057 #endif