bd2d85124d78bc39374cde7f985117df67708fac
[platform/core/connectivity/nfc-manager-neard.git] / common / net_nfc.xml
1 <!--
2   org.tizen.NfcService
3
4 -->
5
6 <node>
7   <interface name="org.tizen.NetNfcService.Manager">
8     <!--
9       SetActive
10     -->
11     <method name="SetActive">
12       <arg type="b" name="is_active" direction="in" />
13       <arg type="a(y)" name="privilege" direction="in" />
14       <arg type="i" name="result" direction="out" />
15     </method>
16
17     <!--
18       GetServerState
19     -->
20     <method name="GetServerState">
21       <arg type="a(y)" name="privilege" direction="in" />
22       <arg type="i" name="result" direction="out" />
23       <arg type="u" name="state" direction="out" />
24     </method>
25
26     <!--
27       Activated
28     -->
29     <signal name="Activated">
30       <arg type="b" name="active" />
31     </signal>
32   </interface>
33
34   <interface name="org.tizen.NetNfcService.Tag">
35     <!--
36       IsConnected
37     -->
38     <method name="IsTagConnected">
39       <arg type="a(y)" name="privilege" direction="in" />
40       <arg type="i" name="result" direction="out" />
41       <arg type="b" name="is_connected" direction="out" />
42       <arg type="i" name="dev_type" direction="out" />
43     </method>
44
45     <!--
46       GetInfo
47     -->
48     <method name="GetCurrentTagInfo">
49       <arg type="a(y)" name="privilege" direction="in" />
50       <arg type="i" name="result" direction="out" />
51       <arg type="b" name="is_connected" direction="out" />
52       <arg type="u" name="handle" direction="out" />
53       <arg type="i" name="dev_type" direction="out" />
54       <arg type="b" name="is_ndef_supported" direction="out" />
55       <arg type="y" name="ndef_card_state" direction="out" />
56       <arg type="u" name="max_data_size" direction="out" />
57       <arg type="u" name="actual_data_size" direction="out" />
58       <arg type="u" name="number_of_keys" direction="out" />
59       <arg type="a(y)" name="target_info_values" direction="out" />
60       <arg type="a(y)" name="raw_data" direction="out" />
61     </method>
62
63     <!--
64       GetTagetHandle
65     -->
66     <method name="GetCurrentTargetHandle">
67       <arg type="a(y)" name="privilege" direction="in" />
68       <arg type="i" name="result" direction="out" />
69       <arg type="b" name="is_connected" direction="out" />
70       <arg type="u" name="handle" direction="out" />
71       <arg type="i" name="dev_type" direction="out" />
72     </method>
73
74     <!--
75       TagDiscovered
76     -->
77     <signal name="TagDiscovered">
78       <arg type="u" name="handle" />
79       <arg type="i" name="dev_type" />
80       <arg type="b" name="is_ndef_supported" />
81       <arg type="y" name="ndef_card_state" />
82       <arg type="u" name="max_data_size" />
83       <arg type="u" name="actual_data_size" />
84       <arg type="u" name="number_of_keys" />
85       <arg type="a(y)" name="target_info_values" />
86       <arg type="a(y)" name="raw_data" />
87     </signal>
88
89     <!--
90       TagDetached
91     -->
92     <signal name="TagDetached">
93       <arg type="u" name="handle" />
94       <arg type="i" name="dev_type" />
95     </signal>
96   </interface>
97
98   <interface name="org.tizen.NetNfcService.Ndef">
99     <!--
100       Read
101     -->
102     <method name="Read">
103       <arg type="u" name="handle" direction="in" />
104       <arg type="a(y)" name="privilege" direction="in" />
105       <arg type="i" name="result" direction="out" />
106       <arg type="a(y)" name="data" direction="out" />
107     </method>
108
109     <!--
110       Write
111     -->
112     <method name="Write">
113       <arg type="u" name="handle" direction="in" />
114       <arg type="a(y)" name="data" direction="in" />
115       <arg type="a(y)" name="privilege" direction="in" />
116       <arg type="i" name="result" direction="out" />
117     </method>
118
119     <!--
120       MakeReadOnly
121     -->
122     <method name="MakeReadOnly">
123       <arg type="u" name="handle" direction="in" />
124       <arg type="a(y)" name="privilege" direction="in" />
125       <arg type="i" name="result" direction="out" />
126     </method>
127
128     <!--
129       Format
130     -->
131     <method name="Format">
132       <arg type="u" name="handle" direction="in" />
133       <arg type="a(y)" name="key" direction="in" />
134       <arg type="a(y)" name="privilege" direction="in" />
135       <arg type="i" name="result" direction="out" />
136     </method>
137   </interface>
138
139   <interface name="org.tizen.NetNfcService.Llcp">
140     <!--
141       Config
142     -->
143     <method name="Config">
144       <arg type="(qqyy)" name="config" direction="in" />
145       <arg type="a(y)" name="privilege" direction="in" />
146       <arg type="i" name="result" direction="out" />
147     </method>
148     <!--
149       Listen
150     -->
151     <method name="Listen">
152       <arg type="u" name="handle" direction="in" />
153       <arg type="u" name="client_socket" direction="in" />
154       <arg type="q" name="miu" direction="in" />
155       <arg type="y" name="rw" direction="in" />
156       <arg type="i" name="type" direction="in" />
157       <arg type="y" name="sap" direction="in" />
158       <arg type="s" name="service_name" direction="in" />
159       <arg type="a(y)" name="privilege" direction="in" />
160       <arg type="i" name="result" direction="out" />
161       <arg type="u" name="client_socket" direction="out" />
162     </method>
163
164     <!--
165       Accept
166     -->
167     <method name="Accept">
168       <arg type="u" name="handle" direction="in" />
169       <arg type="u" name="client_socket" direction="in" />
170       <arg type="a(y)" name="privilege" direction="in" />
171       <arg type="i" name="result" direction="out" />
172     </method>
173
174     <!--
175       Reject
176     -->
177     <method name="Reject">
178       <arg type="u" name="handle" direction="in" />
179       <arg type="u" name="client_socket" direction="in" />
180       <arg type="a(y)" name="privilege" direction="in" />
181       <arg type="i" name="result" direction="out" />
182     </method>
183
184     <!--
185       Connect
186     -->
187     <method name="Connect">
188       <arg type="u" name="handle" direction="in" />
189       <arg type="u" name="client_socket" direction="in" />
190       <arg type="q" name="miu" direction="in" />
191       <arg type="y" name="rw" direction="in" />
192       <arg type="i" name="type" direction="in" />
193       <arg type="s" name="service_name" direction="in" />
194       <arg type="a(y)" name="privilege" direction="in" />
195       <arg type="i" name="result" direction="out" />
196       <arg type="u" name="client_socket" direction="out" />
197     </method>
198
199     <!--
200       ConnectSap
201     -->
202     <method name="ConnectSap">
203       <arg type="u" name="handle" direction="in" />
204       <arg type="u" name="client_socket" direction="in" />
205       <arg type="q" name="miu" direction="in" />
206       <arg type="y" name="rw" direction="in" />
207       <arg type="i" name="type" direction="in" />
208       <arg type="y" name="sap" direction="in" />
209       <arg type="a(y)" name="privilege" direction="in" />
210       <arg type="i" name="result" direction="out" />
211       <arg type="u" name="client_socket" direction="out" />
212     </method>
213
214     <!--
215       Send
216     -->
217     <method name="Send">
218       <arg type="u" name="handle" direction="in" />
219       <arg type="u" name="client_socket" direction="in" />
220       <arg type="a(y)" name="data" direction="in" />
221       <arg type="a(y)" name="privilege" direction="in" />
222       <arg type="i" name="result" direction="out" />
223       <arg type="u" name="client_socket" direction="out" />
224     </method>
225
226     <!--
227       SendTo
228     -->
229     <method name="SendTo">
230       <arg type="u" name="handle" direction="in" />
231       <arg type="u" name="client_socket" direction="in" />
232       <arg type="y" name="sap" direction="in" />
233       <arg type="a(y)" name="data" direction="in" />
234       <arg type="a(y)" name="privilege" direction="in" />
235       <arg type="i" name="result" direction="out" />
236       <arg type="u" name="client_socket" direction="out" />
237     </method>
238
239     <!--
240       Receive
241     -->
242     <method name="Receive">
243       <arg type="u" name="handle" direction="in" />
244       <arg type="u" name="client_socket" direction="in" />
245       <arg type="u" name="request_length" direction="in" />
246       <arg type="a(y)" name="privilege" direction="in" />
247       <arg type="i" name="result" direction="out" />
248       <arg type="a(y)" name="data" direction="out" />
249     </method>
250
251     <!--
252       ReceiveFrom
253     -->
254     <method name="ReceiveFrom">
255       <arg type="u" name="handle" direction="in" />
256       <arg type="u" name="client_socket" direction="in" />
257       <arg type="u" name="request_length" direction="in" />
258       <arg type="a(y)" name="privilege" direction="in" />
259       <arg type="i" name="result" direction="out" />
260       <arg type="y" name="sap" direction="out" />
261       <arg type="a(y)" name="data" direction="out" />
262     </method>
263
264     <!--
265       Close
266     -->
267     <method name="Close">
268       <arg type="u" name="handle" direction="in" />
269       <arg type="u" name="client_socket" direction="in" />
270       <arg type="a(y)" name="privilege" direction="in" />
271       <arg type="i" name="result" direction="out" />
272       <arg type="u" name="client_socket" direction="out" />
273     </method>
274
275     <!--
276       Disconnect
277     -->
278     <method name="Disconnect">
279       <arg type="u" name="handle" direction="in" />
280       <arg type="u" name="client_socket" direction="in" />
281       <arg type="a(y)" name="privilege" direction="in" />
282       <arg type="i" name="result" direction="out" />
283       <arg type="u" name="client_socket" direction="out" />
284     </method>
285
286     <!--
287       Error
288     -->
289     <signal name="Error">
290       <arg type="u" name="handle" />
291       <arg type="u" name="client_socket" />
292       <arg type="i" name="error" />
293     </signal>
294
295     <!--
296       Incoming
297     -->
298     <signal name="Incoming">
299       <arg type="u" name="handle" />
300       <arg type="u" name="client_socket" />
301       <arg type="u" name="incoming_socket" />
302     </signal>
303   </interface>
304
305   <interface name="org.tizen.NetNfcService.P2p">
306     <!--
307       Send
308     -->
309     <method name="Send">
310       <arg type="i" name="type" direction="in" />
311       <arg type="a(y)" name="data" direction="in" />
312       <arg type="u" name="handle" direction="in" />
313       <arg type="a(y)" name="privilege" direction="in" />
314       <arg type="i" name="result" direction="out" />
315     </method>
316
317     <!--
318       Detached
319     -->
320     <signal name="Detached" />
321
322     <!--
323       Discovered
324     -->
325     <signal name="Discovered">
326       <arg type="u" name="handle" />
327     </signal>
328
329     <!--
330       Receive
331     -->
332     <signal name="Received">
333       <arg type="a(y)" name="data" />
334     </signal>
335   </interface>
336
337   <interface name="org.tizen.NetNfcService.Popup">
338     <!--
339       Set
340     -->
341     <method name="Set">
342       <arg type="i" name="state" direction="in" />
343       <arg type="i" name="focus_state" direction="in" />
344       <arg type="a(y)" name="privilege" direction="in" />
345       <arg type="i" name="result" direction="out" />
346     </method>
347
348     <!--
349       Get
350     -->
351     <method name="Get">
352       <arg type="a(y)" name="privilege" direction="in" />
353       <arg type="i" name="result" direction="out" />
354       <arg type="i" name="state" direction="out" />
355     </method>
356   </interface>
357
358   <interface name="org.tizen.NetNfcService.SecureElement">
359     <!--
360       Set
361     -->
362     <method name="Set">
363       <arg type="i" name="type" direction="in" />
364       <arg type="a(y)" name="privilege" direction="in" />
365       <arg type="i" name="result" direction="out" />
366     </method>
367
368     <!--
369       Get
370     -->
371     <method name="Get">
372       <arg type="a(y)" name="privilege" direction="in" />
373       <arg type="i" name="result" direction="out" />
374       <arg type="i" name="type" direction="out" />
375     </method>
376
377     <!--
378       SetCardEmulation
379     -->
380     <method name="SetCardEmulation">
381       <arg type="i" name="mode" direction="in" />
382       <arg type="a(y)" name="privilege" direction="in" />
383       <arg type="i" name="result" direction="out" />
384     </method>
385
386     <!--
387       OpenSecureElement
388     -->
389     <method name="OpenSecureElement">
390       <arg type="i" name="type" direction="in" />
391       <arg type="a(y)" name="privilege" direction="in" />
392       <arg type="i" name="result" direction="out" />
393       <arg type="u" name="handle" direction="out" />
394     </method>
395
396     <!--
397       CloseSecureElement
398     -->
399     <method name="CloseSecureElement">
400       <arg type="u" name="handle" direction="in" />
401       <arg type="a(y)" name="privilege" direction="in" />
402       <arg type="i" name="result" direction="out" />
403     </method>
404
405     <!--
406       GetAtr
407     -->
408     <method name="GetAtr">
409       <arg type="u" name="handle" direction="in" />
410       <arg type="a(y)" name="privilege" direction="in" />
411       <arg type="i" name="result" direction="out" />
412       <arg type="a(y)" name="atr" direction="out" />
413     </method>
414
415     <!--
416       SendAPDU
417     -->
418     <method name="SendAPDU">
419       <arg type="u" name="handle" direction="in" />
420       <arg type="a(y)" name="data" direction="in" />
421       <arg type="a(y)" name="privilege" direction="in" />
422       <arg type="i" name="result" direction="out" />
423       <arg type="a(y)" name="response" direction="out" />
424     </method>
425
426     <!--
427       EnableCardEmulation
428     -->
429     <method name="ChangeCardEmulationMode">
430       <arg type="i" name="mode" direction="in" />
431       <arg type="a(y)" name="privilege" direction="in" />
432       <arg type="i" name="result" direction="out" />
433     </method>
434
435     <!--
436       EseDetected
437     -->
438     <signal name="EseDetected">
439       <arg type="u" name="handle" />
440       <arg type="i" name="se_type" />
441       <arg type="a(y)" name="data" />
442     </signal>
443
444     <!--
445       SeTypeChanged
446     -->
447     <signal name="SeTypeChanged">
448        <arg type="i" name="se_type" />
449     </signal>
450
451     <!--
452       CardEmulationModeChanged
453     -->
454     <signal name="CardEmulationModeChanged">
455        <arg type="i" name="mode" />
456     </signal>
457
458     <!--
459       TransactionEvent
460     -->
461     <signal name="TransactionEvent">
462        <arg type="i" name="se_type" />
463        <arg type="a(y)" name="aid" />
464        <arg type="a(y)" name="param" />
465        <arg type="i" name="fg_dispatch" />
466                 <arg type="i" name="focus_pgid" />
467     </signal>
468   </interface>
469
470   <interface name="org.tizen.NetNfcService.Transceive">
471     <!--
472       TransceiveData
473     -->
474     <method name="TransceiveData">
475       <arg type="u" name="handle" direction="in" />
476       <arg type="u" name="dev_type" direction="in" />
477       <arg type="a(y)" name="data" direction="in" />
478       <arg type="a(y)" name="privilege" direction="in" />
479       <arg type="i" name="result" direction="out" />
480       <arg type="a(y)" name="resp_data" direction="out" />
481     </method>
482     <!--
483       Transceive
484     -->
485     <method name="Transceive">
486       <arg type="u" name="handle" direction="in" />
487       <arg type="u" name="dev_type" direction="in" />
488       <arg type="a(y)" name="data" direction="in" />
489       <arg type="a(y)" name="privilege" direction="in" />
490       <arg type="i" name="result" direction="out" />
491     </method>
492   </interface>
493
494   <interface name="org.tizen.NetNfcService.Handover">
495     <!--
496       Request
497     -->
498     <method name="Request">
499       <arg type="u" name="handle" direction="in" />
500       <arg type="i" name="type" direction="in" />
501       <arg type="a(y)" name="privilege" direction="in" />
502       <arg type="i" name="result" direction="out" />
503       <arg type="i" name="carrier_type" direction="out" />
504       <arg type="a(y)" name="handover_data" direction="out" />
505     </method>
506   </interface>
507
508   <interface name="org.tizen.NetNfcService.Snep">
509     <!--
510       Register Server
511     -->
512     <method name="ServerRegister">
513       <arg type="u" name="sap" direction="in" />
514       <arg type="s" name="san" direction="in" />
515       <arg type="u" name="user_data" direction="in" />
516       <arg type="a(y)" name="privilege" direction="in" />
517       <arg type="i" name="result" direction="out" />
518     </method>
519
520     <!--
521       Unregister Server
522     -->
523     <method name="ServerUnregister">
524       <arg type="u" name="sap" direction="in" />
525       <arg type="s" name="san" direction="in" />
526       <arg type="a(y)" name="privilege" direction="in" />
527       <arg type="i" name="result" direction="out" />
528     </method>
529
530     <!--
531       Start Server
532     -->
533     <method name="ServerStart">
534       <arg type="u" name="handle" direction="in" />
535       <arg type="u" name="sap" direction="in" />
536       <arg type="s" name="san" direction="in" />
537       <arg type="u" name="user_data" direction="in" />
538       <arg type="a(y)" name="privilege" direction="in" />
539       <arg type="i" name="result" direction="out" />
540     </method>
541
542     <!--
543       Start Client
544     -->
545     <method name="ClientStart">
546       <arg type="u" name="handle" direction="in" />
547       <arg type="u" name="sap" direction="in" />
548       <arg type="s" name="san" direction="in" />
549       <arg type="u" name="user_data" direction="in" />
550       <arg type="a(y)" name="privilege" direction="in" />
551       <arg type="i" name="result" direction="out" />
552     </method>
553
554     <!--
555       ClientRequest
556     -->
557     <method name="ClientRequest">
558       <arg type="u" name="snep_handle" direction="in" />
559       <arg type="u" name="type" direction="in" />
560       <arg type="a(y)" name="ndef_msg" direction="in" />
561       <arg type="a(y)" name="privilege" direction="in" />
562       <arg type="i" name="result" direction="out" />
563       <arg type="u" name="type" direction="out" />
564       <arg type="a(y)" name="data" direction="out" />
565     </method>
566
567     <!--
568       StopService
569     -->
570     <method name="StopSnep">
571       <arg type="u" name="handle" direction="in" />
572       <arg type="u" name="snep_handle" direction="in" />
573       <arg type="a(y)" name="privilege" direction="in" />
574       <arg type="i" name="result" direction="out" />
575     </method>
576
577     <!--
578       SnepEvent
579     -->
580     <signal name="SnepEvent">
581       <arg type="u" name="handle" />
582       <arg type="u" name="event" />
583       <arg type="i" name="result" />
584       <arg type="a(y)" name="ndef_msg" />
585       <arg type="u" name="user_data" />
586     </signal>
587   </interface>
588
589 </node>