bridge: added generic D-Bus exception management + asyncCreateProfile method
This commit is contained in:
parent
ff787e5ca4
commit
407ae30ffb
1 changed files with 38 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue