Class

RssContent

Description

final class Rss.Content : GObject.Object
{
  /* No available fields */
}

An immutable, typed content representation from a feed.

Content can either have inline bytes or an external URI. The serialized text returned by rss_content_get_text() can contain markup; use rss_content_get_plain_text() for safe plain-text display. For ambiguous content, characters are returned literally instead of guessing whether they were intended as markup.

Hierarchy

hierarchy this RssContent ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

rss_content_dup_bytes

Duplicates the immutable inline bytes.

rss_content_get_base_uri

Gets the base URI in scope for relative references inside the content.

rss_content_get_kind

Gets the representation kind.

rss_content_get_language

Gets the natural-language tag in scope for the content.

rss_content_get_media_type

Gets the MIME media type supplied by or inferred from the feed.

rss_content_get_plain_text

Gets a UTF-8 representation suitable for safe plain-text display.

rss_content_get_text

Gets the serialized UTF-8 representation.

rss_content_get_uri

Gets the resolved URI of external content.

rss_content_is_external

Checks whether the content is referenced by URI instead of inline.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Rss.Content:base-uri

The base URI in scope for references inside the content.

Rss.Content:bytes

The immutable inline bytes, or NULL for external content.

Rss.Content:kind

The representation kind.

Rss.Content:language

The natural-language tag in scope for the content.

Rss.Content:media-type

The declared or inferred MIME media type.

Rss.Content:plain-text

A representation suitable for safe plain-text display.

Rss.Content:text

The serialized UTF-8 representation, which may contain untrusted markup.

Rss.Content:uri

The resolved URI for external content.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct RssContentClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.