Modified webpage: now tinymail repository is in gitorious.
[modest] / src / widgets / modest-tny-stream-gtkhtml.h
index 42fd05a..06b1c56 100644 (file)
@@ -69,8 +69,36 @@ GType       modest_tny_stream_gtkhtml_get_type    (void) G_GNUC_CONST;
  * 
  * Returns: a new #ModestTnyStreamGtkhtml
  **/
-GObject*    modest_tny_stream_gtkhtml_new         (GtkHTMLStream* stream);
+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