00001 #ifndef GTASK_UI_MANAGER_H
00002 #define GTASK_UI_MANAGER_H
00003
00006 #include <gconf/gconf-client.h>
00007
00008 #include <gtask-ui/gtask-window.h>
00009
00010
00011
00012 typedef struct _GTaskUIManager GTaskUIManager;
00013 typedef struct _GTaskUIManagerPrivate GTaskUIManagerPrivate;
00014 typedef struct _GTaskUIManagerClass GTaskUIManagerClass;
00015
00017 #define GTASK_UI_MANAGER_TYPE (gtask_ui_manager_get_type())
00018
00020 #define GTASK_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST( (obj), \
00021 GTASK_UI_MANAGER_TYPE, \
00022 GTaskUIManager ))
00023
00025 #define GTASK_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST( (klass), \
00026 GTASK_UI_MANAGER_TYPE, \
00027 GTaskUIManagerClass ))
00028
00033 #define GTASK_IS_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \
00034 GTASK_UI_MANAGER_TYPE ))
00035
00040 #define GTASK_IS_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE( (klass), \
00041 GTASK_UI_MANAGER_TYPE ))
00042
00043 #define GTASK_UI_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS( (obj), \
00044 GTASK_UI_MANAGER_TYPE, \
00045 GTaskUIManagerClass ))
00046
00050 struct _GTaskUIManagerPrivate {
00051 GConfClient *gconf_client;
00052 GTaskWindow *task_window;
00053 gboolean display_task_window;
00054
00055 guint gconf_notify_id;
00056 };
00057
00058 struct _GTaskUIManager {
00059 GObject parent;
00060 GTaskUIManagerPrivate *private;
00061 };
00062
00063 struct _GTaskUIManagerClass {
00064 GObjectClass parent;
00065 };
00066
00067 GType gtask_ui_manager_get_type( void );
00068
00069 GTaskUIManager *
00070 gtask_ui_manager_new( void );
00071
00072 gboolean
00073 gtask_ui_manager_private_task_event( GTaskEventDispatcher *dispatcher,
00074 GObject *packet,
00075 gpointer data );
00076
00077
00078
00079 #endif