X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-stream-text-to-html.c;h=fc59bf3f138eb47b97f3342adebc565343d9e2ac;hp=c99ff9587447ad46b524aecee697142414d90a87;hb=3477500f2b63cf386e7bf69e4d61d781023a1164;hpb=98bc7d6724076480df8cf72ec31d541d56dc8bb4 diff --git a/src/modest-stream-text-to-html.c b/src/modest-stream-text-to-html.c index c99ff95..fc59bf3 100644 --- a/src/modest-stream-text-to-html.c +++ b/src/modest-stream-text-to-html.c @@ -183,6 +183,16 @@ modest_stream_text_to_html_set_full_limit (ModestStreamTextToHtml *self, gssize priv->full_limit = limit; } +gboolean +modest_stream_text_to_html_limit_reached (ModestStreamTextToHtml *self) +{ + ModestStreamTextToHtmlPrivate *priv = MODEST_STREAM_TEXT_TO_HTML_GET_PRIVATE (self); + + return (priv->full_limit > 0 && priv->total_output > priv->full_limit) || + (priv->line_limit > 0 && priv->total_lines_output > priv->line_limit); + +} + /* the rest are interface functions */