Interface
PhoshDBusSensorProxy
Description [src]
interface Phosh.DBusSensorProxy : GObject.Object
Abstract interface type for the D-Bus interface net.hadess.SensorProxy.
Prerequisite
In order to implement DBusSensorProxy, your type must inherit fromGObject
.
Functions
phosh_dbus_sensor_proxy_interface_info
Gets a machine-readable description of the net.hadess.SensorProxy D-Bus interface.
phosh_dbus_sensor_proxy_override_properties
Overrides all GObject
properties in the PhoshDBusSensorProxy
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_dbus_sensor_proxy_call_claim_accelerometer
Asynchronously invokes the ClaimAccelerometer() D-Bus method on 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 (see g_main_context_push_thread_default()).
You can then call phosh_dbus_sensor_proxy_call_claim_accelerometer_finish()
to get the result of the operation.
phosh_dbus_sensor_proxy_call_claim_accelerometer_finish
Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_accelerometer().
phosh_dbus_sensor_proxy_call_claim_accelerometer_sync
Synchronously invokes the ClaimAccelerometer() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_sensor_proxy_call_claim_light
Asynchronously invokes the ClaimLight() D-Bus method on 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 (see g_main_context_push_thread_default()).
You can then call phosh_dbus_sensor_proxy_call_claim_light_finish()
to get the result of the operation.
phosh_dbus_sensor_proxy_call_claim_light_finish
Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_light().
phosh_dbus_sensor_proxy_call_claim_light_sync
Synchronously invokes the ClaimLight() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_sensor_proxy_call_claim_proximity
Asynchronously invokes the ClaimProximity() D-Bus method on 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 (see g_main_context_push_thread_default()).
You can then call phosh_dbus_sensor_proxy_call_claim_proximity_finish()
to get the result of the operation.
phosh_dbus_sensor_proxy_call_claim_proximity_finish
Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_proximity().
phosh_dbus_sensor_proxy_call_claim_proximity_sync
Synchronously invokes the ClaimProximity() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_sensor_proxy_call_release_accelerometer
Asynchronously invokes the ReleaseAccelerometer() D-Bus method on 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 (see g_main_context_push_thread_default()).
You can then call phosh_dbus_sensor_proxy_call_release_accelerometer_finish()
to get the result of the operation.
phosh_dbus_sensor_proxy_call_release_accelerometer_finish
Finishes an operation started with phosh_dbus_sensor_proxy_call_release_accelerometer().
phosh_dbus_sensor_proxy_call_release_accelerometer_sync
Synchronously invokes the ReleaseAccelerometer() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_sensor_proxy_call_release_light
Asynchronously invokes the ReleaseLight() D-Bus method on 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 (see g_main_context_push_thread_default()).
You can then call phosh_dbus_sensor_proxy_call_release_light_finish()
to get the result of the operation.
phosh_dbus_sensor_proxy_call_release_light_finish
Finishes an operation started with phosh_dbus_sensor_proxy_call_release_light().
phosh_dbus_sensor_proxy_call_release_light_sync
Synchronously invokes the ReleaseLight() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_sensor_proxy_call_release_proximity
Asynchronously invokes the ReleaseProximity() D-Bus method on 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 (see g_main_context_push_thread_default()).
You can then call phosh_dbus_sensor_proxy_call_release_proximity_finish()
to get the result of the operation.
phosh_dbus_sensor_proxy_call_release_proximity_finish
Finishes an operation started with phosh_dbus_sensor_proxy_call_release_proximity().
phosh_dbus_sensor_proxy_call_release_proximity_sync
Synchronously invokes the ReleaseProximity() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_sensor_proxy_complete_claim_accelerometer
Helper function used in service implementations to finish handling invocations of the ClaimAccelerometer() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_dbus_sensor_proxy_complete_claim_light
Helper function used in service implementations to finish handling invocations of the ClaimLight() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_dbus_sensor_proxy_complete_claim_proximity
Helper function used in service implementations to finish handling invocations of the ClaimProximity() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_dbus_sensor_proxy_complete_release_accelerometer
Helper function used in service implementations to finish handling invocations of the ReleaseAccelerometer() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_dbus_sensor_proxy_complete_release_light
Helper function used in service implementations to finish handling invocations of the ReleaseLight() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_dbus_sensor_proxy_complete_release_proximity
Helper function used in service implementations to finish handling invocations of the ReleaseProximity() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_dbus_sensor_proxy_dup_accelerometer_orientation
Gets a copy of the “AccelerometerOrientation” D-Bus property.
phosh_dbus_sensor_proxy_get_accelerometer_orientation
Gets the value of the “AccelerometerOrientation” D-Bus property.
phosh_dbus_sensor_proxy_get_has_accelerometer
Gets the value of the “HasAccelerometer” D-Bus property.
phosh_dbus_sensor_proxy_get_has_ambient_light
Gets the value of the “HasAmbientLight” D-Bus property.
phosh_dbus_sensor_proxy_set_accelerometer_orientation
Sets the “AccelerometerOrientation” D-Bus property to value
.
Properties
Phosh.DBusSensorProxy:accelerometer-orientation
Represents the D-Bus property “AccelerometerOrientation”.
Signals
Phosh.DBusSensorProxy::handle-claim-accelerometer
Signal emitted when a remote caller is invoking the ClaimAccelerometer() D-Bus method.
Phosh.DBusSensorProxy::handle-claim-light
Signal emitted when a remote caller is invoking the ClaimLight() D-Bus method.
Phosh.DBusSensorProxy::handle-claim-proximity
Signal emitted when a remote caller is invoking the ClaimProximity() D-Bus method.
Phosh.DBusSensorProxy::handle-release-accelerometer
Signal emitted when a remote caller is invoking the ReleaseAccelerometer() D-Bus method.
Phosh.DBusSensorProxy::handle-release-light
Signal emitted when a remote caller is invoking the ReleaseLight() D-Bus method.
Phosh.DBusSensorProxy::handle-release-proximity
Signal emitted when a remote caller is invoking the ReleaseProximity() D-Bus method.
Interface structure
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.
Interface members
parent_iface |
|
The parent interface. |
|
handle_claim_accelerometer |
|
Handler for the |
|
handle_claim_light |
|
Handler for the |
|
handle_claim_proximity |
|
Handler for the |
|
handle_release_accelerometer |
|
Handler for the |
|
handle_release_light |
|
Handler for the |
|
handle_release_proximity |
|
Handler for the |
|
get_accelerometer_orientation |
|
Getter for the |
|
get_has_accelerometer |
|
Getter for the |
|
get_has_ambient_light |
|
Getter for the |
|
get_has_proximity |
|
Getter for the |
|
get_light_level |
|
Getter for the |
|
get_light_level_unit |
|
Getter for the |
|
get_proximity_near |
|
Getter for the |
Virtual methods
Phosh.DBusSensorProxy.get_accelerometer_orientation
Gets the value of the “AccelerometerOrientation” D-Bus property.
Phosh.DBusSensorProxy.get_has_accelerometer
Gets the value of the “HasAccelerometer” D-Bus property.
Phosh.DBusSensorProxy.handle_claim_accelerometer
Handler for the PhoshDBusSensorProxy::handle-claim-accelerometer
signal.
Phosh.DBusSensorProxy.handle_claim_light
Handler for the PhoshDBusSensorProxy::handle-claim-light
signal.
Phosh.DBusSensorProxy.handle_claim_proximity
Handler for the PhoshDBusSensorProxy::handle-claim-proximity
signal.
Phosh.DBusSensorProxy.handle_release_accelerometer
Handler for the PhoshDBusSensorProxy::handle-release-accelerometer
signal.
Phosh.DBusSensorProxy.handle_release_light
Handler for the PhoshDBusSensorProxy::handle-release-light
signal.
Phosh.DBusSensorProxy.handle_release_proximity
Handler for the PhoshDBusSensorProxy::handle-release-proximity
signal.