Grss.FeedsGroup¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Grss.FeedsGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
Grss.FeedsGroup
.- Return type:
Allocates a new
Grss.FeedsGroup
.
- export_file(channels, format, uri)¶
- Parameters:
channels ([
Grss.FeedChannel
]) – list ofGrss.FeedChannels
.format (
str
) – string rappresenting the desired export format, as returnes byGrss.FeedsGroup.get_formats
().uri (
str
) – URI of the file to write.
- Raises:
- Returns:
True
if the file is created correctly, orFalse
if an error occours and error is set.- Return type:
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:
- Returns:
a list of
Grss.FeedChannels
, orNone
if an error occours and error is set.- Return type:
Parses the given file to obtain list of listed feeds.