Add card Inserted implementation and fix bug
[platform/core/connectivity/smartcard-service.git] / common / smartcard-service-gdbus.xml
1 <!--
2   org.tizen.SmartcardService
3 -->
4
5 <node>
6   <interface name="org.tizen.SmartcardService.SeService">
7     <!--
8       SeService
9     -->
10     <method name="SeService">
11       <arg type="i" name="result" direction="out" />
12       <arg type="u" name="handle" direction="out" />
13       <arg type="a(us)" name="readers" direction="out" />
14     </method>
15
16     <!--
17       shutdown
18     -->
19     <method name="shutdown">
20       <arg type="u" name="service_id" direction="in" />
21       <arg type="i" name="result" direction="out" />
22     </method>
23
24     <!--
25       ReaderInserted
26     -->
27     <signal name="ReaderInserted">
28       <arg type="u" name="reader_id" />
29       <arg type="s" name="reader_name" />
30     </signal>
31
32     <!--
33       ReaderRemoved
34     -->
35     <signal name="ReaderRemoved">
36       <arg type="u" name="reader_id" />
37       <arg type="s" name="reader_name" />
38     </signal>
39
40     <!--
41       CardInserted
42     -->
43     <signal name="CardInserted">
44       <arg type="u" name="reader_id" />
45       <arg type="s" name="reader_name" />
46     </signal>
47
48     <!--
49       CardRemoved
50     -->
51     <signal name="CardRemoved">
52       <arg type="u" name="reader_id" />
53       <arg type="s" name="reader_name" />
54     </signal>
55   </interface>
56
57   <interface name="org.tizen.SmartcardService.Reader">
58     <!--
59       openSession
60     -->
61     <method name="openSession">
62       <arg type="u" name="service_id" direction="in" />
63       <arg type="u" name="reader_id" direction="in" />
64       <arg type="i" name="result" direction="out" />
65       <arg type="u" name="handle" direction="out" />
66     </method>
67   </interface>
68
69   <interface name="org.tizen.SmartcardService.Session">
70     <!--
71       getATR
72     -->
73     <method name="getATR">
74       <arg type="u" name="service_id" direction="in" />
75       <arg type="u" name="session_id" direction="in" />
76       <arg type="i" name="result" direction="out" />
77       <arg type="a(y)" name="atr" direction="out" />
78     </method>
79     <!--
80       openChannel
81     -->
82     <method name="openChannel">
83       <arg type="u" name="service_id" direction="in" />
84       <arg type="u" name="session_id" direction="in" />
85       <arg type="u" name="type" direction="in" />
86       <arg type="a(y)" name="aid" direction="in" />
87       <arg type="y" name="P2" direction="in" />
88       <arg type="i" name="result" direction="out" />
89       <arg type="u" name="handle" direction="out" />
90       <arg type="i" name="channel_number" direction="out" />
91       <arg type="a(y)" name="select_response" direction="out" />
92     </method>
93     <!--
94       closeSession
95     -->
96     <method name="closeSession">
97       <arg type="u" name="service_id" direction="in" />
98       <arg type="u" name="session_id" direction="in" />
99       <arg type="i" name="result" direction="out" />
100     </method>
101   </interface>
102
103   <interface name="org.tizen.SmartcardService.Channel">
104     <!--
105       transmit
106     -->
107     <method name="transmit">
108       <arg type="u" name="service_id" direction="in" />
109       <arg type="u" name="channel_id" direction="in" />
110       <arg type="a(y)" name="command" direction="in" />
111       <arg type="i" name="result" direction="out" />
112       <arg type="a(y)" name="response" direction="out" />
113     </method>
114     <!--
115       closeChannel
116     -->
117     <method name="closeChannel">
118       <arg type="u" name="service_id" direction="in" />
119       <arg type="u" name="channel_id" direction="in" />
120       <arg type="i" name="result" direction="out" />
121     </method>
122   </interface>
123 </node>