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:
ComixHe
2023-08-18 17:22:38 +08:00
committed by Comix
parent d49a99d252
commit 0e7d84f61d
9 changed files with 225 additions and 92 deletions

View File

@ -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>