libgrss.vapi 10 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
/* libgrss.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Grss", gir_namespace = "Grss", gir_version = "0.7", lower_case_cprefix = "grss_")]
namespace Grss {
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_atom_formatter_get_type ()")]
	public class FeedAtomFormatter : Grss.FeedFormatter {
		[CCode (has_construct_function = false)]
		public FeedAtomFormatter ();
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_channel_get_type ()")]
	public class FeedChannel : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedChannel ();
		public void add_contributor (Grss.Person contributor);
		public void add_cookie (Soup.Cookie cookie);
		public bool fetch () throws GLib.Error;
		public GLib.List<Grss.FeedItem> fetch_all () throws GLib.Error;
		public async unowned GLib.List<Grss.FeedItem> fetch_all_async () throws GLib.Error;
		public async bool fetch_async () throws GLib.Error;
		public bool fetch_cancel ();
		[CCode (has_construct_function = false)]
		public FeedChannel.from_file (string path) throws GLib.Error;
		[CCode (has_construct_function = false)]
		public FeedChannel.from_memory (string data) throws GLib.Error;
		[CCode (has_construct_function = false)]
		public FeedChannel.from_xml ([CCode (type = "xmlDocPtr")] Xml.Doc* doc) throws GLib.Error;
		public unowned string get_category ();
		public unowned GLib.List<Grss.Person> get_contributors ();
		public GLib.SList<Soup.Cookie> get_cookies ();
		public unowned string get_copyright ();
		public unowned string get_description ();
		public Grss.Person get_editor ();
		public unowned string get_format ();
		public unowned string get_generator ();
		public bool get_gzip_compression ();
		public unowned string get_homepage ();
		public unowned string get_icon ();
		public unowned string get_image ();
		public unowned string get_language ();
		public long get_publish_time ();
		public bool get_pubsubhub (string hub);
		public bool get_rsscloud (string path, string protocol);
		public unowned string get_source ();
		public unowned string get_title ();
		public int get_update_interval ();
		public long get_update_time ();
		public unowned string get_webmaster ();
		public void set_category (string category);
		public void set_copyright (string copyright);
		public void set_description (string description);
		public void set_editor (Grss.Person editor);
		public void set_format (string format);
		public void set_generator (string generator);
		public void set_gzip_compression (bool value);
		public bool set_homepage (string homepage);
		public bool set_icon (string icon);
		public bool set_image (string image);
		public void set_language (string language);
		public void set_publish_time (long publish);
		public bool set_pubsubhub (string hub);
		public void set_rsscloud (string path, string protocol);
		public bool set_source (string source);
		public void set_title (string title);
		public void set_update_interval (int minutes);
		public void set_update_time (long update);
		public void set_webmaster (string webmaster);
		[CCode (has_construct_function = false)]
		public FeedChannel.with_source (string source);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_enclosure_get_type ()")]
	public class FeedEnclosure : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedEnclosure (string url);
		public GLib.File fetch () throws GLib.Error;
		public async GLib.File fetch_async () throws GLib.Error;
		public unowned string get_format ();
		public size_t get_length ();
		public unowned string get_url ();
		public void set_format (string type);
		public void set_length (size_t length);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_formatter_get_type ()")]
	public abstract class FeedFormatter : GLib.Object {
		[CCode (has_construct_function = false)]
		protected FeedFormatter ();
		public void add_item (Grss.FeedItem item);
		public void add_items (GLib.List<Grss.FeedItem> items);
		public virtual string format ();
		public unowned Grss.FeedChannel get_channel ();
		public unowned GLib.List<Grss.FeedItem> get_items ();
		public void reset ();
		public void set_channel (Grss.FeedChannel channel);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_item_get_type ()")]
	public class FeedItem : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedItem (Grss.FeedChannel parent);
		public void add_category (string category);
		public void add_contributor (Grss.Person contributor);
		public void add_enclosure (Grss.FeedEnclosure enclosure);
		public Grss.Person get_author ();
		public unowned GLib.List<string> get_categories ();
		public unowned string get_comments_url ();
		public unowned GLib.List<Grss.Person> get_contributors ();
		public unowned string get_copyright ();
		public unowned string get_description ();
		public unowned GLib.List<Grss.FeedEnclosure> get_enclosures ();
		public bool get_geo_point (double latitude, double longitude);
		public unowned string get_id ();
		public unowned Grss.FeedChannel get_parent ();
		public long get_publish_time ();
		public void get_real_source (string realsource, string title);
		public unowned string get_related ();
		public unowned string get_source ();
		public unowned string get_title ();
		public void set_author (Grss.Person author);
		public bool set_comments_url (string url);
		public void set_copyright (string copyright);
		public void set_description (string description);
		public void set_geo_point (double latitude, double longitude);
		public void set_id (string id);
		public void set_publish_time (long publish);
		public bool set_real_source (string realsource, string title);
		public void set_related (string related);
		public bool set_source (string source);
		public void set_title (string title);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_parser_get_type ()")]
	public class FeedParser : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedParser ();
		public GLib.List<Grss.FeedItem> parse (Grss.FeedChannel feed, [CCode (type = "xmlDocPtr")] Xml.Doc* doc) throws GLib.Error;
		public void parse_channel (Grss.FeedChannel feed, [CCode (type = "xmlDocPtr")] Xml.Doc* doc) throws GLib.Error;
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feed_rss_formatter_get_type ()")]
	public class FeedRssFormatter : Grss.FeedFormatter {
		[CCode (has_construct_function = false)]
		public FeedRssFormatter ();
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_group_get_type ()")]
	public class FeedsGroup : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedsGroup ();
		public bool export_file (GLib.List<Grss.FeedChannel> channels, string format, string uri) throws GLib.Error;
		public GLib.List<weak string> get_formats ();
		public GLib.List<Grss.FeedChannel> parse_file (string path) throws GLib.Error;
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_pool_get_type ()")]
	public class FeedsPool : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedsPool ();
		public GLib.List<weak Grss.FeedChannel> get_listened ();
		public int get_listened_num ();
		public unowned Soup.Session get_session ();
		public void listen (GLib.List<Grss.FeedChannel> feeds);
		public void @switch (bool run);
		public signal void feed_fail (GLib.Object feed);
		public virtual signal void feed_fetching (GLib.Object feed);
		public signal void feed_ready (GLib.Object feed, GLib.List<Grss.FeedItem> items);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_publisher_get_type ()")]
	public class FeedsPublisher : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedsPublisher ();
		[Version (deprecated = true, deprecated_since = "0.6")]
		public string format_content (Grss.FeedChannel channel, GLib.List<Grss.FeedItem> items) throws GLib.Error;
		public void hub_set_port (int port);
		public void hub_set_topics (GLib.List<Grss.FeedChannel> topics);
		public void hub_switch (bool run);
		public bool publish_file (Grss.FeedChannel channel, GLib.List<Grss.FeedItem> items, string uri) throws GLib.Error;
		public bool publish_web (Grss.FeedChannel channel, GLib.List<Grss.FeedItem> items, string id) throws GLib.Error;
		public virtual signal void delete_subscription (Grss.FeedChannel topic, string callback);
		public virtual signal void new_subscription (Grss.FeedChannel topic, string callback);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_store_get_type ()")]
	public abstract class FeedsStore : GLib.Object {
		[CCode (has_construct_function = false)]
		protected FeedsStore ();
		public virtual void add_item_in_channel (Grss.FeedChannel channel, Grss.FeedItem item);
		public virtual unowned GLib.List<Grss.FeedChannel> get_channels ();
		public virtual unowned GLib.List<Grss.FeedItem> get_items_by_channel (Grss.FeedChannel channel);
		public virtual bool has_item (Grss.FeedChannel channel, string id);
		public void @switch (bool run);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", type_id = "grss_feeds_subscriber_get_type ()")]
	public class FeedsSubscriber : GLib.Object {
		[CCode (has_construct_function = false)]
		public FeedsSubscriber ();
		public unowned GLib.InetAddress get_address ();
		public GLib.List<weak Grss.FeedChannel> get_listened ();
		public int get_port ();
		public unowned Soup.Session get_session ();
		public bool listen (GLib.List<Grss.FeedChannel> feeds);
		public void set_port (int port);
		public void @switch (bool run);
		public virtual signal void notification_received (GLib.Object feed, GLib.Object item);
	}
	[CCode (cheader_filename = "libgrss/libgrss.h", ref_function = "grss_person_ref", type_id = "grss_person_get_type ()", unref_function = "grss_person_unref")]
	[Compact]
	[Version (since = "0.7")]
	public class Person {
		[CCode (has_construct_function = false)]
		public Person (string name, string? email, string? uri);
		public unowned string get_email ();
		public unowned string get_name ();
		public unowned string get_uri ();
		public unowned Grss.Person @ref ();
		public void unref ();
	}
}