summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2014-08-18 17:27:07 +0100
committerDavid King <amigadave@amigadave.com>2014-08-18 21:45:56 +0100
commitae5bb440408a2a3524675a280bc3cf458d7da259 (patch)
treee873c52be3a07c6ffe4797f8c659256271fcbac4 /data
parented628aeaeba658580f159bb30168c54559d90669 (diff)
downloadcheese-ae5bb440408a2a3524675a280bc3cf458d7da259.tar.gz
Import basic camera D-Bus service
Diffstat (limited to 'data')
-rw-r--r--data/org.gnome.Camera.service.in3
-rw-r--r--data/org.gnome.Camera.xml50
2 files changed, 53 insertions, 0 deletions
diff --git a/data/org.gnome.Camera.service.in b/data/org.gnome.Camera.service.in
new file mode 100644
index 00000000..de474f02
--- /dev/null
+++ b/data/org.gnome.Camera.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.Camera
+Exec=@libexecdir@/gnome-camera-service
diff --git a/data/org.gnome.Camera.xml b/data/org.gnome.Camera.xml
new file mode 100644
index 00000000..4a6926cf
--- /dev/null
+++ b/data/org.gnome.Camera.xml
@@ -0,0 +1,50 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/org/gnome/Camera">
+ <!-- org.gnome.Camera:
+ @short_description: Use the available camera devices
+
+ The camera interface is used to take photos with the available camera
+ devices.
+ -->
+ <interface name="org.gnome.Camera.Manager">
+ <!-- GetClient:
+ @chooser: The object path of a new client object
+ @short_description: Get a client object for showing a photo dialog
+
+ Use the obtained client object to show a dialog for taking photos
+ and videos using a webcam.
+ -->
+ <method name="GetClient">
+ <arg name="client" type="o" direction="out"/>
+ </method>
+ </interface>
+
+ <!-- org.gnome.Camera.Client:
+ @short_description: Play images and videos from a camera
+ -->
+ <interface name="org.gnome.Camera.Client">
+ <!-- ImageData:
+ @short_description: Image data for photo from webcam
+
+ The PNG image data, Base64-encoded, from the photo taken by the
+ webcam, and cropped by the user.
+ -->
+ <property name="ImageData" type="s" access="read">
+ <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="invalidates"/>
+ </property>
+ <!-- ShowChooser:
+ @short_description: Show the webcam chooser dialog
+ -->
+ <method name="ShowChooser">
+ </method>
+ <!-- UserDone:
+ @photo_taken: Whether a photo was taken or not
+ @image_data: The image data as a Base64-encoded PNG, or empty
+ @short_description: Indicates that the dialog was closed
+ -->
+ <signal name="UserDone">
+ <arg name="photo_taken" type="b" />
+ <arg name="image_data" type="s" />
+ </signal>
+ </interface>
+</node>