Top | ![]() |
![]() |
![]() |
![]() |
gchar * | accelerometer-orientation | Read / Write |
gboolean | has-accelerometer | Read / Write |
gboolean | has-ambient-light | Read / Write |
gboolean | has-proximity | Read / Write |
gdouble | light-level | Read / Write |
gchar * | light-level-unit | Read / Write |
gboolean | proximity-near | Read / Write |
gdouble | compass-heading | Read / Write |
gboolean | has-compass | Read / Write |
GInterface ├── PhoshDBusSensorProxy ╰── PhoshDBusSensorProxyCompass GObject ├── GDBusInterfaceSkeleton │ ├── PhoshDBusSensorProxyCompassSkeleton │ ╰── PhoshDBusSensorProxySkeleton ╰── GDBusProxy ├── PhoshDBusSensorProxyCompassProxy ╰── PhoshDBusSensorProxyProxy ╰── PhoshSensorProxyManager
PhoshDBusSensorProxyProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshDBusSensorProxy.
PhoshDBusSensorProxySkeleton implements GDBusInterface and PhoshDBusSensorProxy.
PhoshDBusSensorProxyCompassProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshDBusSensorProxyCompass.
PhoshDBusSensorProxyCompassSkeleton implements GDBusInterface and PhoshDBusSensorProxyCompass.
PhoshDBusSensorProxy is implemented by PhoshDBusSensorProxyProxy, PhoshDBusSensorProxySkeleton and PhoshSensorProxyManager.
PhoshDBusSensorProxyCompass is implemented by PhoshDBusSensorProxyCompassProxy and PhoshDBusSensorProxyCompassSkeleton.
GDBusInterfaceInfo *
phosh_dbus_sensor_proxy_interface_info
(void
);
Gets a machine-readable description of the net.hadess.SensorProxy D-Bus interface.
guint phosh_dbus_sensor_proxy_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshDBusSensorProxy interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
void phosh_dbus_sensor_proxy_complete_claim_accelerometer (PhoshDBusSensorProxy *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ClaimAccelerometer()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_complete_release_accelerometer (PhoshDBusSensorProxy *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ReleaseAccelerometer()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_complete_claim_light (PhoshDBusSensorProxy *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ClaimLight()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_complete_release_light (PhoshDBusSensorProxy *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ReleaseLight()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_complete_claim_proximity (PhoshDBusSensorProxy *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ClaimProximity()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_complete_release_proximity (PhoshDBusSensorProxy *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ReleaseProximity()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_call_claim_accelerometer (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ClaimAccelerometer()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_call_claim_accelerometer_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_call_claim_accelerometer_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_call_claim_accelerometer_finish (PhoshDBusSensorProxy *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_accelerometer()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_call_claim_accelerometer_sync (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ClaimAccelerometer()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_call_claim_accelerometer()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_sensor_proxy_call_release_accelerometer (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ReleaseAccelerometer()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_call_release_accelerometer_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_call_release_accelerometer_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_call_release_accelerometer_finish (PhoshDBusSensorProxy *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_call_release_accelerometer()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_call_release_accelerometer_sync (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ReleaseAccelerometer()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_call_release_accelerometer()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_sensor_proxy_call_claim_light (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ClaimLight()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_call_claim_light_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_call_claim_light_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_call_claim_light_finish (PhoshDBusSensorProxy *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_light()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_call_claim_light_sync (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ClaimLight()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_call_claim_light()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_sensor_proxy_call_release_light (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ReleaseLight()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_call_release_light_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_call_release_light_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_call_release_light_finish (PhoshDBusSensorProxy *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_call_release_light()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_call_release_light_sync (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ReleaseLight()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_call_release_light()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_sensor_proxy_call_claim_proximity (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ClaimProximity()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_call_claim_proximity_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_call_claim_proximity_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_call_claim_proximity_finish (PhoshDBusSensorProxy *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_proximity()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_call_claim_proximity_sync (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ClaimProximity()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_call_claim_proximity()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_sensor_proxy_call_release_proximity (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ReleaseProximity()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_call_release_proximity_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_call_release_proximity_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_call_release_proximity_finish (PhoshDBusSensorProxy *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_call_release_proximity()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_call_release_proximity_sync (PhoshDBusSensorProxy *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ReleaseProximity()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_call_release_proximity()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
gboolean
phosh_dbus_sensor_proxy_get_has_accelerometer
(PhoshDBusSensorProxy *object
);
Gets the value of the "HasAccelerometer" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_set_has_accelerometer (PhoshDBusSensorProxy *object
,gboolean value
);
Sets the "HasAccelerometer" 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.
[skip]
const gchar *
phosh_dbus_sensor_proxy_get_accelerometer_orientation
(PhoshDBusSensorProxy *object
);
Gets the value of the "AccelerometerOrientation" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use phosh_dbus_sensor_proxy_dup_accelerometer_orientation()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
gchar *
phosh_dbus_sensor_proxy_dup_accelerometer_orientation
(PhoshDBusSensorProxy *object
);
Gets a copy of the "AccelerometerOrientation" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_set_accelerometer_orientation (PhoshDBusSensorProxy *object
,const gchar *value
);
Sets the "AccelerometerOrientation" 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.
[skip]
gboolean
phosh_dbus_sensor_proxy_get_has_ambient_light
(PhoshDBusSensorProxy *object
);
Gets the value of the "HasAmbientLight" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_set_has_ambient_light (PhoshDBusSensorProxy *object
,gboolean value
);
Sets the "HasAmbientLight" 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.
[skip]
const gchar *
phosh_dbus_sensor_proxy_get_light_level_unit
(PhoshDBusSensorProxy *object
);
Gets the value of the "LightLevelUnit" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use phosh_dbus_sensor_proxy_dup_light_level_unit()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
gchar *
phosh_dbus_sensor_proxy_dup_light_level_unit
(PhoshDBusSensorProxy *object
);
Gets a copy of the "LightLevelUnit" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_set_light_level_unit (PhoshDBusSensorProxy *object
,const gchar *value
);
Sets the "LightLevelUnit" 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.
[skip]
gdouble
phosh_dbus_sensor_proxy_get_light_level
(PhoshDBusSensorProxy *object
);
Gets the value of the "LightLevel" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_set_light_level (PhoshDBusSensorProxy *object
,gdouble value
);
Sets the "LightLevel" 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.
[skip]
gboolean
phosh_dbus_sensor_proxy_get_has_proximity
(PhoshDBusSensorProxy *object
);
Gets the value of the "HasProximity" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_set_has_proximity (PhoshDBusSensorProxy *object
,gboolean value
);
Sets the "HasProximity" 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.
[skip]
gboolean
phosh_dbus_sensor_proxy_get_proximity_near
(PhoshDBusSensorProxy *object
);
Gets the value of the "ProximityNear" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_set_proximity_near (PhoshDBusSensorProxy *object
,gboolean value
);
Sets the "ProximityNear" 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.
[skip]
void phosh_dbus_sensor_proxy_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface net.hadess.SensorProxy. See g_dbus_proxy_new()
for more details.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_proxy_new_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshDBusSensorProxy * phosh_dbus_sensor_proxy_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyProxy]
PhoshDBusSensorProxy * phosh_dbus_sensor_proxy_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface net.hadess.SensorProxy. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_proxy_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyProxy]
void phosh_dbus_sensor_proxy_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_dbus_sensor_proxy_proxy_new()
but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshDBusSensorProxy * phosh_dbus_sensor_proxy_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyProxy]
PhoshDBusSensorProxy * phosh_dbus_sensor_proxy_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_dbus_sensor_proxy_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_proxy_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyProxy]
PhoshDBusSensorProxy *
phosh_dbus_sensor_proxy_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface net.hadess.SensorProxy.
GDBusInterfaceInfo *
phosh_dbus_sensor_proxy_compass_interface_info
(void
);
Gets a machine-readable description of the net.hadess.SensorProxy.Compass D-Bus interface.
guint phosh_dbus_sensor_proxy_compass_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshDBusSensorProxyCompass interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
void phosh_dbus_sensor_proxy_compass_complete_claim_compass (PhoshDBusSensorProxyCompass *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ClaimCompass()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_compass_complete_release_compass (PhoshDBusSensorProxyCompass *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the ReleaseCompass()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_dbus_sensor_proxy_compass_call_claim_compass (PhoshDBusSensorProxyCompass *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ClaimCompass()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_compass_call_claim_compass_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_compass_call_claim_compass_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_compass_call_claim_compass_finish (PhoshDBusSensorProxyCompass *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_compass_call_claim_compass()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_compass_call_claim_compass_sync (PhoshDBusSensorProxyCompass *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ClaimCompass()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_compass_call_claim_compass()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_dbus_sensor_proxy_compass_call_release_compass (PhoshDBusSensorProxyCompass *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ReleaseCompass()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_compass_call_release_compass_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_compass_call_release_compass_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_dbus_sensor_proxy_compass_call_release_compass_finish (PhoshDBusSensorProxyCompass *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_compass_call_release_compass()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_dbus_sensor_proxy_compass_call_release_compass_sync (PhoshDBusSensorProxyCompass *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ReleaseCompass()
proxy
. The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_compass_call_release_compass()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
gboolean
phosh_dbus_sensor_proxy_compass_get_has_compass
(PhoshDBusSensorProxyCompass *object
);
Gets the value of the "HasCompass" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_compass_set_has_compass (PhoshDBusSensorProxyCompass *object
,gboolean value
);
Sets the "HasCompass" 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.
[skip]
gdouble
phosh_dbus_sensor_proxy_compass_get_compass_heading
(PhoshDBusSensorProxyCompass *object
);
Gets the value of the "CompassHeading" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_dbus_sensor_proxy_compass_set_compass_heading (PhoshDBusSensorProxyCompass *object
,gdouble value
);
Sets the "CompassHeading" 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.
[skip]
void phosh_dbus_sensor_proxy_compass_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface net.hadess.SensorProxy.Compass. See g_dbus_proxy_new()
for more details.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_compass_proxy_new_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_compass_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshDBusSensorProxyCompass * phosh_dbus_sensor_proxy_compass_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_compass_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyCompassProxy]
PhoshDBusSensorProxyCompass * phosh_dbus_sensor_proxy_compass_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface net.hadess.SensorProxy.Compass. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_compass_proxy_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyCompassProxy]
void phosh_dbus_sensor_proxy_compass_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_dbus_sensor_proxy_compass_proxy_new()
but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_dbus_sensor_proxy_compass_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_dbus_sensor_proxy_compass_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshDBusSensorProxyCompass * phosh_dbus_sensor_proxy_compass_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_dbus_sensor_proxy_compass_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyCompassProxy]
PhoshDBusSensorProxyCompass * phosh_dbus_sensor_proxy_compass_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_dbus_sensor_proxy_compass_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_dbus_sensor_proxy_compass_proxy_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshDBusSensorProxyCompassProxy]
PhoshDBusSensorProxyCompass *
phosh_dbus_sensor_proxy_compass_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface net.hadess.SensorProxy.Compass.
struct PhoshDBusSensorProxyIface { GTypeInterface parent_iface; gboolean (*handle_claim_accelerometer) ( PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation); gboolean (*handle_claim_light) ( PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation); gboolean (*handle_claim_proximity) ( PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation); gboolean (*handle_release_accelerometer) ( PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation); gboolean (*handle_release_light) ( PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation); gboolean (*handle_release_proximity) ( PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation); const gchar * (*get_accelerometer_orientation) (PhoshDBusSensorProxy *object); gboolean (*get_has_accelerometer) (PhoshDBusSensorProxy *object); gboolean (*get_has_ambient_light) (PhoshDBusSensorProxy *object); gboolean (*get_has_proximity) (PhoshDBusSensorProxy *object); gdouble (*get_light_level) (PhoshDBusSensorProxy *object); const gchar * (*get_light_level_unit) (PhoshDBusSensorProxy *object); gboolean (*get_proximity_near) (PhoshDBusSensorProxy *object); };
Virtual table for the D-Bus interface net.hadess.SensorProxy.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-claim-accelerometer” signal. |
||
Handler for the “handle-claim-light” signal. |
||
Handler for the “handle-claim-proximity” signal. |
||
Handler for the “handle-release-accelerometer” signal. |
||
Handler for the “handle-release-light” signal. |
||
Handler for the “handle-release-proximity” signal. |
||
Getter for the “accelerometer-orientation” property. |
||
Getter for the “has-accelerometer” property. |
||
Getter for the “has-ambient-light” property. |
||
Getter for the “has-proximity” property. |
||
Getter for the “light-level” property. |
||
Getter for the “light-level-unit” property. |
||
Getter for the “proximity-near” property. |
struct PhoshDBusSensorProxyProxy;
The PhoshDBusSensorProxyProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshDBusSensorProxyProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshDBusSensorProxyProxy.
struct PhoshDBusSensorProxySkeleton;
The PhoshDBusSensorProxySkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshDBusSensorProxySkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshDBusSensorProxySkeleton.
struct PhoshDBusSensorProxyCompassIface { GTypeInterface parent_iface; gboolean (*handle_claim_compass) ( PhoshDBusSensorProxyCompass *object, GDBusMethodInvocation *invocation); gboolean (*handle_release_compass) ( PhoshDBusSensorProxyCompass *object, GDBusMethodInvocation *invocation); gdouble (*get_compass_heading) (PhoshDBusSensorProxyCompass *object); gboolean (*get_has_compass) (PhoshDBusSensorProxyCompass *object); };
Virtual table for the D-Bus interface net.hadess.SensorProxy.Compass.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-claim-compass” signal. |
||
Handler for the “handle-release-compass” signal. |
||
Getter for the “compass-heading” property. |
||
Getter for the “has-compass” property. |
struct PhoshDBusSensorProxyCompassProxy;
The PhoshDBusSensorProxyCompassProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshDBusSensorProxyCompassProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshDBusSensorProxyCompassProxy.
struct PhoshDBusSensorProxyCompassSkeleton;
The PhoshDBusSensorProxyCompassSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshDBusSensorProxyCompassSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshDBusSensorProxyCompassSkeleton.
typedef struct _PhoshDBusSensorProxy PhoshDBusSensorProxy;
Abstract interface type for the D-Bus interface net.hadess.SensorProxy.
typedef struct _PhoshDBusSensorProxyCompass PhoshDBusSensorProxyCompass;
Abstract interface type for the D-Bus interface net.hadess.SensorProxy.Compass.
typedef struct _PhoshDBusSensorProxyCompassProxyPrivate PhoshDBusSensorProxyCompassProxyPrivate;
typedef struct _PhoshDBusSensorProxyCompassSkeletonPrivate PhoshDBusSensorProxyCompassSkeletonPrivate;
typedef struct _PhoshDBusSensorProxyProxyPrivate PhoshDBusSensorProxyProxyPrivate;
“accelerometer-orientation”
property“accelerometer-orientation” gchar *
Represents the D-Bus property "AccelerometerOrientation".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: NULL
“has-accelerometer”
property“has-accelerometer” gboolean
Represents the D-Bus property "HasAccelerometer".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: FALSE
“has-ambient-light”
property“has-ambient-light” gboolean
Represents the D-Bus property "HasAmbientLight".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: FALSE
“has-proximity”
property“has-proximity” gboolean
Represents the D-Bus property "HasProximity".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: FALSE
“light-level”
property“light-level” gdouble
Represents the D-Bus property "LightLevel".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“light-level-unit”
property“light-level-unit” gchar *
Represents the D-Bus property "LightLevelUnit".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: NULL
“proximity-near”
property“proximity-near” gboolean
Represents the D-Bus property "ProximityNear".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: FALSE
“compass-heading”
property“compass-heading” gdouble
Represents the D-Bus property "CompassHeading".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“has-compass”
property“has-compass” gboolean
Represents the D-Bus property "HasCompass".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: FALSE
“handle-claim-accelerometer”
signalgboolean user_function (PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ClaimAccelerometer()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_complete_claim_accelerometer()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last
“handle-claim-light”
signalgboolean user_function (PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ClaimLight()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_complete_claim_light()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last
“handle-claim-proximity”
signalgboolean user_function (PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ClaimProximity()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_complete_claim_proximity()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last
“handle-release-accelerometer”
signalgboolean user_function (PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ReleaseAccelerometer()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_complete_release_accelerometer()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last
“handle-release-light”
signalgboolean user_function (PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ReleaseLight()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_complete_release_light()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last
“handle-release-proximity”
signalgboolean user_function (PhoshDBusSensorProxy *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ReleaseProximity()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_complete_release_proximity()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last
“handle-claim-compass”
signalgboolean user_function (PhoshDBusSensorProxyCompass *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ClaimCompass()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_compass_complete_claim_compass()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last
“handle-release-compass”
signalgboolean user_function (PhoshDBusSensorProxyCompass *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ReleaseCompass()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_dbus_sensor_proxy_compass_complete_release_compass()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last