Grss.FeedsGroup

g GObject.Object GObject.Object Grss.FeedsGroup Grss.FeedsGroup GObject.Object->Grss.FeedsGroup

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

export_file (channels, format, uri)

get_formats ()

parse_file (path)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Grss.FeedsGroup(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Grss.FeedsGroupClass

classmethod new()
Returns:

a new Grss.FeedsGroup.

Return type:

Grss.FeedsGroup

Allocates a new Grss.FeedsGroup.

export_file(channels, format, uri)
Parameters:
Raises:

GLib.Error

Returns:

True if the file is created correctly, or False if an error occours and error is set.

Return type:

bool

Creates a new file with the list of channels rappresented in the required format. It a file already exists at the uri location, it is overwritten.

get_formats()
Returns:

a list of constant strings with names of supported formats. The list must be freed when no longer used

Return type:

[str]

Returns the list of supported file formats.

parse_file(path)
Parameters:

path (str) – path of the file to parse.

Raises:

GLib.Error

Returns:

a list of Grss.FeedChannels, or None if an error occours and error is set.

Return type:

[Grss.FeedChannel]

Parses the given file to obtain list of listed feeds.