diff options
| author | Michael Albinus | 2010-07-04 12:07:27 +0200 |
|---|---|---|
| committer | Michael Albinus | 2010-07-04 12:07:27 +0200 |
| commit | 820ae8fefa06d43cf543ad62a04f98048358de7c (patch) | |
| tree | c52cb0ae9ac04538dde0c4fb09920d6bfe82959d | |
| parent | b1ce08daa9bb90d7d4d6f978b9863c3853ca30cb (diff) | |
| download | emacs-820ae8fefa06d43cf543ad62a04f98048358de7c.tar.gz emacs-820ae8fefa06d43cf543ad62a04f98048358de7c.zip | |
* dbus.texi (Receiving Method Calls): Add optional argument
EMITS-SIGNAL to `dbus-register-property'.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/dbus.texi | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index a159715a69d..4187d9909fd 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-07-04 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbus.texi (Receiving Method Calls): Add optional argument | ||
| 4 | EMITS-SIGNAL to `dbus-register-property'. | ||
| 5 | |||
| 1 | 2010-06-10 Glenn Morris <rgm@gnu.org> | 6 | 2010-06-10 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * idlwave.texi (Load-Path Shadows): | 8 | * idlwave.texi (Load-Path Shadows): |
diff --git a/doc/misc/dbus.texi b/doc/misc/dbus.texi index c92cb279f09..43e92785082 100644 --- a/doc/misc/dbus.texi +++ b/doc/misc/dbus.texi | |||
| @@ -1359,7 +1359,7 @@ The test runs then | |||
| 1359 | @end example | 1359 | @end example |
| 1360 | @end defun | 1360 | @end defun |
| 1361 | 1361 | ||
| 1362 | @defun dbus-register-property bus service path interface property access value | 1362 | @defun dbus-register-property bus service path interface property access value &optional emits-signal |
| 1363 | With this function, an application declares a @var{property} on the D-Bus | 1363 | With this function, an application declares a @var{property} on the D-Bus |
| 1364 | @var{bus}. | 1364 | @var{bus}. |
| 1365 | 1365 | ||
| @@ -1387,7 +1387,11 @@ only way to change their values. Properties with access type | |||
| 1387 | 1387 | ||
| 1388 | The interface @samp{org.freedesktop.DBus.Properties} is added to | 1388 | The interface @samp{org.freedesktop.DBus.Properties} is added to |
| 1389 | @var{path}, including a default handler for the @samp{Get}, | 1389 | @var{path}, including a default handler for the @samp{Get}, |
| 1390 | @samp{GetAll} and @samp{Set} methods of this interface. Example: | 1390 | @samp{GetAll} and @samp{Set} methods of this interface. When |
| 1391 | @var{emits-signal} is non-nil, the signal @samp{PropertiesChanged} is | ||
| 1392 | sent when the property is changed by @code{dbus-set-property}. | ||
| 1393 | |||
| 1394 | @noindent Example: | ||
| 1391 | 1395 | ||
| 1392 | @lisp | 1396 | @lisp |
| 1393 | (dbus-register-property | 1397 | (dbus-register-property |
| @@ -1399,7 +1403,7 @@ The interface @samp{org.freedesktop.DBus.Properties} is added to | |||
| 1399 | 1403 | ||
| 1400 | (dbus-register-property | 1404 | (dbus-register-property |
| 1401 | :session "org.freedesktop.TextEditor" "/org/freedesktop/TextEditor" | 1405 | :session "org.freedesktop.TextEditor" "/org/freedesktop/TextEditor" |
| 1402 | "org.freedesktop.TextEditor" "version" :readwrite emacs-version) | 1406 | "org.freedesktop.TextEditor" "version" :readwrite emacs-version t) |
| 1403 | 1407 | ||
| 1404 | @result{} ((:session "org.freedesktop.TextEditor" "version") | 1408 | @result{} ((:session "org.freedesktop.TextEditor" "version") |
| 1405 | ("org.freedesktop.TextEditor" "/org/freedesktop/TextEditor")) | 1409 | ("org.freedesktop.TextEditor" "/org/freedesktop/TextEditor")) |