View Single Post
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#1
Hello, all!
Somebody knows how to work with camera button in my Qt application? My first thought is to somehow use DBus, I started investigate this solution but by this time no result had received.
Actually I have to know when button is half-pressed and full-pressed. I think it is implemented by some signal`s mechanism, but which one?

ADD:

Looked at DBus by
Code:
dbus-monitor --profile --system
and that what I found in output:
Code:
sig	1273651715	193296	2	/org/freedesktop/DBus	org.freedesktop.DBus	NameAcquired
sig	1273651718	482511	4648	/org/freedesktop/Hal/devices/platform_cam_focus	org.freedesktop.Hal.Device	PropertyModified
sig	1273651718	486661	4649	/org/freedesktop/Hal/devices/platform_cam_focus	org.freedesktop.Hal.Device	Condition
sig	1273651723	712461	4651	/org/freedesktop/Hal/devices/platform_cam_launch	org.freedesktop.Hal.Device	PropertyModified
sig	1273651723	716703	4652	/org/freedesktop/Hal/devices/platform_cam_launch	org.freedesktop.Hal.Device	Condition
sig	1273651726	730558	4654	/org/freedesktop/Hal/devices/platform_cam_launch	org.freedesktop.Hal.Device	PropertyModified
sig	1273651726	735532	4655	/org/freedesktop/Hal/devices/platform_cam_launch	org.freedesktop.Hal.Device	Condition
sig	1273651726	792295	4656	/org/freedesktop/Hal/devices/platform_cam_focus	org.freedesktop.Hal.Device	PropertyModified
sig	1273651726	797788	4657	/org/freedesktop/Hal/devices/platform_cam_focus	org.freedesktop.Hal.Device	Condition
sig	1273651728	600766	722	/org/freedesktop/DBus	org.freedesktop.DBus	NameOwnerChanged
As I understand, this is the answer on the question 'which mechanism is using to send/receive signal from button'?

Last edited by Grinchman; 2010-05-12 at 08:15. Reason: Some features are found