X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-tny-stream-gtkhtml.h;h=06b1c566966fd7fffe916a2a2c57a8cbd3d2af04;hb=3dc5d2a9432da9d45039b32fe39674c2f99fdab3;hp=7bc15a585669a92ddd447f1981d8f6a265e8da27;hpb=85dbfb5b2586e248ed9cef94d0e43f8e24865caf;p=modest diff --git a/src/widgets/modest-tny-stream-gtkhtml.h b/src/widgets/modest-tny-stream-gtkhtml.h index 7bc15a5..06b1c56 100644 --- a/src/widgets/modest-tny-stream-gtkhtml.h +++ b/src/widgets/modest-tny-stream-gtkhtml.h @@ -71,6 +71,34 @@ GType modest_tny_stream_gtkhtml_get_type (void) G_GNUC_CONST; **/ GObject* modest_tny_stream_gtkhtml_new (GtkHTMLStream* stream, GtkHTML *html); +/** + * modest_tny_stream_gtkhtml_set_max_size: + * @stream: a #ModestTnyStreamGtkhtml + * @max_size: a #gssize + * + * set @max_size as the maximum size @stream will process + */ +void modest_tny_stream_gtkhtml_set_max_size (ModestTnyStreamGtkhtml *stream, gssize max_size); + +/** + * modest_tny_stream_gtkhtml_get_max_size: + * @stream: a #ModestTnyStreamGtkhtml + * + * obtain the maximum size @stream will process + * + * Returns: a #gssize (or 0 if unlimited) + */ +gssize modest_tny_stream_gtkhtml_get_max_size (ModestTnyStreamGtkhtml *stream); + +/** + * modest_tny_stream_gtkhtml_limit_reached: + * @self: a #ModestTnyStreamGtkhtml + * + * tells if on processing the stream, the max size limit has been hit. + * + * Returns: %TRUE if limit is reached, %FALSE otherwise. + */ +gboolean modest_tny_stream_gtkhtml_limit_reached (ModestTnyStreamGtkhtml *self); G_END_DECLS