Class Location

All Implemented Interfaces:
PointerInterface

public class Location extends Interface
Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>.

https://www.freedesktop.org/software/geoclue/docs/libgeoclue/

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • dupDescription

      public Str dupDescription()
      Gets a copy of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Description">"Description"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value or %NULL if the property is not set. The returned value should be freed with g_free().
    • dupTimestamp

      public Variant dupTimestamp()
      Gets a copy of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Timestamp">"Timestamp"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
    • getAccuracy

      public double getAccuracy()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Accuracy">"Accuracy"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value.
    • getAltitude

      public double getAltitude()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Altitude">"Altitude"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value.
    • getDescription

      public Str getDescription()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Description">"Description"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

      The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use gclue_location_dup_description() if on another thread.
      Returns:
      The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
    • getHeading

      public double getHeading()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Heading">"Heading"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value.
    • getLatitude

      public double getLatitude()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Latitude">"Latitude"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value.
    • getLongitude

      public double getLongitude()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Longitude">"Longitude"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value.
    • getSpeed

      public double getSpeed()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Speed">"Speed"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
      Returns:
      The property value.
    • getTimestamp

      public Variant getTimestamp()
      Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Timestamp">"Timestamp"</link> D-Bus property.

      Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

      The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use gclue_location_dup_timestamp() if on another thread.
      Returns:
      The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
    • setAccuracy

      public void setAccuracy(double value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Accuracy">"Accuracy"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setAltitude

      public void setAltitude(double value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Altitude">"Altitude"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setDescription

      public void setDescription(@Nonnull Str value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Description">"Description"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setDescription

      public void setDescription(String value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Description">"Description"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setHeading

      public void setHeading(double value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Heading">"Heading"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setLatitude

      public void setLatitude(double value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Latitude">"Latitude"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setLongitude

      public void setLongitude(double value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Longitude">"Longitude"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setSpeed

      public void setSpeed(double value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Speed">"Speed"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • setTimestamp

      public void setTimestamp(@Nonnull Variant value)
      Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Location.Timestamp">"Timestamp"</link> D-Bus property to @value.

      Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
      Parameters:
      value - The value to set.
    • interfaceInfo

      public static DBusInterfaceInfo interfaceInfo()
      Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link> D-Bus interface.
      Returns:
      A #GDBusInterfaceInfo. Do not free.
    • overrideProperties

      public static int overrideProperties(@Nonnull ObjectClass klass, int property_id_begin)
      Overrides all #GObject properties in the #GClueLocation interface for a concrete class.
      The properties are overridden in the order they are defined.
      Parameters:
      klass - The class structure for a #GObject derived class.
      property_id_begin - The property id to assign to the first overridden property.
      Returns:
      The last property id.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()