Update 2.1. Manage Accounts
This commit is contained in:
parent
e1a92431e7
commit
c1f9ba8b15
|
@ -14,6 +14,29 @@ In this part, we will learn how to manage a Ring account. This means, how to cre
|
|||
|
||||
### API
|
||||
|
||||
In cx.ring.Ring.ConfigurationManager:
|
||||
|
||||
```xml
|
||||
<method name="addAccount" tp:name-for-bindings="addAccount">
|
||||
<tp:docstring>
|
||||
Add a new account. When created, the signal <tp:member-ref>accountsChanged</tp:member-ref> is emitted. The clients must then call <tp:member-ref>getAccountList</tp:member-ref> to update their internal data structure.
|
||||
<tp:rationale>If no details are specified, the default parameters are used.</tp:rationale>
|
||||
<tp:rationale>The core tries to register the account as soon it is created.</tp:rationale>
|
||||
</tp:docstring>
|
||||
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="MapStringString"/>
|
||||
<arg type="a{ss}" name="details" direction="in" tp:type="String_String_Map">
|
||||
<tp:docstring>
|
||||
The new account settings
|
||||
</tp:docstring>
|
||||
</arg>
|
||||
<arg type="s" name="createdAccountId" direction="out">
|
||||
<tp:docstring>
|
||||
A new account ID
|
||||
</tp:docstring>
|
||||
</arg>
|
||||
</method>
|
||||
```
|
||||
|
||||
### Core
|
||||
|
||||
## From scratch
|
Loading…
Reference in New Issue