00001 #ifndef GTASK_CONNECTION_GROUP_H
00002 #define GTASK_CONNECTION_GROUP_H
00003
00004 #include <glib.h>
00005 #include <glib-2.0/glib-object.h>
00006
00007 #include <gtask/gtask-connection.h>
00008
00011
00012
00013 typedef struct _GTaskConnectionGroup GTaskConnectionGroup;
00014 typedef struct _GTaskConnectionGroupPrivate GTaskConnectionGroupPrivate;
00015 typedef struct _GTaskConnectionGroupClass GTaskConnectionGroupClass;
00016
00018 #define GTASK_CONNECTION_GROUP_TYPE (gtask_connection_group_get_type())
00019
00021 #define GTASK_CONNECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST( (obj), \
00022 GTASK_CONNECTION_GROUP_TYPE, \
00023 GTaskConnectionGroup ))
00024
00026 #define GTASK_CONNECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST( (klass), \
00027 GTASK_CONNECTION_GROUP_TYPE, \
00028 GTaskConnectionGroupClass ))
00029
00034 #define GTASK_IS_CONNECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \
00035 GTASK_CONNECTION_GROUP_TYPE ))
00036
00041 #define GTASK_IS_CONNECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE( (klass), \
00042 GTASK_CONNECTION_GROUP_TYPE ))
00043
00044 #define GTASK_CONNECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS( (obj), \
00045 GTASK_CONNECTION_GROUP_TYPE, \
00046 GTaskConnectionGroupClass ))
00047
00051 struct _GTaskConnectionGroupPrivate {
00053 GSList *connection_list;
00054 gboolean dispose_has_run;
00055 };
00056
00061 struct _GTaskConnectionGroup {
00062 GObject parent;
00063 GTaskConnectionGroupPrivate *private;
00064 };
00065
00066 struct _GTaskConnectionGroupClass {
00067 GObjectClass parent;
00068 };
00069
00070 GType gtask_connection_group_get_type( void );
00071
00072 GTaskConnectionGroup *
00073 gtask_connection_group_new( void );
00074
00075 void
00076 gtask_connection_group_add_connection( GTaskConnectionGroup *group,
00077 GTaskConnection *conn );
00078
00079 void
00080 gtask_connection_group_clear( GTaskConnectionGroup *group );
00081
00082 GSList *
00083 gtask_connection_group_get_list( GTaskConnectionGroup *group );
00084
00085 GTaskConnection *
00086 gtask_connection_group_get_connection_by_name( GTaskConnectionGroup *group,
00087 const gchar *conn_name );
00088
00089
00090
00091 #endif