1 /* libgrss.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Grss", gir_namespace = "Grss", gir_version = "0.7", lower_case_cprefix = "grss_")]
5 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_atom_formatter_get_type ()")]
6 public class FeedAtomFormatter : Grss.FeedFormatter {
7 [CCode (has_construct_function = false)]
8 public FeedAtomFormatter ();
10 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_channel_get_type ()")]
11 public class FeedChannel : GLib.Object {
12 [CCode (has_construct_function = false)]
13 public FeedChannel ();
14 public void add_contributor (Grss.Person contributor);
15 public void add_cookie (Soup.Cookie cookie);
16 public bool fetch () throws GLib.Error;
17 public GLib.List<Grss.FeedItem> fetch_all () throws GLib.Error;
18 public async unowned GLib.List<Grss.FeedItem> fetch_all_async () throws GLib.Error;
19 public async bool fetch_async () throws GLib.Error;
20 public bool fetch_cancel ();
21 [CCode (has_construct_function = false)]
22 public FeedChannel.from_file (string path) throws GLib.Error;
23 [CCode (has_construct_function = false)]
24 public FeedChannel.from_memory (string data) throws GLib.Error;
25 [CCode (has_construct_function = false)]
26 public FeedChannel.from_xml ([CCode (type = "xmlDocPtr")] Xml.Doc* doc) throws GLib.Error;
27 public unowned string get_category ();
28 public unowned GLib.List<Grss.Person> get_contributors ();
29 public GLib.SList<Soup.Cookie> get_cookies ();
30 public unowned string get_copyright ();
31 public unowned string get_description ();
32 public Grss.Person get_editor ();
33 public unowned string get_format ();
34 public unowned string get_generator ();
35 public bool get_gzip_compression ();
36 public unowned string get_homepage ();
37 public unowned string get_icon ();
38 public unowned string get_image ();
39 public unowned string get_language ();
40 public long get_publish_time ();
41 public bool get_pubsubhub (string hub);
42 public bool get_rsscloud (string path, string protocol);
43 public unowned string get_source ();
44 public unowned string get_title ();
45 public int get_update_interval ();
46 public long get_update_time ();
47 public unowned string get_webmaster ();
48 public void set_category (string category);
49 public void set_copyright (string copyright);
50 public void set_description (string description);
51 public void set_editor (Grss.Person editor);
52 public void set_format (string format);
53 public void set_generator (string generator);
54 public void set_gzip_compression (bool value);
55 public bool set_homepage (string homepage);
56 public bool set_icon (string icon);
57 public bool set_image (string image);
58 public void set_language (string language);
59 public void set_publish_time (long publish);
60 public bool set_pubsubhub (string hub);
61 public void set_rsscloud (string path, string protocol);
62 public bool set_source (string source);
63 public void set_title (string title);
64 public void set_update_interval (int minutes);
65 public void set_update_time (long update);
66 public void set_webmaster (string webmaster);
67 [CCode (has_construct_function = false)]
68 public FeedChannel.with_source (string source);
70 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_enclosure_get_type ()")]
71 public class FeedEnclosure : GLib.Object {
72 [CCode (has_construct_function = false)]
73 public FeedEnclosure (string url);
74 public GLib.File fetch () throws GLib.Error;
75 public async GLib.File fetch_async () throws GLib.Error;
76 public unowned string get_format ();
77 public size_t get_length ();
78 public unowned string get_url ();
79 public void set_format (string type);
80 public void set_length (size_t length);
82 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_formatter_get_type ()")]
83 public abstract class FeedFormatter : GLib.Object {
84 [CCode (has_construct_function = false)]
85 protected FeedFormatter ();
86 public void add_item (Grss.FeedItem item);
87 public void add_items (GLib.List<Grss.FeedItem> items);
88 public virtual string format ();
89 public unowned Grss.FeedChannel get_channel ();
90 public unowned GLib.List<Grss.FeedItem> get_items ();
92 public void set_channel (Grss.FeedChannel channel);
94 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_item_get_type ()")]
95 public class FeedItem : GLib.Object {
96 [CCode (has_construct_function = false)]
97 public FeedItem (Grss.FeedChannel parent);
98 public void add_category (string category);
99 public void add_contributor (Grss.Person contributor);
100 public void add_enclosure (Grss.FeedEnclosure enclosure);
101 public Grss.Person get_author ();
102 public unowned GLib.List<string> get_categories ();
103 public unowned string get_comments_url ();
104 public unowned GLib.List<Grss.Person> get_contributors ();
105 public unowned string get_copyright ();
106 public unowned string get_description ();
107 public unowned GLib.List<Grss.FeedEnclosure> get_enclosures ();
108 public bool get_geo_point (double latitude, double longitude);
109 public unowned string get_id ();
110 public unowned Grss.FeedChannel get_parent ();
111 public long get_publish_time ();
112 public void get_real_source (string realsource, string title);
113 public unowned string get_related ();
114 public unowned string get_source ();
115 public unowned string get_title ();
116 public void set_author (Grss.Person author);
117 public bool set_comments_url (string url);
118 public void set_copyright (string copyright);
119 public void set_description (string description);
120 public void set_geo_point (double latitude, double longitude);
121 public void set_id (string id);
122 public void set_publish_time (long publish);
123 public bool set_real_source (string realsource, string title);
124 public void set_related (string related);
125 public bool set_source (string source);
126 public void set_title (string title);
128 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_parser_get_type ()")]
129 public class FeedParser : GLib.Object {
130 [CCode (has_construct_function = false)]
131 public FeedParser ();
132 public GLib.List<Grss.FeedItem> parse (Grss.FeedChannel feed, [CCode (type = "xmlDocPtr")] Xml.Doc* doc) throws GLib.Error;
133 public void parse_channel (Grss.FeedChannel feed, [CCode (type = "xmlDocPtr")] Xml.Doc* doc) throws GLib.Error;
135 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_rss_formatter_get_type ()")]
136 public class FeedRssFormatter : Grss.FeedFormatter {
137 [CCode (has_construct_function = false)]
138 public FeedRssFormatter ();
140 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_group_get_type ()")]
141 public class FeedsGroup : GLib.Object {
142 [CCode (has_construct_function = false)]
143 public FeedsGroup ();
144 public bool export_file (GLib.List<Grss.FeedChannel> channels, string format, string uri) throws GLib.Error;
145 public GLib.List<weak string> get_formats ();
146 public GLib.List<Grss.FeedChannel> parse_file (string path) throws GLib.Error;
148 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_pool_get_type ()")]
149 public class FeedsPool : GLib.Object {
150 [CCode (has_construct_function = false)]
152 public GLib.List<weak Grss.FeedChannel> get_listened ();
153 public int get_listened_num ();
154 public unowned Soup.Session get_session ();
155 public void listen (GLib.List<Grss.FeedChannel> feeds);
156 public void @switch (bool run);
157 public signal void feed_fail (GLib.Object feed);
158 public virtual signal void feed_fetching (GLib.Object feed);
159 public signal void feed_ready (GLib.Object feed, GLib.List<Grss.FeedItem> items);
161 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_publisher_get_type ()")]
162 public class FeedsPublisher : GLib.Object {
163 [CCode (has_construct_function = false)]
164 public FeedsPublisher ();
165 [Version (deprecated = true, deprecated_since = "0.6")]
166 public string format_content (Grss.FeedChannel channel, GLib.List<Grss.FeedItem> items) throws GLib.Error;
167 public void hub_set_port (int port);
168 public void hub_set_topics (GLib.List<Grss.FeedChannel> topics);
169 public void hub_switch (bool run);
170 public bool publish_file (Grss.FeedChannel channel, GLib.List<Grss.FeedItem> items, string uri) throws GLib.Error;
171 public bool publish_web (Grss.FeedChannel channel, GLib.List<Grss.FeedItem> items, string id) throws GLib.Error;
172 public virtual signal void delete_subscription (Grss.FeedChannel topic, string callback);
173 public virtual signal void new_subscription (Grss.FeedChannel topic, string callback);
175 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_store_get_type ()")]
176 public abstract class FeedsStore : GLib.Object {
177 [CCode (has_construct_function = false)]
178 protected FeedsStore ();
179 public virtual void add_item_in_channel (Grss.FeedChannel channel, Grss.FeedItem item);
180 public virtual unowned GLib.List<Grss.FeedChannel> get_channels ();
181 public virtual unowned GLib.List<Grss.FeedItem> get_items_by_channel (Grss.FeedChannel channel);
182 public virtual bool has_item (Grss.FeedChannel channel, string id);
183 public void @switch (bool run);
185 [CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_subscriber_get_type ()")]
186 public class FeedsSubscriber : GLib.Object {
187 [CCode (has_construct_function = false)]
188 public FeedsSubscriber ();
189 public unowned GLib.InetAddress get_address ();
190 public GLib.List<weak Grss.FeedChannel> get_listened ();
191 public int get_port ();
192 public unowned Soup.Session get_session ();
193 public bool listen (GLib.List<Grss.FeedChannel> feeds);
194 public void set_port (int port);
195 public void @switch (bool run);
196 public virtual signal void notification_received (GLib.Object feed, GLib.Object item);
198 [CCode (cheader_filename = "libgrss/libgrss.h", ref_function = "grss_person_ref", type_id = "grss_person_get_type ()", unref_function = "grss_person_unref")]
200 [Version (since = "0.7")]
201 public class Person {
202 [CCode (has_construct_function = false)]
203 public Person (string name, string? email, string? uri);
204 public unowned string get_email ();
205 public unowned string get_name ();
206 public unowned string get_uri ();
207 public unowned Grss.Person @ref ();
208 public void unref ();