bridge: added generic D-Bus exception management + asyncCreateProfile method

This commit is contained in:
Goffi 2011-11-02 22:47:59 +01:00
commit 407ae30ffb

View file

@ -172,6 +172,7 @@ sig_out=as
doc=Get all profiles
[createProfile]
deprecated=
type=method
category=core
sig_in=s
@ -182,6 +183,20 @@ doc_return=status of the creation:
- 0: Profile created
- 1: The profile name already exists
[asyncCreateProfile]
async=
type=method
category=core
sig_in=s
sig_out=
doc=Create a new profile
doc_param_0=%(doc_profile)s
doc_return=callback is called when profile actually exists in database and memory
errback is called with error constant as parameter:
- "CONFLICT": The profile name already exists
- "CANCELED": profile creation canceled
- "DATABASE": profile creation in database failed
[deleteProfile]
type=method
category=core