Data Structures | |
struct | _GTaskStreamParser |
struct | _GTaskStreamParserClass |
struct | _GTaskStreamParserPrivate |
Defines | |
#define | GTASK_STREAM_PARSER_TYPE (gtask_stream_parser_get_type()) |
#define | GTASK_STREAM_PARSER(obj) |
#define | GTASK_STREAM_PARSER_CLASS(kclass) |
#define | GTASK_IS_STREAM_PARSER(obj) |
#define | GTASK_IS_STREAM_PARSER_CLASS(klass) |
#define | GTASK_STREAM_PARSER_GET_CLASS(obj) |
Typedefs | |
typedef _GTaskStreamParser | GTaskStreamParser |
typedef _GTaskStreamParserPrivate | GTaskStreamParserPrivate |
typedef _GTaskStreamParserClass | GTaskStreamParserClass |
Enumerations | |
enum | GTaskStreamParserLevel { DOCUMENT_LEVEL, STREAM_LEVEL, PACKET_LEVEL, PACKET_CONTENTS_LEVEL } |
enum | GTaskStreamParserState { UNKNOWN, DOCUMENT_START } |
enum | GTaskStreamParserPacket { NO_PACKET, ROLE, ERROR, WATCH, REMOVE_WATCH, TASK, QUERY } |
enum | GTaskStreamParserProperty { NO_PROPERTY, PROP_CATEGORY, PROP_TITLE, PROP_PERCENT_COMPLETED, PROP_ACTIVITY_STATE, PROP_STATUS_MESSAGE, PROP_ERROR_MESSAGE, PROP_MIME_TYPE, PROP_RESULTANT_FILE_URI, PROP_THUMBNAIL_URI, PROP_TIME_LEFT } |
enum | GTaskStreamParserError { GTASK_STREAM_PARSER_ERROR_NONE, GTASK_STREAM_PARSER_ERROR_SYNTAX_ERROR } |
Functions | |
void | gtask_stream_parser_class_init (GTaskStreamParserClass *klass) |
void | gtask_stream_parser_init (GTaskStreamParser *parser) |
void | gtask_stream_parser_finalize (GObject *obj) |
void | gtask_stream_parser_dispose (GObject *obj) |
gboolean | gtask_stream_parser_init_parser (GTaskStreamParser *parser, char *buff, int len) |
initializes the internal parser used by GTaskStreamParser (libxml SAX parser at the moment). The context for this parser requires 4 bytes of data before parsing can begin. All characters in the passed in buffer are automatically sent to the parser if the number of bytes exceeds the 4 that we need. | |
void | start_document (gpointer data) |
void | end_document (gpointer data) |
void | start_element (gpointer data, const xmlChar *name, const xmlChar **attrs) |
void | end_element (gpointer data, const xmlChar *name) |
void | get_characters (gpointer data, const xmlChar *chars, int len) |
void | xml_warning (gpointer data, const char *msg,...) |
void | xml_error (gpointer data, const char *msg,...) |
void | xml_fatal_error (gpointer data, const char *msg,...) |
GType | gtask_stream_parser_get_type () |
GTaskStreamParser * | gtask_stream_parser_new () |
creates a new GTaskStreamParser. This function should be used if you want the feed the resulting parser the input data yourself using gtask_stream_parser_push_data. If constructed through this function calls to gtask_stream_parser_get_next_packet() will not block and will immediately return NULL if there are no more packets to process. | |
gboolean | gtask_stream_parser_has_packets (GTaskStreamParser *parser) |
returns TRUE if the GTaskStreamParser has packets waiting in its queue | |
gboolean | gtask_stream_parser_push_data (GTaskStreamParser *parser, char *buff, int len) |
GObject * | gtask_stream_parser_get_next_packet (GTaskStreamParser *parser) |
continues returns the next packet if there is one, or NULL otherwise | |
gboolean | gtask_stream_parser_has_error (GTaskStreamParser *parser) |
void | gtask_stream_parser_reset_state (GTaskStreamParser *parser) |
Resets the state of the stream parser to their defaults (ie the state before any parsing was done). This function will no, however clear out any generated packets that remain in the queue. This function is generally called when the stream that you are parsing has unexpectedly disconnection and you wish to reconnect and parse again. | |
GTaskStreamParserError | gtask_stream_parser_get_error (GTaskStreamParser *parser) |
gboolean | gtask_stream_parser_at_eof (GTaskStreamParser *parser) |
Variables | |
gpointer | parent_class |
xmlSAXHandler | sax_handler |
|
Value: (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \ GTASK_STREAM_PARSER_TYPE )) Definition at line 34 of file gtask-stream-parser.h. |
|
Value: (G_TYPE_CHECK_CLASS_TYPE( (klass), \ GTASK_STREAM_PARSER_TYPE )) Definition at line 41 of file gtask-stream-parser.h. |
|
Value: (G_TYPE_CHECK_INSTANCE_CAST( (obj), \ GTASK_STREAM_PARSER_TYPE, \ GTaskStreamParser )) Definition at line 21 of file gtask-stream-parser.h. |
|
Value: (G_TYPE_CHECK_CLASS_CAST( (klass), \ GTASK_STREAM_PARSER_TYPE, \ GTaskStreamParserClass )) Definition at line 26 of file gtask-stream-parser.h. |
|
Value: (G_TYPE_INSTANCE_GET_CLASS( (obj), \ GTASK_STREAM_PARSER_TYPE, \ GTaskStreamParserClass )) Definition at line 44 of file gtask-stream-parser.h. |
|
returns a GType of GTaskStreamParser Definition at line 18 of file gtask-stream-parser.h. |
|
Definition at line 13 of file gtask-stream-parser.h. |
|
Definition at line 15 of file gtask-stream-parser.h. |
|
Definition at line 14 of file gtask-stream-parser.h. |
|
Definition at line 57 of file gtask-stream-parser.h. |
|
Definition at line 104 of file gtask-stream-parser.c. |
|
Definition at line 116 of file gtask-stream-parser.c. |
|
Definition at line 126 of file gtask-stream-parser.c. |
|
Definition at line 111 of file gtask-stream-parser.c. |
|
Definition at line 276 of file gtask-stream-parser.c. |
|
Definition at line 483 of file gtask-stream-parser.c. |
|
Definition at line 609 of file gtask-stream-parser.c. |
|
|
|
Definition at line 637 of file gtask-stream-parser.c. |
|
Definition at line 672 of file gtask-stream-parser.c. |
|
Definition at line 693 of file gtask-stream-parser.c. |
|
|
|
continues returns the next packet if there is one, or NULL otherwise
Definition at line 840 of file gtask-stream-parser.c. |
|
Definition at line 191 of file gtask-stream-parser.c. |
|
Definition at line 864 of file gtask-stream-parser.c. |
|
returns TRUE if the GTaskStreamParser has packets waiting in its queue
Definition at line 772 of file gtask-stream-parser.c. |
|
Definition at line 647 of file gtask-stream-parser.c. |
|
initializes the internal parser used by GTaskStreamParser (libxml SAX parser at the moment). The context for this parser requires 4 bytes of data before parsing can begin. All characters in the passed in buffer are automatically sent to the parser if the number of bytes exceeds the 4 that we need.
Definition at line 741 of file gtask-stream-parser.c. |
|
creates a new GTaskStreamParser. This function should be used if you want the feed the resulting parser the input data yourself using gtask_stream_parser_push_data. If constructed through this function calls to gtask_stream_parser_get_next_packet() will not block and will immediately return NULL if there are no more packets to process.
Definition at line 721 of file gtask-stream-parser.c. |
|
Definition at line 789 of file gtask-stream-parser.c. |
|
Resets the state of the stream parser to their defaults (ie the state before any parsing was done). This function will no, however clear out any generated packets that remain in the queue. This function is generally called when the stream that you are parsing has unexpectedly disconnection and you wish to reconnect and parse again.
Definition at line 882 of file gtask-stream-parser.c. |
|
Definition at line 259 of file gtask-stream-parser.c. |
|
Definition at line 285 of file gtask-stream-parser.c. |
|
Definition at line 234 of file gtask-stream-parser.c. |
|
Definition at line 246 of file gtask-stream-parser.c. |
|
Definition at line 224 of file gtask-stream-parser.c. |
|
Definition at line 22 of file gtask-stream-parser.c. |
|
Definition at line 69 of file gtask-stream-parser.c. |