Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

gtask-task-packet.h

Go to the documentation of this file.
00001 #ifndef GTASK_TASK_PACKET_H
00002 #define GTASK_TASK_PACKET_H
00003 
00004 #include <gtask/gtask-packet.h>
00005 #include <gtask/gtask-generic-task.h>
00006 
00009 /* @{ */
00010 
00011 typedef struct _GTaskTaskPacket        GTaskTaskPacket;
00012 typedef struct _GTaskTaskPacketPrivate GTaskTaskPacketPrivate;
00013 typedef struct _GTaskTaskPacketClass   GTaskTaskPacketClass;
00014 
00015 
00017 #define GTASK_TASK_PACKET_TYPE            (gtask_task_packet_get_type())
00018 
00020 #define GTASK_TASK_PACKET(obj)            (G_TYPE_CHECK_INSTANCE_CAST( (obj), \
00021                                            GTASK_TASK_PACKET_TYPE, \
00022                                            GTaskTaskPacket ))
00023 
00025 #define GTASK_TASK_PACKET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST( (klass), \
00026                                            GTASK_TASK_PACKET_TYPE, \
00027                                            GTaskTaskPacketClass ))
00028 
00033 #define GTASK_IS_TASK_PACKET(obj)         (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \
00034                                            GTASK_TASK_PACKET_TYPE ))
00035 
00040 #define GTASK_IS_TASK_PACKET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE( (klass), \
00041                                            GTASK_TASK_PACKET_TYPE ))
00042 
00043 #define GTASK_TASK_PACKET_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS( (obj), \
00044                                            GTASK_TASK_PACKET_TYPE, \
00045                                            GTaskTaskPacketClass ))
00046 
00047 struct _GTaskTaskPacket {
00048     GTaskPacket             parent;
00049     GTaskTaskPacketPrivate *private;
00050 };
00051 
00052 struct _GTaskTaskPacketPrivate {
00053     GTaskGenericTask    *task;
00054     gboolean             dispose_has_run;
00055 };
00056 
00057 struct _GTaskTaskPacketClass {
00058     GTaskPacketClass parent;
00059 };
00060 
00061 GType gtask_task_packet_get_type( void );
00062 
00063 GTaskTaskPacket *
00064 gtask_task_packet_new_with_task( GTaskGenericTask *task );
00065 
00066 GTaskGenericTask *
00067 gtask_task_packet_get_task( GTaskTaskPacket *packet );
00068 
00069 /* @} */
00070 
00071 #endif

Generated on Mon Feb 2 21:26:14 2004 for libgtask by doxygen 1.3.4