refact: change dbus api and service impl
1. change IconName and DisplayName to method 2. refactor impl of GetManagedObject and move it to global.h 3. refactor impl of JobService::status 4. add ut_job.cpp Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -17,10 +17,6 @@
|
||||
|
||||
<property name="AutoStart" type="b" access="readwrite"/>
|
||||
|
||||
<property name="IconName" type="s" access="read"/>
|
||||
|
||||
<property name="DisplayName" type="s" access="read"/>
|
||||
|
||||
<property name="Instances" type="ao" access="read">
|
||||
<annotation
|
||||
name="org.freedesktop.DBus.Description"
|
||||
@ -102,5 +98,23 @@
|
||||
this method will use the locale config of that user."
|
||||
/>
|
||||
</method>
|
||||
|
||||
<method name="GetIconName">
|
||||
<arg name="action" type="s" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<annotation
|
||||
name="org.freedesktop.DBus.Description"
|
||||
value="The meaning of arg `env` is same as which in GetActionName."
|
||||
/>
|
||||
</method>
|
||||
|
||||
<method name="GetDisplayName">
|
||||
<arg name="env" type="as" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<annotation
|
||||
name="org.freedesktop.DBus.Description"
|
||||
value="The meaning of arg `env` is same as which in GetActionName."
|
||||
/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
|
Reference in New Issue
Block a user