Grss.FeedChannel – libgrss Reference Manual
Packages
libgrss
Grss
FeedChannel
FeedChannel
FeedChannel.from_file
FeedChannel.from_memory
FeedChannel.from_xml
FeedChannel.with_source
add_contributor
add_cookie
fetch
fetch_all
fetch_all_async
fetch_async
fetch_cancel
get_category
get_contributors
get_cookies
get_copyright
get_description
get_editor
get_format
get_generator
get_gzip_compression
get_homepage
get_icon
get_image
get_language
get_publish_time
get_pubsubhub
get_rsscloud
get_source
get_title
get_update_interval
get_update_time
get_webmaster
set_category
set_copyright
set_description
set_editor
set_format
set_generator
set_gzip_compression
set_homepage
set_icon
set_image
set_language
set_publish_time
set_pubsubhub
set_rsscloud
set_source
set_title
set_update_interval
set_update_time
set_webmaster
FeedChannel
Object Hierarchy:
Description:
[
CCode
( type_id =
"grss_feed_channel_get_type ()"
) ]
public
class
FeedChannel
:
Object
Namespace:
Grss
Package:
libgrss
Content:
Creation methods:
public
FeedChannel
()
Allocates a new
FeedChannel
.
public
FeedChannel.from_file
(
string
path)
throws
Error
Allocates a new
FeedChannel
and init it with contents found in specified file.
public
FeedChannel.from_memory
(
string
data)
throws
Error
Allocates a new
FeedChannel
and init it with contents found in specified memory block.
public
FeedChannel.from_xml
(
unowned
Doc
* doc)
throws
Error
Allocates a new
FeedChannel
and init it with contents found in specified XML document.
public
FeedChannel.with_source
(
string
source)
Allocates a new
FeedChannel
and assign it the given remote source.
Methods:
public
void
add_contributor
(
Person
contributor)
To add a contributor to the
this
.
public
void
add_cookie
(
Cookie
cookie)
To add a cookie related to the
this
, will be involved in HTTP sessions while fetching it.
public
bool
fetch
()
throws
Error
Utility to fetch and populate a
FeedChannel
for the first time, and init all his internal values.
public
List
<
FeedItem
>
fetch_all
()
throws
Error
Utility to fetch and populate a
FeedChannel
, and retrieve all its items.
public
async
unowned
List
<
FeedItem
>
fetch_all_async
()
throws
Error
Similar to
fetch_all
, but asyncronous.
public
async
bool
fetch_async
()
throws
Error
Similar to
fetch
, but asyncronous.
public
bool
fetch_cancel
()
If a fetch operation was scheduled with
fetch_async
or
fetch_all_async
, cancel it.
public
unowned
string
get_category
()
Retrieves category of the
this
.
public
unowned
List
<
Person
>
get_contributors
()
Retrieves reference to the contributors of the
this
.
public
SList
<
Cookie
>
get_cookies
()
Retrieves reference to the HTML cookies of the
this
.
public
unowned
string
get_copyright
()
Retrieves indications about the copyright.
public
unowned
string
get_description
()
Retrieves the description of
this
.
public
Person
get_editor
()
Retrieves reference to the editor or the
this
.
public
unowned
string
get_format
()
Retrieves the file format of
this
.
public
unowned
string
get_generator
()
Retrieves information about the feed's software generator.
public
bool
get_gzip_compression
()
GZIP compression of the channel is either on or off.
public
unowned
string
get_homepage
()
Retrieves the homepage of the site for which
this
is the feed.
public
unowned
string
get_icon
()
Retrieves URL of the favicon of the channel (and/or the website for which this is the feed).
public
unowned
string
get_image
()
Retrieves the URL of the image assigned to the channel.
public
unowned
string
get_language
()
Retrieves the language of the
this
.
public
time_t
get_publish_time
()
Retrieves the publishing time of
this
.
public
bool
get_pubsubhub
(
string
hub)
Retrieves information about the PubSubHubbub hub of the channel.
public
bool
get_rsscloud
(
string
path,
string
protocol)
Retrieves information about the RSSCloud coordinates of the channel.
public
unowned
string
get_source
()
Retrieves URL where to fetch the
this
.
public
unowned
string
get_title
()
Retrieves title of the
this
.
public
int
get_update_interval
()
Retrieves the update interval for the feed.
public
time_t
get_update_time
()
Retrieves the update time of
this
.
public
unowned
string
get_webmaster
()
Retrieves reference to the webmaster of the feed.
public
void
set_category
(
string
category)
To set the category of the
this
.
public
void
set_copyright
(
string
copyright)
To set the copyright of the feed.
public
void
set_description
(
string
description)
To set the description of
this
.
public
void
set_editor
(
Person
editor)
To set the editor of the
this
.
public
void
set_format
(
string
format)
To assign a file format to the feed.
public
void
set_generator
(
string
generator)
To set information about the software generator of
this
.
public
void
set_gzip_compression
(
bool
value)
Set the GZIP compression for the channel to on or off.
public
bool
set_homepage
(
string
homepage)
To set the homepage of the site the
this
belongs.
public
bool
set_icon
(
string
icon)
To set the URL of the icon rappresenting
this
.
public
bool
set_image
(
string
image)
To set a rappresentative image to
this
.
public
void
set_language
(
string
language)
To set the language of
this
.
public
void
set_publish_time
(
time_t
publish)
To set the time of publishing for the feed.
public
bool
set_pubsubhub
(
string
hub)
To set information about PubSubHubbub for the channel.
public
void
set_rsscloud
(
string
path,
string
protocol)
To set information about RSSCloud notifications for the channel.
public
bool
set_source
(
string
source)
To assign the URL where to fetch the feed.
public
void
set_title
(
string
title)
To set a title to the
this
.
public
void
set_update_interval
(
int
minutes)
To set the update interval for
this
.
public
void
set_update_time
(
time_t
update)
To set the latest update time of
this
.
public
void
set_webmaster
(
string
webmaster)
To assign a webmaster to the
this
.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref