Info
Object Hierarchy:
Description:
[ CCode ( type_id = "gweather_info_get_type ()" ) ]
public class Info : Object
`GWeatherInfo` provides a handy way to access weather conditions and forecasts from a [class@GWeather.
Location], aggregating multiple different web services.
It includes also astronomical data such as sunrise times and moon phases.
Content:
Properties:
- public string application_id { get; set; }
A unique identifier, typically in the form of reverse DNS notation,
for the application that is querying the weather information.
- public string contact_info { get; set; }
An email address or any other contact form URL.
- public Provider enabled_providers { get; set; }
The enabled weather providers.
- public Location location { get; set construct; }
The location of the weather information.
Static methods:
Creation methods:
Methods:
- public void abort ()
- public string get_apparent ()
- public unowned string get_application_id ()
- public unowned string get_attribution ()
Some weather services require the application showing the data to
include an attribution text, possibly including links to the service website.
- public string get_conditions ()
- public unowned string get_contact_info ()
Get the contact information of the application fetching the weather.
- public string get_dew ()
- public Provider get_enabled_providers ()
Gets the bitmask of enabled
Provider weather providers.
- public unowned SList<Info> get_forecast_list ()
- public string get_humidity ()
- public unowned string get_icon_name ()
- public unowned Location get_location ()
- public string get_location_name ()
- public string get_pressure ()
- public string get_sky ()
- public string get_sunrise ()
- public string get_sunset ()
- public unowned string get_symbolic_icon_name ()
- public string get_temp ()
- public string get_temp_max ()
- public string get_temp_min ()
- public string get_temp_summary ()
- public bool get_upcoming_moonphases (long phases)
- public string get_update ()
- public bool get_value_apparent (TemperatureUnit unit, out double value)
- public bool get_value_conditions (out ConditionPhenomenon phenomenon, out ConditionQualifier qualifier)
Fills out phenomenon
and qualifier
with
current weather conditions.
- public bool get_value_dew (TemperatureUnit unit, out double value)
- public bool get_value_moonphase (out MoonPhase value, out MoonLatitude lat)
- public bool get_value_pressure (PressureUnit unit, out double value)
- public bool get_value_sky (out Sky sky)
Fills out sky
with current sky conditions.
- public bool get_value_sunrise (out ulong value)
- public bool get_value_sunset (out ulong value)
- public bool get_value_temp (TemperatureUnit unit, out double value)
- public bool get_value_temp_max (TemperatureUnit unit, out double value)
- public bool get_value_temp_min (TemperatureUnit unit, out double value)
- public bool get_value_update (out long value)
Note that value
may be 0 if
this has not yet been updated.
- public bool get_value_visibility (DistanceUnit unit, out double value)
- public bool get_value_wind (SpeedUnit unit, out double speed, out WindDirection direction)
- public string get_visibility ()
- public string get_weather_summary ()
- public string get_wind ()
- public bool is_daytime ()
- public bool is_valid ()
- public bool network_error ()
- public int next_sun_event ()
- public void set_application_id (string application_id)
- public void set_contact_info (string contact_info)
Sets the contact information for the application fetching the weather.
- public void set_enabled_providers (Provider providers)
Sets the enabled providers for fetching the weather.
- public void set_location (Location? location)
Changes the location of the weather report.
- public void update ()
Requests a reload of weather conditions and forecast data from enabled
network services.
Signals:
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