public unowned Geocode.Location get_location ();
public unowned string get_name ();
public unowned string get_osm_id ();
+ public Geocode.PlaceOsmType get_osm_type ();
public Geocode.PlaceType get_place_type ();
public unowned string get_postal_code ();
public unowned string get_state ();
public string name { get; set; }
[NoAccessorMethod]
public string osm_id { owned get; set; }
+ [NoAccessorMethod]
+ public Geocode.PlaceOsmType osm_type { get; set; }
public Geocode.PlaceType place_type { get; construct; }
public string postal_code { get; set; }
public string state { get; set; }
public enum LocationURIScheme {
GEO
}
+ [CCode (cheader_filename = "geocode-glib/geocode-glib.h", cprefix = "GEOCODE_PLACE_OSM_TYPE_", type_id = "geocode_place_osm_type_get_type ()")]
+ public enum PlaceOsmType {
+ UNKNOWN,
+ NODE,
+ RELATION,
+ WAY
+ }
[CCode (cheader_filename = "geocode-glib/geocode-glib.h", cprefix = "GEOCODE_PLACE_TYPE_", type_id = "geocode_place_type_get_type ()")]
public enum PlaceType {
UNKNOWN,
public interface NetworkMonitor : GLib.Initable, GLib.Object {
public abstract bool can_reach (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
public abstract async bool can_reach_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ public GLib.NetworkConnectivity get_connectivity ();
public static unowned GLib.NetworkMonitor get_default ();
public bool get_network_available ();
[NoAccessorMethod]
+ public abstract GLib.NetworkConnectivity connectivity { get; }
+ [NoAccessorMethod]
public abstract bool network_available { get; }
public virtual signal void network_changed (bool available);
}
NONE,
FORCE
}
+ [CCode (cheader_filename = "gio/gio.h", cprefix = "G_NETWORK_CONNECTIVITY_", type_id = "g_network_connectivity_get_type ()")]
+ public enum NetworkConnectivity {
+ LOCAL,
+ LIMITED,
+ PORTAL,
+ FULL
+ }
[CCode (cheader_filename = "gio/gio.h", cprefix = "G_NOTIFICATION_PRIORITY_", type_id = "g_notification_priority_get_type ()")]
public enum NotificationPriority {
NORMAL,
PROXY_NEED_AUTH,
PROXY_NOT_ALLOWED,
BROKEN_PIPE,
- CONNECTION_CLOSED;
+ CONNECTION_CLOSED,
+ NOT_CONNECTED;
[CCode (cheader_filename = "gio/gio.h")]
public static unowned GLib.IOError from_errno (int err_no);
[CCode (cheader_filename = "gio/gio.h")]