00001 #ifndef GTASK_WATCH_PACKET_H 00002 #define GTASK_WATCH_PACKET_H 00003 00004 #include <gtask/gtask-packet.h> 00005 00008 /* @{ */ 00009 00010 typedef struct _GTaskWatchPacket GTaskWatchPacket; 00011 typedef struct _GTaskWatchPacketPrivate GTaskWatchPacketPrivate; 00012 typedef struct _GTaskWatchPacketClass GTaskWatchPacketClass; 00013 00014 00016 #define GTASK_WATCH_PACKET_TYPE (gtask_watch_packet_get_type()) 00017 00019 #define GTASK_WATCH_PACKET(obj) (G_TYPE_CHECK_INSTANCE_CAST( (obj), \ 00020 GTASK_WATCH_PACKET_TYPE, \ 00021 GTaskWatchPacket )) 00022 00024 #define GTASK_WATCH_PACKET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST( (klass), \ 00025 GTASK_WATCH_PACKET_TYPE, \ 00026 GTaskWatchPacketClass )) 00027 00032 #define GTASK_IS_WATCH_PACKET(obj) (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \ 00033 GTASK_WATCH_PACKET_TYPE )) 00034 00039 #define GTASK_IS_WATCH_PACKET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE( (klass), \ 00040 GTASK_WATCH_PACKET_TYPE )) 00041 00042 #define GTASK_WATCH_PACKET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS( (obj), \ 00043 GTASK_WATCH_PACKET_TYPE, \ 00044 GTaskWatchPacketClass )) 00045 00046 struct _GTaskWatchPacket { 00047 GObject parent; 00048 GTaskWatchPacketPrivate *private; 00049 }; 00050 00051 struct _GTaskWatchPacketPrivate { 00052 GString *watch_id; 00053 }; 00054 00055 struct _GTaskWatchPacketClass { 00056 GTaskPacketClass parent; 00057 }; 00058 00059 GType gtask_watch_packet_get_type( void ); 00060 00061 GTaskWatchPacket * 00062 gtask_watch_packet_new( void ); 00063 00064 GTaskWatchPacket * 00065 gtask_watch_packet_new_with_watch_id( const char *watch_id ); 00066 00067 const char * 00068 gtask_watch_packet_get_watch_id( GTaskWatchPacket *packet ); 00069 00070 void 00071 gtask_watch_packet_set_watch_id( GTaskWatchPacket *packet, 00072 const char *watch_id ); 00073 00074 /* @} */ 00075 00076 #endif