1 #ifndef __AWEATHER_VIEW_H__
2 #define __AWEATHER_VIEW_H__
4 #include <glib-object.h>
7 #define AWEATHER_TYPE_VIEW (aweather_view_get_type())
8 #define AWEATHER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AWEATHER_TYPE_VIEW, AWeatherView))
9 #define AWEATHER_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AWEATHER_TYPE_VIEW))
10 #define AWEATHER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AWEATHER_TYPE_VIEW, AWeatherViewClass))
11 #define AWEATHER_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AWEATHER_TYPE_VIEW))
12 #define AWEATHER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AWEATHER_TYPE_VIEW, AWeatherViewClass))
14 typedef struct _AWeatherView AWeatherView;
15 typedef struct _AWeatherViewClass AWeatherViewClass;
17 struct _AWeatherView {
18 GObject parent_instance;
20 /* instance members */
25 struct _AWeatherViewClass {
26 GObjectClass parent_class;
31 GType aweather_view_get_type(void);
34 AWeatherView *aweather_view_new();
35 void aweather_view_set_time(AWeatherView *view, gint time);
36 gint aweather_view_get_time(AWeatherView *view);
38 void aweather_view_set_location(AWeatherView *view, const gchar *location);
39 gchar *aweather_view_get_location(AWeatherView *view);