Tizen Directory Migration
[platform/core/convergence/service-adaptor.git] / server / inc / dbus / dbus-server.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef __DBUS_SERVER_H__
18 #define __DBUS_SERVER_H__
19
20 #include <tzplatform_config.h>
21
22 /**
23  * Service Adaptor D-Bus server bus name.
24  */
25 #define SERVICE_ADAPTOR_BUS_NAME "org.tizen.serviceadaptor.client"
26
27 /**
28  * Service Adaptor D-Bus server object path.
29  */
30 #define SERVICE_ADAPTOR_OBJECT_PATH "/org/tizen/serviceadaptor/client"
31
32 /**
33  * Service Adaptor D-Bus interface.
34  */
35 #define SERVICE_ADAPTOR_INTERFACE "org.tizen.serviceadaptor.client.interface"
36
37 /**
38  * Service Adaptor Activation start key path
39  */
40 #define SERVICE_ADAPTOR_START_KEY_PATH          tzplatform_mkpath(TZ_SYS_SHARE, "/service-adaptor/.fingerprint")
41
42 /////////////////////////////////////////////////////////////////////////
43 /////////////////////////////////////////////////////////////////////////
44 ///////////////////
45 ///////////////////               private feature
46 ///////////////////
47
48 #define private_service_adaptor_essential_s_type_length 1
49 #define private_service_adaptor_essential_s_type \
50         "(" \
51         "s" /* char * service_name */ \
52         ")"
53
54 #define private_service_adaptor_external_req_s_type_length 4
55 #define private_service_adaptor_external_req_s_type \
56         "(" \
57         "s" /* char * service_name */ \
58         "i" /* int32 service_flag */ \
59         "s" /* char * api_uri */ \
60         service_adaptor_raw_data_s_type \
61         ")"
62
63 #define private_service_adaptor_plugin_s_type_length 2
64 #define private_service_adaptor_plugin_s_type \
65         "(" \
66         "s" /* char * name */ \
67         "b" /* bool login */ \
68         ")"
69
70 #define private_service_adaptor_set_auth_s_type_length 8
71 #define private_service_adaptor_set_auth_s_type \
72         "(" \
73         "s" /* char * service_name */ \
74         "s" /* char * imsi */ \
75         "s" /* char * cluster_name */ \
76         "s" /* char * app_id */ \
77         "s" /* char * app_secret */ \
78         "s" /* char * user_id */ \
79         "s" /* char * user_password */ \
80         "u" /* uint32 service_id */ \
81         ")"
82
83 #define private_service_adaptor_contact_info_req_s_type_length 5
84 #define private_service_adaptor_contact_info_req_s_type \
85         "(" \
86         "s" /* char * tp  */ \
87         "s" /* char * id */ \
88         "s" /* char * pn */ \
89         "s" /* char * nm */ \
90         "s" /* char * cc */ \
91         ")"
92
93 #define private_service_adaptor_contact_req_s_type_length 4
94 #define private_service_adaptor_contact_req_s_type \
95         "(" \
96         "s" /* char * service_name */ \
97         "x" /* int64 tt */ \
98         "a" private_service_adaptor_contact_info_req_s_type \
99         "u" /* uint32 cts_len */ \
100         ")"
101
102 #define private_service_adaptor_contact_info_res_s_type_length 21
103 #define private_service_adaptor_contact_info_res_s_type \
104         "(" \
105         "s" /* char * duid  */ \
106         "s" /* char * id */ \
107         "s" /* char * msisdn */ \
108         "s" /* char * ty */ \
109         "s" /* char * cc */ \
110         "s" /* char * pn */ \
111         "s" /* char * nm */ \
112         "a(s)" /* char ** evnt */ \
113         "u" /* uint32 evnt_len */ \
114         "a(is)" /* char * imgs */ \
115         "u" /* uint32 imgs_len */ \
116         "a(s)" /* char ** adrs */ \
117         "u" /* uint32 adrs_len */ \
118         "a(s)" /* char ** mail */ \
119         "u" /* uint32 mail_len */ \
120         "s" /* char * org */ \
121         "s" /* char * prsc */ \
122         "s" /* char * status */ \
123         "u" /* uint32 sids */ \
124         "i" /* int32_t profile_type */ \
125         "s" /* char * profile_url */ \
126         ")"
127
128 #define private_service_adaptor_contact_res_s_type_length 3
129 #define private_service_adaptor_contact_res_s_type \
130         "(" \
131         "x" /* int64 tt */ \
132         "a" private_service_adaptor_contact_info_res_s_type \
133         "u" /* uint32 cts_len */ \
134         ")"
135
136 #define private_service_adaptor_profile_req_s_type_length 14
137 #define private_service_adaptor_profile_req_s_type \
138         "(" \
139         "s" /* char * service_name */ \
140         "s" /* char * cc */ \
141         "s" /* char * pn */ \
142         "s" /* char * nm */ \
143         "a(s)" /* char ** evnt */ \
144         "u" /* uint32 evnt_len */ \
145         "s" /* char * img */ \
146         "a(s)" /* char ** adrs */ \
147         "u" /* uint32 adrs_len */ \
148         "a(s)" /* char ** mail */ \
149         "u" /* uint32 mail_len */ \
150         "s" /* char * org */ \
151         "s" /* char * prsc */ \
152         "s" /* char * status */ \
153         ")"
154
155 #define private_service_adaptor_profile_res_s_type_length 4
156 #define private_service_adaptor_profile_res_s_type \
157         "(" \
158         "s" /* char * nm */ \
159         "s" /* char * img */ \
160         "s" /* char * prsc */ \
161         "s" /* char * status */ \
162         ")"
163
164 #define private_service_adaptor_privacy_info_req_s_type_length 2
165 #define private_service_adaptor_privacy_info_req_s_type \
166         "(" \
167         "s" /* char * cc */ \
168         "s" /* char * pn */ \
169         ")"
170
171 #define private_service_adaptor_privacy_req_s_type_length 4
172 #define private_service_adaptor_privacy_req_s_type \
173         "(" \
174         "s" /* char * service_name */ \
175         "u" /* uint32 lvl */ \
176         "a" private_service_adaptor_privacy_info_req_s_type \
177         "u" /* uint32 cts_len */ \
178         ")"
179
180 #define private_service_adaptor_privacy_res_s_type_length 2
181 #define private_service_adaptor_privacy_res_s_type \
182         "(" \
183         "u" /* uint32 lvl */ \
184         "u" /* uint32 prscon */ \
185         ")"
186
187 #define private_service_adaptor_presence_req_s_type_length 4
188 #define private_service_adaptor_presence_req_s_type \
189         "(" \
190         "s" /* char * service_name */ \
191         "s" /* char * prsc */ \
192         "s" /* char * status */ \
193         "u" /* uint32 prscon */ \
194         ")"
195
196 #define private_service_adaptor_contact_profile_image_req_s_type_length 3
197 #define private_service_adaptor_contact_profile_image_req_s_type \
198         "(" \
199         "s" /* char * service_name */ \
200         "a(iis)" /* images array */ \
201         "u" /* uint32 images length */ \
202         ")"
203
204 #define private_service_adaptor_set_me_profile_type_req_s_type_length 2
205 #define private_service_adaptor_set_me_profile_type_req_s_type \
206         "(" \
207         "s" /* */ \
208         "i" /* */ \
209         ")"
210
211
212 #define private_service_adaptor_file_path_req_s_type_length 3
213 #define private_service_adaptor_file_path_req_s_type \
214         "(" \
215         "s" /* char * service_name */ \
216         "a(s)" /* char ** file_paths */ \
217         "u" /* uint32 file_paths_len */ \
218         ")"
219
220 #define private_service_adaptor_file_path_res_s_type_length 2
221 #define private_service_adaptor_file_path_res_s_type \
222         "(" \
223         "a(s)" /* char ** file_paths */ \
224         "u" /* uint32 file_paths_len */ \
225         ")"
226
227 #define private_service_adaptor_file_s_type_length 1
228 #define private_service_adaptor_file_s_type \
229         "(" \
230         "i" /* int32 file_description */ \
231         ")"
232
233 #define private_service_adaptor_file_publish_s_type_length 1
234 #define private_service_adaptor_file_publish_s_type \
235         "(" \
236         "s" /* char * publish_url */ \
237         ")"
238
239 #define private_service_adaptor_file_transfer_req_s_type_length 3
240 #define private_service_adaptor_file_transfer_req_s_type \
241         "(" \
242         "s" /* char * service_name */ \
243         "s" /* char * server_path */ \
244         "s" /* char * download_path */ \
245         ")"
246
247 #define private_service_adaptor_file_status_req_s_type_length 2
248 #define private_service_adaptor_file_status_req_s_type \
249         "(" \
250         "s" /* char * service_name */ \
251         "i" /* int32 file_description */ \
252         ")"
253
254 #define private_service_adaptor_privilege_check_req_s_type_length 2
255 #define private_service_adaptor_privilege_check_req_s_type \
256         "(" \
257         "s" /* char * service_name */ \
258         "s" /* char * privilege_name */ \
259         ")"
260
261 #define private_service_adaptor_file_status_res_s_type_length 3
262 #define private_service_adaptor_file_status_res_s_type \
263         "(" \
264         "x" /* int64 total_size */ \
265         "x" /* int64 transferred_size */ \
266         "x" /* int64 status */ \
267         ")"
268
269 #define private_service_adaptor_did_violation_users_s_type_length 2
270 #define private_service_adaptor_did_violation_users_s_type \
271         "(" \
272         "x" /* int64 usera */ \
273         "x" /* int64 userb */ \
274         ")"
275
276 #define private_service_adaptor_wrong_receiver_s_type_length 12
277 #define private_service_adaptor_wrong_receiver_s_type \
278         "(" \
279         "a(x)" /* int64 * invalid_receivers */ \
280         "u" /* uint32 invalid_receivers_len */ \
281         "a(x)" /* int64 * interrupted_receivers */ \
282         "u" /* uint32 interrupted_receivers_len */ \
283         "a(x)" /* int64 * disabled_receivers */ \
284         "u" /* uint32 disabled_receivers_len */ \
285         "a(x)" /* int64 * existing_chatmembers */ \
286         "u" /* uint32 existing_chatmembers_len */ \
287         "a" private_service_adaptor_did_violation_users_s_type \
288         "u" /* uint32 did_violation_users_len */ \
289         "a(x)" /* int64 * invitation_denieds */ \
290         "u" /* uint32 invitation_denieds_len */ \
291         ")"
292
293 #define private_service_adaptor_chat_msg_s_type_length 4
294 #define private_service_adaptor_chat_msg_s_type \
295         "(" \
296         "x" /* int64 msg_id */ \
297         "i" /* int msg_type */ \
298         "s" /* char * chatmsg */ \
299         "i" /* int32 message_ttl */ \
300         ")"
301
302 #define private_service_adaptor_processed_msg_s_type_length 2
303 #define private_service_adaptor_processed_msg_s_type \
304         "(" \
305         "x" /* int64 msg_id */ \
306         "x" /* int64 sent_time */ \
307         ")"
308
309 #define private_service_adaptor_delivery_ack_s_type_length 3
310 #define private_service_adaptor_delivery_ack_s_type \
311         "(" \
312         "x" /* int64 user_id */ \
313         "x" /* int64 msg_id */ \
314         "t" /* int64 timestamp */ \
315         ")"
316
317 #define private_service_adaptor_read_ack_s_type_length 3
318 #define private_service_adaptor_read_ack_s_type \
319         "(" \
320         "x" /* int64 user_id */ \
321         "x" /* int64 msg_id */ \
322         "t" /* int64 timestamp */ \
323         ")"
324
325 #define private_service_adaptor_ordered_chat_member_s_type_length 3
326 #define private_service_adaptor_ordered_chat_member_s_type \
327         "(" \
328         "x" /* int64 user_id */ \
329         "b" /* bool available */ \
330         "s" /* char * name */ \
331         ")"
332
333 #define private_service_adaptor_inbox_message_s_type_length 9
334 #define private_service_adaptor_inbox_message_s_type \
335         "(" \
336         "x" /* int64 msg_id */ \
337         "i" /* int msg_type */ \
338         "x" /* int64 sender */ \
339         "x" /* int64 receiver */ \
340         "x" /* int64 sent_time */ \
341         "s" /* char * chat_msg */ \
342         "x" /* int64 chatroom_id */ \
343         "i" /* int chat_type */ \
344         "i" /* int32 message_ttl */ \
345         ")"
346
347 #define private_service_adaptor_end_chat_s_type_length 2
348 #define private_service_adaptor_end_chat_s_type \
349         "(" \
350         "x" /* int64 chatroom_id */ \
351         "b" /* boolean deny_invitation */ \
352         ")"
353
354 #define private_service_adaptor_phone_number_s_type_length 2
355 #define private_service_adaptor_phone_number_s_type \
356         "(" \
357         "s" /* char * phonenumber */ \
358         "s" /* char * ccc */ \
359         ")"
360
361 #define private_service_adaptor_chat_id_s_type_length 2
362 #define private_service_adaptor_chat_id_s_type \
363         "(" \
364         "x" /* int64 chatid */ \
365         "s" /* char * msisdn */ \
366         ")"
367
368 #define private_service_adaptor_create_chatroom_req_s_type_length 6
369 #define private_service_adaptor_create_chatroom_req_s_type \
370         "(" \
371         "s" /* char * service_name */ \
372         "x" /* int64 request_id */ \
373         "i" /* int chat_type */ \
374         "a(x)" /* int64 * receivers */ \
375         "u" /* uint32 receivers_len */ \
376         "s" /* char * chatroom_title */ \
377         ")"
378
379 #define private_service_adaptor_create_chatroom_res_s_type_length 4
380 #define private_service_adaptor_create_chatroom_res_s_type \
381         "(" \
382         "x" /* int64 request_id */ \
383         "x" /* int64 chatroom_id */ \
384         "i" /* int32 default_message_ttl */ \
385         private_service_adaptor_wrong_receiver_s_type \
386         ")"
387
388 #define private_service_adaptor_change_chatroom_meta_req_s_type_length 5
389 #define private_service_adaptor_change_chatroom_meta_req_s_type \
390         "(" \
391         "s" /* char * service_name */ \
392         "x" /* int64 request_id */ \
393         "x" /* int64 chatroom_id */ \
394         "s" /* char * chatroom_title */ \
395         "i" /* int32 default_message_ttl */ \
396         ")"
397
398 #define private_service_adaptor_change_chatroom_meta_res_s_type_length 2
399 #define private_service_adaptor_change_chatroom_meta_res_s_type \
400         "(" \
401         "x" /* int64 request_id */ \
402         "x" /* int64 chatroom_id */ \
403         ")"
404
405 #define private_service_adaptor_chat_req_s_type_length 5
406 #define private_service_adaptor_chat_req_s_type \
407         "(" \
408         "s" /* char * service_name */ \
409         "x" /* int64 request_id */ \
410         "x" /* int64 chatroom_id */ \
411         "a" private_service_adaptor_chat_msg_s_type \
412         "u" /* uint32 chat_msgs_len */ \
413         ")"
414
415 #define private_service_adaptor_chat_res_s_type_length 4
416 #define private_service_adaptor_chat_res_s_type \
417         "(" \
418         "x" /* int64 request_id */ \
419         "x" /* int64 chatroom_id */ \
420         "a" private_service_adaptor_processed_msg_s_type \
421         "u" /* uint32 processed_msgs_len */ \
422         ")"
423
424 #define private_service_adaptor_allow_chat_req_s_type_length 10
425 #define private_service_adaptor_allow_chat_req_s_type \
426         "(" \
427         "s" /* char * service_name */ \
428         "x" /* int64 request_id */ \
429         "x" /* int64 chatroom_id */ \
430         "b" /* bool is_auth_allow */ \
431         "i" /* int max_count */ \
432         "b" /* bool need_delivery_ack */ \
433         "t" /* long need_delivery_ack_timestamp */ \
434         "b" /* bool need_read_ack */ \
435         "t" /* long last_read_ack_timestamp */ \
436         "b" /* bool need_ordered_chat_member_list */ \
437         ")"
438
439 #define private_service_adaptor_allow_chat_res_s_type_length 12
440 #define private_service_adaptor_allow_chat_res_s_type \
441         "(" \
442         "x" /* int64 request_id */ \
443         "x" /* int64 chatroom_id */ \
444         "a" private_service_adaptor_delivery_ack_s_type \
445         "u" /* uint32 delivery_acks_len */ \
446         "t" /* uint64 last_delivery_acks_timestamp */ \
447         "a" private_service_adaptor_read_ack_s_type \
448         "u" /* uint32 read_acks_len */ \
449         "t" /* uint64 last_read_acks_timestamp */ \
450         "a" private_service_adaptor_ordered_chat_member_s_type \
451         "u" /* uint32 ordered_chat_members_len */ \
452         "s" /* char * chatroom_title */ \
453         "i" /* int32 default_message_ttl */ \
454         ")"
455
456 #define private_service_adaptor_all_unread_message_req_s_type_length 3
457 #define private_service_adaptor_all_unread_message_req_s_type \
458         "(" \
459         "s" /* char * service_name */ \
460         "x" /* int64 request_id */ \
461         "i" /* int max_count */ \
462         ")"
463
464 #define private_service_adaptor_all_unread_message_res_s_type_length 1
465 #define private_service_adaptor_all_unread_message_res_s_type \
466         "(" \
467         "x" /* int64 request_id */ \
468         ")"
469
470 #define private_service_adaptor_forward_online_message_req_s_type_length 5
471 #define private_service_adaptor_forward_online_message_req_s_type \
472         "(" \
473         "x" /* int64 request_id */ \
474         "x" /* int64 chatroom_id */ \
475         "i" /* int chat_type */ \
476         private_service_adaptor_inbox_message_s_type \
477         "b" /* bool skip_reply */ \
478         ")"
479
480 #define private_service_adaptor_forward_online_message_res_s_type_length 4
481 #define private_service_adaptor_forward_online_message_res_s_type \
482         "(" \
483         "s" /* char * service_name */ \
484         "x" /* int64 request_id */ \
485         "x" /* int64 chatroom_id */ \
486         "b" /* bool mark_as_read */ \
487         ")"
488
489 #define private_service_adaptor_forward_unread_message_req_s_type_length 4
490 #define private_service_adaptor_forward_unread_message_req_s_type \
491         "(" \
492         "x" /* int64 request_id */ \
493         "a" private_service_adaptor_inbox_message_s_type \
494         "u" /* uint32 inbox_msgs_len */ \
495         "s" /* char * next_pagination_key */ \
496         ")"
497
498 #define private_service_adaptor_forward_unread_message_res_s_type_length 4
499 #define private_service_adaptor_forward_unread_message_res_s_type \
500         "(" \
501         "s" /* char * service_name */ \
502         "x" /* int64 request_id */ \
503         "s" /* char * next_pagination_key */ \
504         "i" /* int max_count */ \
505         ")"
506
507 #define private_service_adaptor_read_message_req_s_type_length 4
508 #define private_service_adaptor_read_message_req_s_type \
509         "(" \
510         "s" /* char * service_name */ \
511         "x" /* int64 request_id */ \
512         "x" /* int64 chatroom_id */ \
513         private_service_adaptor_inbox_message_s_type \
514         ")"
515
516 #define private_service_adaptor_read_message_res_s_type_length 2
517 #define private_service_adaptor_read_message_res_s_type \
518         "(" \
519         "x" /* int64 request_id */ \
520         "x" /* int64 chatroom_id */ \
521         ")"
522
523 #define private_service_adaptor_invite_chat_req_s_type_length 5
524 #define private_service_adaptor_invite_chat_req_s_type \
525         "(" \
526         "s" /* char * service_name */ \
527         "x" /* int64 request_id */ \
528         "x" /* int64 chatroom_id */ \
529         "a(x)" /* int64 *inviting_members */ \
530         "u" /* uint32 inviting_members_len */ \
531         ")"
532
533 #define private_service_adaptor_invite_chat_res_s_type_length 4
534 #define private_service_adaptor_invite_chat_res_s_type \
535         "(" \
536         "x" /* int64 request_id */ \
537         "x" /* int64 chatroom_id */ \
538         "x" /* int64 sent_time */ \
539         private_service_adaptor_wrong_receiver_s_type \
540         ")"
541
542 #define private_service_adaptor_end_chat_req_s_type_length 4
543 #define private_service_adaptor_end_chat_req_s_type \
544         "(" \
545         "s" /* char * service_name */ \
546         "x" /* int64 request_id */ \
547         "a" private_service_adaptor_end_chat_s_type \
548         "u" /* uint32 end_chats_len */ \
549         ")"
550
551 #define private_service_adaptor_end_chat_res_s_type_length 1
552 #define private_service_adaptor_end_chat_res_s_type \
553         "(" \
554         "x" /* int64 request_id */ \
555         ")"
556
557 #define private_service_adaptor_unseal_message_req_s_type_length 6
558 #define private_service_adaptor_unseal_message_req_s_type \
559         "(" \
560         "s" /* char * service_name */ \
561         "x" /* int64 request_id */ \
562         "x" /* int64 chatroom_id */ \
563         "x" /* int64 sender_id */ \
564         "x" /* int64 message_id */ \
565         "s" /* char * message_detail */ \
566         ")"
567
568 #define private_service_adaptor_unseal_message_res_s_type_length 2
569 #define private_service_adaptor_unseal_message_res_s_type \
570         "(" \
571         "x" /* int64 request_id */ \
572         "x" /* int64 chatroom_id */ \
573         ")"
574
575 #define private_service_adaptor_save_call_log_req_s_type_length 8
576 #define private_service_adaptor_save_call_log_req_s_type \
577         "(" \
578         "s" /* char * service_name */ \
579         "x" /* int64 request_id */ \
580         "x" /* int64 chatroom_id */ \
581         "s" /* char * call_id */ \
582         "s" /* char * call_log_type */ \
583         "x" /* int64 call_sender_id */ \
584         "x" /* int64 call_receiver_id */ \
585         "i" /* int conversaction_second */ \
586         ")"
587
588 #define private_service_adaptor_save_call_log_res_s_type_length 1
589 #define private_service_adaptor_save_call_log_res_s_type \
590         "(" \
591         "x" /* int64 request_id */ \
592         ")"
593
594 #define private_service_adaptor_current_time_req_s_type_length 2
595 #define private_service_adaptor_current_time_req_s_type \
596         "(" \
597         "s" /* char * service_name */ \
598         "x" /* int64 request_id */ \
599         ")"
600
601 #define private_service_adaptor_current_time_res_s_type_length 2
602 #define private_service_adaptor_current_time_res_s_type \
603         "(" \
604         "x" /* int64 request_id */ \
605         "x" /* int64 current_time_millis */ \
606         ")"
607
608 #define private_service_adaptor_get_connection_policy_req_s_type_length 1
609 #define private_service_adaptor_get_connection_policy_req_s_type \
610         "(" \
611         "s" /* char * service_name */ \
612         ")"
613
614 #define private_service_adaptor_set_connection_policy_req_s_type_length 2
615 #define private_service_adaptor_set_connection_policy_req_s_type \
616         "(" \
617         "s" /* char * service_name */ \
618         "i" /* int32 connection_policy */ \
619         ")"
620
621 #define private_service_adaptor_connection_policy_res_s_type_length 1
622 #define private_service_adaptor_connection_policy_res_s_type \
623         "(" \
624         "i" /* int32 connection_policy */ \
625         ")"
626
627 #define private_service_adaptor_channel_disconnected_res_s_type_length 1
628 #define private_service_adaptor_channel_disconnected_res_s_type \
629         "(" \
630         "s" /* char * service_name */ \
631         ")"
632
633 #define private_service_adaptor_chat_id_list_req_s_type_length 3
634 #define private_service_adaptor_chat_id_list_req_s_type \
635         "(" \
636         "s" /* char * service_name */ \
637         "a" private_service_adaptor_phone_number_s_type \
638         "u" /* uint32 phone_number_len */ \
639         ")"
640
641 #define private_service_adaptor_chat_id_list_res_s_type_length 2
642 #define private_service_adaptor_chat_id_list_res_s_type \
643         "(" \
644         "a" private_service_adaptor_chat_id_s_type \
645         "u" /* uint32 chat_ids_len */ \
646         ")"
647
648 #define private_service_adaptor_msisdn_list_req_s_type_length 3
649 #define private_service_adaptor_msisdn_list_req_s_type \
650         "(" \
651         "s" /* char * service_name */ \
652         "a(x)" /* int64 * chat_ids */ \
653         "u" /* uint32 chat_ids_len */ \
654         ")"
655
656 #define private_service_adaptor_msisdn_list_res_s_type_length 2
657 #define private_service_adaptor_msisdn_list_res_s_type \
658         "(" \
659         "a" private_service_adaptor_chat_id_s_type \
660         "u" /* uint32 msisdns_len */ \
661         ")"
662
663 #define private_service_adaptor_shop_info_s_type_length 9
664 #define private_service_adaptor_shop_info_s_type \
665         "(" \
666         "i" /* int category_id */ \
667         "i" /* long item_id */ \
668         "i" /* long sticker_id */ \
669         "s" /* char * lang_cd */ \
670         "s" /* char * cntry_cd */ \
671         "i" /* int rwidth */ \
672         "i" /* int rheight */ \
673         "i" /* int start_idx */ \
674         "i" /* int count */ \
675         ")"
676
677 #define private_service_adaptor_shop_item_s_type_length 17
678 #define private_service_adaptor_shop_item_s_type \
679         "(" \
680         "i" /* long item_id */ \
681         "i" /* int category_id */ \
682         "a(i)" /* long * sticker_ids */ \
683         "u" /* uint32 sticker_ids_len */ \
684         "s" /* char * title */ \
685         "s" /* char * character */ \
686         "i" /* int version */ \
687         "s" /* char * download_url */ \
688         "s" /* char * panel_url */ \
689         "s" /* char * sticker_url */ \
690         "i" /* long file_size */ \
691         "i" /* int count */ \
692         "s" /* char * character_code */ \
693         "x" /* int64 startdate */ \
694         "x" /* int64 enddate */ \
695         "x" /* int64 expired_date */ \
696         "x" /* int64 valid_period */ \
697         ")"
698
699 #define private_service_adaptor_shop_req_s_type_length 2
700 #define private_service_adaptor_shop_req_s_type \
701         "(" \
702         "s" /* char * service_name */ \
703         private_service_adaptor_shop_info_s_type \
704         ")"
705
706 #define private_service_adaptor_shop_res_s_type_length 2
707 #define private_service_adaptor_shop_res_s_type \
708         "(" \
709         "a" private_service_adaptor_shop_item_s_type \
710         "u" /* uint32 items_len */ \
711         ")"
712
713 #define private_service_adaptor_file_progress_s_type_length 3
714 #define private_service_adaptor_file_progress_s_type \
715         "(" \
716         "i" /* int32 file_description */ \
717         "t" /* uint64 progress_size */ \
718         "t" /* uint64 total_size */ \
719         ")"
720
721 #define private_service_adaptor_file_transfer_completion_s_type_length 2
722 #define private_service_adaptor_file_transfer_completion_s_type \
723         "(" \
724         "i" /* int32 file_description */ \
725         "s" /* char * publish_url */ \
726         ")"
727
728 #define private_service_adaptor_push_data_s_type_length 4
729 #define private_service_adaptor_push_data_s_type \
730         "(" \
731         "u" /* uint32 service_id */ \
732         "s" /* char * data */ \
733         "s" /* char * msg */ \
734         "x" /* int64 time_stamp */ \
735         ")"
736
737 #define private_service_adaptor_push_register_req_s_type_length 1
738 #define private_service_adaptor_push_register_req_s_type \
739         "(" \
740         "s" /* char *service_file_name */ \
741         ")"
742
743 #define private_service_adaptor_push_deregister_req_s_type_length 1
744 #define private_service_adaptor_push_deregister_req_s_type \
745         "(" \
746         "s" /* char *service_file_name */ \
747         ")"
748
749 ///////////////////
750 ///////////////////               private feature
751 ///////////////////
752 /////////////////////////////////////////////////////////////////////////
753 /////////////////////////////////////////////////////////////////////////
754
755 /////////////////////////////////////////////////////////////////////////
756 /////////////////////////////////////////////////////////////////////////
757 ///////////////////
758 ///////////////////               public feature
759 ///////////////////
760
761
762 #define service_adaptor_essential_s_type_length 1
763 #define service_adaptor_essential_s_type \
764         "(" \
765         "s" /* char * service_name */ \
766         ")"
767
768 #define service_adaptor_plugin_s_type_length 2
769 #define service_adaptor_plugin_s_type \
770         "(" \
771         "s" /* char * plugin_uri */ \
772         "i" /* int32_t installed_mask */ \
773         ")"
774
775 #define service_adaptor_is_auth_req_s_type_length 2
776 #define service_adaptor_is_auth_req_s_type \
777         "(" \
778         "s" /* char * plugin_uri */ \
779         service_adaptor_raw_data_s_type \
780         ")"
781
782 #define service_adaptor_join_req_s_type_length 2
783 #define service_adaptor_join_req_s_type \
784         "(" \
785         "s" /* char * plugin_uri */ \
786         service_adaptor_raw_data_s_type \
787         ")"
788
789 #define service_adaptor_set_auth_s_type_length 9
790 #define service_adaptor_set_auth_s_type \
791         "(" \
792         "a(y)" /* char array security_cookie */ \
793         "a(y)" /* char array plugin_property */ \
794         "s" /* char * service_name */ \
795         "s" /* char * plugin_uri */ \
796         "s" /* char * app_id */ \
797         "s" /* char * app_secret */ \
798         "s" /* char * user_id */ \
799         "s" /* char * user_password */ \
800         "i" /* int32_t enable_mask */ \
801         ")"
802
803 #define service_adaptor_raw_data_s_type \
804         "a(y)" /* unsigned char * raw_data*/ \
805
806 #define service_adaptor_file_path_req_s_type_length 3
807 #define service_adaptor_file_path_req_s_type \
808         "(" \
809         "s" /* char * service_name */ \
810         "a(s)" /* char ** file_paths */ \
811         "u" /* uint32 file_paths_len */ \
812         ")"
813
814 #define service_adaptor_file_path_res_s_type_length 2
815 #define service_adaptor_file_path_res_s_type \
816         "(" \
817         "a(s)" /* char ** file_paths */ \
818         "u" /* uint32 file_paths_len */ \
819         ")"
820
821 #define service_adaptor_file_s_type_length 1
822 #define service_adaptor_file_s_type \
823         "(" \
824         "i" /* int32 file_description */ \
825         ")"
826
827 #define service_adaptor_content_meta_s_type_length 18
828 #define service_adaptor_content_meta_s_type \
829         "(" \
830         "s" /* char * mime_type  */ \
831         "s" /* char * title  */ \
832         "s" /* char * album  */ \
833         "s" /* char * artist  */ \
834         "s" /* char * genere  */ \
835         "s" /* char * recorded_date  */ \
836         "i" /* int32  width */ \
837         "i" /* int32  height */ \
838         "i" /* int32  duration */ \
839         "s" /* char * copyright  */ \
840         "s" /* char * track_num  */ \
841         "s" /* char * description  */ \
842         "s" /* char * composer  */ \
843         "s" /* char * year  */ \
844         "i" /* int32  bitrate */ \
845         "i" /* int32  samplerate */ \
846         "i" /* int32  channel */ \
847         "s" /* char * extra_media_meta  */ \
848         ")"
849
850 #define service_adaptor_cloud_meta_s_type_length 4
851 #define service_adaptor_cloud_meta_s_type \
852         "(" \
853         "s" /* char * service_name  */ \
854         "t" /* uint64  usage_byte */ \
855         "t" /* uint64  quota_byte */ \
856         "s" /* char *  extra_cloud_meta */ \
857         ")"
858
859 #define service_adaptor_file_info_s_type_length 11
860 #define service_adaptor_file_info_s_type \
861         "(" \
862         "s" /* char * plugin_name  */ \
863         "s" /* char * object_id  */ \
864         "s" /* char * storage_path  */ \
865         "t" /* uint64  file_size */ \
866         "t" /* uint64  created_time */ \
867         "t" /* uint64  modified_time */ \
868         "i" /* int32  file_info_index */ \
869         "i" /* int32  content_type */ \
870         service_adaptor_content_meta_s_type \
871         service_adaptor_cloud_meta_s_type \
872         "s" /* char *  extra_file_info */ \
873         ")"
874
875 #define service_adaptor_file_publish_s_type_length 1
876 #define service_adaptor_file_publish_s_type \
877         "(" \
878         "s" /* char * publish_url */ \
879         ")"
880
881 #define service_adaptor_file_transfer_req_s_type_length 3
882 #define service_adaptor_file_transfer_req_s_type \
883         "(" \
884         "s" /* char * service_name */ \
885         "s" /* char * server_path */ \
886         "s" /* char * download_path */ \
887         ")"
888
889 #define service_adaptor_download_thumbnail_req_s_type_length 4
890 #define service_adaptor_download_thumbnail_req_s_type \
891         "(" \
892         "s" /* char * service_name */ \
893         "s" /* char * server_path */ \
894         "s" /* char * download_path */ \
895         "i" /* int32 thumbnail_size */ \
896         ")"
897
898 #define service_adaptor_file_status_req_s_type_length 2
899 #define service_adaptor_file_status_req_s_type \
900         "(" \
901         "s" /* char * service_name */ \
902         "i" /* int32 file_description */ \
903         ")"
904
905 #define service_adaptor_file_status_res_s_type_length 3
906 #define service_adaptor_file_status_res_s_type \
907         "(" \
908         "x" /* int64 total_size */ \
909         "x" /* int64 transferred_size */ \
910         "x" /* int64 status */ \
911         ")"
912 #define service_adaptor_get_root_folder_path_req_s_type_length 1
913 #define service_adaptor_get_root_folder_path_req_s_type \
914         "(" \
915         "s" /* char * service_name */ \
916         ")"
917 #define service_adaptor_get_root_folder_path_res_s_type_length 1
918 #define service_adaptor_get_root_folder_path_res_s_type \
919         "(" \
920         "s" /* char * root_folder_path */ \
921         ")"
922 #define service_adaptor_make_directory_req_s_type_length 2
923 #define service_adaptor_make_directory_req_s_type \
924         "(" \
925         "s" /* char * service_name */ \
926         "s" /* char * folder_path */ \
927         ")"
928 #define service_adaptor_remove_file_req_s_type_length 2
929 #define service_adaptor_remove_file_req_s_type \
930         "(" \
931         "s" /* char * service_name */ \
932         "s" /* char * file_path */ \
933         ")"
934 #define service_adaptor_remove_directory_req_s_type_length 2
935 #define service_adaptor_remove_directory_req_s_type \
936         "(" \
937         "s" /* char * service_name */ \
938         "s" /* char * folder_path */ \
939         ")"
940 #define service_adaptor_move_file_req_s_type_length 3
941 #define service_adaptor_move_file_req_s_type \
942         "(" \
943         "s" /* char * service_name */ \
944         "s" /* char * src_file_path */ \
945         "s" /* char * dst_file_path */ \
946         ")"
947 #define service_adaptor_move_directory_req_s_type_length 3
948 #define service_adaptor_move_directory_req_s_type \
949         "(" \
950         "s" /* char * service_name */ \
951         "s" /* char * src_folder_path */ \
952         "s" /* char * dst_folder_path */ \
953         ")"
954 #define service_adaptor_get_file_list_req_s_type_length 2
955 #define service_adaptor_get_file_list_req_s_type \
956         "(" \
957         "s" /* char * service_name */ \
958         "s" /* char * parent_path */ \
959         ")"
960 #define service_adaptor_open_upload_file_req_s_type_length 3
961 #define service_adaptor_open_upload_file_req_s_type \
962         "(" \
963         "s" /* char * service_name */ \
964         "s" /* char * local_path */ \
965         "s" /* char * upload_path */ \
966         ")"
967 #define service_adaptor_open_download_file_req_s_type_length 3
968 #define service_adaptor_open_download_file_req_s_type \
969         "(" \
970         "s" /* char * service_name */ \
971         "s" /* char * storage_path */ \
972         "s" /* char * local_path */ \
973         ")"
974 #define service_adaptor_open_download_thumbnail_req_s_type_length 4
975 #define service_adaptor_open_download_thumbnail_req_s_type \
976         "(" \
977         "s" /* char * service_name */ \
978         "s" /* char * storage_path */ \
979         "s" /* char * local_path */ \
980         "i" /* int32_t thumbnail_size */ \
981         ")"
982 #define service_adaptor_close_file_req_s_type_length 2
983 #define service_adaptor_close_file_req_s_type \
984         "(" \
985         "s" /* char * service_name */ \
986         service_adaptor_file_descriptor_s_type \
987         ")"
988 // jwkim async5
989 #define service_adaptor_start_upload_file_req_s_type_length 5
990 #define service_adaptor_start_upload_file_req_s_type \
991         "(" \
992         "s" /* char * service_name */ \
993         service_adaptor_file_descriptor_s_type \
994         "s" /* char * storage_path */ \
995         "b" /* bool need_progress */ \
996         "b" /* bool need_state */ \
997         ")"
998 #define service_adaptor_start_download_file_req_s_type_length 5
999 #define service_adaptor_start_download_file_req_s_type \
1000         "(" \
1001         "s" /* char * service_name */ \
1002         service_adaptor_file_descriptor_s_type \
1003         "s" /* char * storage_path */ \
1004         "b" /* bool need_progress */ \
1005         "b" /* bool need_state */ \
1006         ")"
1007 #define service_adaptor_start_download_thumbnail_req_s_type_length 6
1008 #define service_adaptor_start_download_thumbnail_req_s_type \
1009         "(" \
1010         "s" /* char * service_name */ \
1011         service_adaptor_file_descriptor_s_type \
1012         "s" /* char * storage_path */ \
1013         "i" /* int32_t thumbnail_size */ \
1014         "b" /* bool need_progress */ \
1015         "b" /* bool need_state */ \
1016         ")"
1017
1018 #define service_adaptor_cancel_file_task_req_s_type_length 2
1019 #define service_adaptor_cancel_file_task_req_s_type \
1020         "(" \
1021         "s" /* char * service_name */ \
1022         service_adaptor_file_descriptor_s_type \
1023         ")"
1024
1025 #define service_adaptor_file_descriptor_s_type_length 1
1026 #define service_adaptor_file_descriptor_s_type \
1027         "(" \
1028         "x" /* int64_t file_uid */ \
1029         ")"
1030
1031 #define service_adaptor_get_file_list_res_s_type_length 2
1032 #define service_adaptor_get_file_list_res_s_type \
1033         "(" \
1034         "a" service_adaptor_file_info_s_type \
1035         "u" /* uint32 file_info_len */ \
1036         ")"
1037
1038 #define service_adaptor_file_progress_s_type_length 3
1039 #define service_adaptor_file_progress_s_type \
1040         "(" \
1041         service_adaptor_file_descriptor_s_type \
1042         "t" /* uint64 progress_size */ \
1043         "t" /* uint64 total_size */ \
1044         ")"
1045
1046 #define service_adaptor_file_transfer_state_changed_s_type_length 2
1047 #define service_adaptor_file_transfer_state_changed_s_type \
1048         "(" \
1049         service_adaptor_file_descriptor_s_type \
1050         "i" /* int32_t state */ \
1051         ")"
1052
1053 #define service_adaptor_push_data_s_type_length 4
1054 #define service_adaptor_push_data_s_type \
1055         "(" \
1056         "u" /* uint32 service_id */ \
1057         "s" /* char * data */ \
1058         "s" /* char * msg */ \
1059         "x" /* int64 time_stamp */ \
1060         ")"
1061
1062 ///////////////////
1063 ///////////////////               public feature
1064 ///////////////////
1065 /////////////////////////////////////////////////////////////////////////
1066 /////////////////////////////////////////////////////////////////////////
1067
1068
1069 /////////////////////////////////////////////////////////////////////////
1070 /////////////////////////////////////////////////////////////////////////
1071 ///////////////////
1072 ///////////////////               private feature
1073 ///////////////////
1074
1075 /**
1076  * array of structures
1077  */
1078 #define private_plugin_list_type                        "a(sb)"
1079 #define private_contact_info_req_list_type              "a" private_service_adaptor_contact_info_req_s_type
1080 #define private_contact_info_res_list_type              "a" private_service_adaptor_contact_info_res_s_type
1081 #define private_shop_item_res_list_type                 "a" private_service_adaptor_shop_item_s_type
1082 #define private_message_chat_id_list_type               "a" private_service_adaptor_chat_id_s_type
1083 #define private_message_processed_msg_list_type         "a" private_service_adaptor_processed_msg_s_type
1084 #define private_message_did_violation_users_list_type   "a" private_service_adaptor_did_violation_users_s_type
1085 #define private_message_delivery_ack_list_type          "a" private_service_adaptor_delivery_ack_s_type
1086 #define private_message_read_ack_list_type              "a" private_service_adaptor_read_ack_s_type
1087 #define private_message_ordered_chat_member_list_type   "a" private_service_adaptor_ordered_chat_member_s_type
1088 #define private_message_inbox_message_list_type         "a" private_service_adaptor_inbox_message_s_type
1089
1090
1091 ///////////////////
1092 ///////////////////               private feature
1093 ///////////////////
1094 /////////////////////////////////////////////////////////////////////////
1095 /////////////////////////////////////////////////////////////////////////
1096
1097 /////////////////////////////////////////////////////////////////////////
1098 /////////////////////////////////////////////////////////////////////////
1099 ///////////////////
1100 ///////////////////               public feature
1101 ///////////////////
1102
1103
1104 #define plugin_list_type                        "a" service_adaptor_plugin_s_type
1105 #define storage_file_info_list_type             "a" service_adaptor_file_info_s_type
1106
1107 ///////////////////
1108 ///////////////////               public feature
1109 ///////////////////
1110 /////////////////////////////////////////////////////////////////////////
1111 /////////////////////////////////////////////////////////////////////////
1112
1113 /////////////////////////////////////////////////////////////////////////
1114 /////////////////////////////////////////////////////////////////////////
1115 ///////////////////
1116 ///////////////////               common
1117 ///////////////////
1118
1119
1120 /**
1121  * append error code to the type
1122  */
1123 #define MAKE_RETURN_TYPE(x)                     "(" x "ts)"
1124
1125 /**
1126  * DBus APIs
1127  */
1128 #define DBUS_SERVICE_ADAPTOR    "dbus_00"
1129 #define DBUS_AUTH_ADAPTOR       "dbus_01"
1130 #define DBUS_CONTACT_ADAPTOR    "dbus_02"
1131 #define DBUS_MESSAGE_ADAPTOR    "dbus_03"
1132 #define DBUS_DISCOVERY_ADAPTOR  "dbus_04"
1133 #define DBUS_SHOP_ADAPTOR       "dbus_05"
1134 #define DBUS_STORAGE_ADAPTOR    "dbus_06"
1135 #define DBUS_PUSH_ADAPTOR       "dbus_07"
1136 #define DBUS_NAME_LENGTH        7
1137
1138
1139 ///////////////////
1140 ///////////////////               common
1141 ///////////////////
1142 /////////////////////////////////////////////////////////////////////////
1143 /////////////////////////////////////////////////////////////////////////
1144
1145 /////////////////////////////////////////////////////////////////////////
1146 /////////////////////////////////////////////////////////////////////////
1147 ///////////////////
1148 ///////////////////               private feature
1149 ///////////////////
1150
1151
1152 #define PRIVATE_DBUS_CONNECT_SERVICE_ADAPTOR_METHOD             DBUS_SERVICE_ADAPTOR "_private""_connect_service_adaptor"
1153 #define PRIVATE_DBUS_EXTERNAL_REQ_METHOD                        DBUS_SERVICE_ADAPTOR "_private" "_ext_req"
1154
1155 #define PRIVATE_DBUS_GET_AUTH_PLUGIN_LIST_METHOD                DBUS_AUTH_ADAPTOR "_private" "_get_auth_plugin_list"
1156 #define PRIVATE_DBUS_SET_AUTH_METHOD                            DBUS_AUTH_ADAPTOR "_private" "_set_auth"
1157
1158 #define PRIVATE_DBUS_SET_NEW_CONTACT_LIST_METHOD                DBUS_CONTACT_ADAPTOR "_private" "_set_new_contact_list"
1159 #define PRIVATE_DBUS_SET_CONTACT_LIST_METHOD                    DBUS_CONTACT_ADAPTOR "_private" "_set_contact_list"
1160 #define PRIVATE_DBUS_GET_CONTACT_LIST_METHOD                    DBUS_CONTACT_ADAPTOR "_private" "_get_contact_list"
1161 #define PRIVATE_DBUS_GET_CONTACT_INFOS_POLLING_METHOD           DBUS_CONTACT_ADAPTOR "_private" "_get_contact_infos_polling"
1162 #define PRIVATE_DBUS_SET_ME_PROFILE_WITH_PUSH_METHOD            DBUS_CONTACT_ADAPTOR "_private" "_set_me_profile_with_push"
1163 #define PRIVATE_DBUS_GET_PROFILE_METHOD                         DBUS_CONTACT_ADAPTOR "_private" "_get_profile"
1164 #define PRIVATE_DBUS_SET_PROFILE_IMAGE_META_WITH_PUSH_METHOD    DBUS_CONTACT_ADAPTOR "_private" "_set_profile_image_meta_with_push"
1165 #define PRIVATE_DBUS_DEL_ME_PROFILE_IMAGE_META_WITH_PUSH_METHOD DBUS_CONTACT_ADAPTOR "_private" "_del_me_profile_image_meta_with_push"
1166 #define PRIVATE_DBUS_SET_ME_PROFILE_PRIVACY_METHOD              DBUS_CONTACT_ADAPTOR "_private" "_set_me_profile_privacy"
1167 #define PRIVATE_DBUS_GET_PROFILE_PRIVACY_METHOD                 DBUS_CONTACT_ADAPTOR "_private" "_get_profile_privacy"
1168 #define PRIVATE_DBUS_SET_ME_PRESENCE_WITH_PUSH_METHOD           DBUS_CONTACT_ADAPTOR "_private" "_set_me_presence_with_push"
1169 #define PRIVATE_DBUS_SET_ME_PRESENCE_ON_OFF_WITH_PUSH_METHOD    DBUS_CONTACT_ADAPTOR "_private" "_set_me_presence_on_off_with_push"
1170 #define PRIVATE_DBUS_SET_ME_PROFILE_TYPE_METHOD                 DBUS_CONTACT_ADAPTOR "_private" "_set_me_profile_type"
1171
1172 #define PRIVATE_DBUS_REQUEST_CREATE_CHATROOM_METHOD             DBUS_MESSAGE_ADAPTOR "_private" "_request_create_chatroom"
1173 #define PRIVATE_DBUS_REQUEST_CHANGE_CHATROOM_META_METHOD        DBUS_MESSAGE_ADAPTOR "_private" "_request_change_chatroom_meta"
1174 #define PRIVATE_DBUS_REQUEST_CHAT_METHOD                        DBUS_MESSAGE_ADAPTOR "_private" "_request_chat"
1175 #define PRIVATE_DBUS_REQUEST_ALLOW_CHAT_METHOD                  DBUS_MESSAGE_ADAPTOR "_private" "_request_allow_chat"
1176 #define PRIVATE_DBUS_REQUEST_ALL_UNREAD_MESSAGE_METHOD          DBUS_MESSAGE_ADAPTOR "_private" "_request_all_unread_message"
1177 #define PRIVATE_DBUS_REPLY_FORWARD_ONLINE_MESSAGE_METHOD        DBUS_MESSAGE_ADAPTOR "_private" "_reply_forward_online_message"
1178 #define PRIVATE_DBUS_REPLY_FORWARD_UNREAD_MESSAGE_METHOD        DBUS_MESSAGE_ADAPTOR "_private" "_reply_forward_unread_message"
1179 #define PRIVATE_DBUS_REQUEST_READ_MESSAGE_METHOD                DBUS_MESSAGE_ADAPTOR "_private" "_request_read_message"
1180 #define PRIVATE_DBUS_REQUEST_INVITE_CHAT_METHOD                 DBUS_MESSAGE_ADAPTOR "_private" "_request_invite_chat"
1181 #define PRIVATE_DBUS_REQUEST_END_CHAT_METHOD                    DBUS_MESSAGE_ADAPTOR "_private" "_request_end_chat"
1182 #define PRIVATE_DBUS_REQUEST_UNSEAL_MESSAGE_METHOD              DBUS_MESSAGE_ADAPTOR "_private" "_request_unseal_message"
1183 #define PRIVATE_DBUS_REQUEST_SAVE_CALL_LOG_METHOD               DBUS_MESSAGE_ADAPTOR "_private" "_request_save_call_log"
1184 #define PRIVATE_DBUS_REQUEST_CURRENT_TIME_METHOD                DBUS_MESSAGE_ADAPTOR "_private" "_request_current_time"
1185 #define PRIVATE_DBUS_REQUEST_GET_CONNECTION_POLICY_METHOD       DBUS_MESSAGE_ADAPTOR "_private" "_request_get_connection_policy"
1186 #define PRIVATE_DBUS_REQUEST_SET_CONNECTION_POLICY_METHOD       DBUS_MESSAGE_ADAPTOR "_private" "_request_set_connection_policy"
1187 #define PRIVATE_DBUS_GET_CHAT_ID_LIST_METHOD                    DBUS_MESSAGE_ADAPTOR "_private" "_get_chat_id_list"
1188 #define PRIVATE_DBUS_GET_MSISDN_LIST_METHOD                     DBUS_MESSAGE_ADAPTOR "_private" "_get_msisdn_list"
1189
1190 #define PRIVATE_DBUS_GET_ITEM_LIST_METHOD                       DBUS_SHOP_ADAPTOR "_private" "_get_item_list"
1191 #define PRIVATE_DBUS_DOWNLOAD_ITEM_PACKAGE_METHOD               DBUS_SHOP_ADAPTOR "_private" "_download_item_package"
1192 #define PRIVATE_DBUS_DOWNLOAD_STICKER_METHOD                    DBUS_SHOP_ADAPTOR "_private" "_download_sticker"
1193 #define PRIVATE_DBUS_GET_PANEL_URL_METHOD                       DBUS_SHOP_ADAPTOR "_private" "_get_panel_url"
1194
1195 #define PRIVATE_DBUS_DOWNLOAD_FILE_METHOD                       DBUS_STORAGE_ADAPTOR "_private" "_download_file"
1196 #define PRIVATE_DBUS_DOWNLOAD_FILE_ASYNC_METHOD                 DBUS_STORAGE_ADAPTOR "_private" "_download_file_async"
1197 #define PRIVATE_DBUS_UPLOAD_FILE_METHOD                         DBUS_STORAGE_ADAPTOR "_private" "_upload_file"
1198 #define PRIVATE_DBUS_UPLOAD_FILE_ASYNC_METHOD                   DBUS_STORAGE_ADAPTOR "_private" "_upload_file_async"
1199 #define PRIVATE_DBUS_GET_FILE_STATUS_METHOD                     DBUS_STORAGE_ADAPTOR "_private" "_get_file_status"
1200 #define PRIVATE_DBUS_CANCEL_FILE_TRANSFER_METHOD                DBUS_STORAGE_ADAPTOR "_private" "_cancel_file_transfer"
1201 #define PRIVATE_DBUS_PAUSE_FILE_TRANSFER_METHOD                 DBUS_STORAGE_ADAPTOR "_private" "_pause_file_transfer"
1202 #define PRIVATE_DBUS_RESUME_FILE_TRANSFER_METHOD                DBUS_STORAGE_ADAPTOR "_private" "_resume_file_transfer"
1203 #define PRIVATE_DBUS_DOWNLOAD_FILE_PUBLISH_METHOD               DBUS_STORAGE_ADAPTOR "_private" "_download_file_publish"
1204 #define PRIVATE_DBUS_DOWNLOAD_FILE_PUBLISH_ASYNC_METHOD         DBUS_STORAGE_ADAPTOR "_private" "_download_file_publish_async"
1205 #define PRIVATE_DBUS_UPLOAD_FILE_PUBLISH_METHOD                 DBUS_STORAGE_ADAPTOR "_private" "_upload_file_publish"
1206 #define PRIVATE_DBUS_UPLOAD_FILE_PUBLISH_ASYNC_METHOD           DBUS_STORAGE_ADAPTOR "_private" "_upload_file_publish_async"
1207 #define PRIVATE_DBUS_GET_PRIVILEGE_CHECK_RESULT_METHOD          DBUS_STORAGE_ADAPTOR "_private" "_get_privilege_check_result"
1208
1209 #define PRIVATE_DBUS_REPLY_CREATE_CHATROOM_SIGNAL               DBUS_MESSAGE_ADAPTOR "_private" "_reply_create_chatroom"
1210 #define PRIVATE_DBUS_REPLY_CHANGE_CHATROOM_META_SIGNAL          DBUS_MESSAGE_ADAPTOR "_private" "_reply_change_chatroom_meta"
1211 #define PRIVATE_DBUS_REPLY_CHAT_SIGNAL                          DBUS_MESSAGE_ADAPTOR "_private" "_reply_chat"
1212 #define PRIVATE_DBUS_REPLY_ALLOW_CHAT_SIGNAL                    DBUS_MESSAGE_ADAPTOR "_private" "_reply_allow_chat"
1213 #define PRIVATE_DBUS_REPLY_ALL_UNREAD_MESSAGE_SIGNAL            DBUS_MESSAGE_ADAPTOR "_private" "_reply_all_unread_message"
1214 #define PRIVATE_DBUS_REQUEST_FORWARD_ONLINE_MESSAGE_SIGNAL      DBUS_MESSAGE_ADAPTOR "_private" "_request_forward_online_message"
1215 #define PRIVATE_DBUS_REQUEST_FORWARD_UNREAD_MESSAGE_SIGNAL      DBUS_MESSAGE_ADAPTOR "_private" "_request_forward_unread_message"
1216 #define PRIVATE_DBUS_REPLY_READ_MESSAGE_SIGNAL                  DBUS_MESSAGE_ADAPTOR "_private" "_reply_read_message"
1217 #define PRIVATE_DBUS_REPLY_INVITE_CHAT_SIGNAL                   DBUS_MESSAGE_ADAPTOR "_private" "_reply_invite_chat"
1218 #define PRIVATE_DBUS_REPLY_END_CHAT_SIGNAL                      DBUS_MESSAGE_ADAPTOR "_private" "_reply_end_chat"
1219 #define PRIVATE_DBUS_REPLY_UNSEAL_MESSAGE_SIGNAL                DBUS_MESSAGE_ADAPTOR "_private" "_reply_unseal_message"
1220 #define PRIVATE_DBUS_REPLY_SAVE_CALL_LOG_SIGNAL                 DBUS_MESSAGE_ADAPTOR "_private" "_reply_save_call_log"
1221 #define PRIVATE_DBUS_REPLY_CURRENT_TIME_SIGNAL                  DBUS_MESSAGE_ADAPTOR "_private" "_reply_current_time"
1222 #define PRIVATE_DBUS_REPLY_CHANNEL_DISCONNECTED_SIGNAL          DBUS_MESSAGE_ADAPTOR "_private" "_reply_channel_disconnected"
1223
1224 #define PRIVATE_DBUS_STORAGE_FILE_PROGRESS_SIGNAL               DBUS_STORAGE_ADAPTOR "_private" "_storage_file_progress"
1225 #define PRIVATE_DBUS_STORAGE_FILE_TRANSFER_COMPLETION_SIGNAL    DBUS_STORAGE_ADAPTOR "_private" "_storage_file_transfer_completion"
1226
1227 #define PRIVATE_DBUS_PUSH_DATA_SIGNAL                           DBUS_PUSH_ADAPTOR "_private" "_push_data"
1228 #define PRIVATE_DBUS_PUSH_REGISTER_METHOD                       DBUS_PUSH_ADAPTOR "_private" "_push_register"
1229 #define PRIVATE_DBUS_PUSH_DEREGISTER_METHOD                     DBUS_PUSH_ADAPTOR "_private" "_push_deregister"
1230
1231 #define PRIVATE_DBUS_SERVICE_ADAPTOR_SIGNAL                     DBUS_SERVICE_ADAPTOR "_private" "_service_adaptor_signal"
1232
1233
1234 ///////////////////
1235 ///////////////////               private feature
1236 ///////////////////
1237 /////////////////////////////////////////////////////////////////////////
1238 /////////////////////////////////////////////////////////////////////////
1239
1240 /////////////////////////////////////////////////////////////////////////
1241 /////////////////////////////////////////////////////////////////////////
1242 ///////////////////
1243 ///////////////////               public feature
1244 ///////////////////
1245
1246 #define DBUS_CONNECT_SERVICE_ADAPTOR_METHOD             DBUS_SERVICE_ADAPTOR "_connect_service_adaptor"
1247 #define DBUS_DISCONNECT_SERVICE_ADAPTOR_METHOD          DBUS_SERVICE_ADAPTOR "_disconnect_service_adaptor"
1248
1249 #define DBUS_GET_AUTH_PLUGIN_LIST_METHOD                DBUS_AUTH_ADAPTOR "_get_auth_plugin_list"
1250 #define DBUS_IS_AUTH_METHOD                             DBUS_AUTH_ADAPTOR "_is_auth"
1251 #define DBUS_JOIN_METHOD                                DBUS_AUTH_ADAPTOR "_join"
1252 #define DBUS_SET_AUTH_METHOD                            DBUS_AUTH_ADAPTOR "_set_auth"
1253
1254 #define DBUS_DOWNLOAD_FILE_METHOD                       DBUS_STORAGE_ADAPTOR "_download_file"
1255 #define DBUS_DOWNLOAD_THUMBNAIL_METHOD                  DBUS_STORAGE_ADAPTOR "_download_thumbnail"
1256 #define DBUS_UPLOAD_FILE_METHOD                         DBUS_STORAGE_ADAPTOR "_upload_file"
1257 #define DBUS_GET_ROOT_FOLDER_PATH_METHOD                DBUS_STORAGE_ADAPTOR "_get_root_folder_path"
1258 #define DBUS_MAKE_DIRECTORY_METHOD                      DBUS_STORAGE_ADAPTOR "_make_directory"
1259 #define DBUS_REMOVE_FILE_METHOD                         DBUS_STORAGE_ADAPTOR "_remove_file"
1260 #define DBUS_REMOVE_DIRECTORY_METHOD                    DBUS_STORAGE_ADAPTOR "_remove_directory"
1261 #define DBUS_GET_METADATA_METHOD                        DBUS_STORAGE_ADAPTOR "_get_metadata"
1262 #define DBUS_GET_LIST_METHOD                            DBUS_STORAGE_ADAPTOR "_get_list"
1263 #define DBUS_MOVE_FILE_METHOD                           DBUS_STORAGE_ADAPTOR "_move_file"
1264 #define DBUS_MOVE_DIRECTORY_METHOD                      DBUS_STORAGE_ADAPTOR "_move_directory"
1265 #define DBUS_GET_FILE_LIST_METHOD                       DBUS_STORAGE_ADAPTOR "_get_file_list"
1266
1267 #define DBUS_OPEN_UPLOAD_FILE_METHOD                    DBUS_STORAGE_ADAPTOR "_open_upload_file"
1268 #define DBUS_OPEN_DOWNLOAD_FILE_METHOD                  DBUS_STORAGE_ADAPTOR "_open_download_file"
1269 #define DBUS_OPEN_DOWNLOAD_THUMBNAIL_METHOD             DBUS_STORAGE_ADAPTOR "_open_download_thumbnail"
1270 #define DBUS_CLOSE_FILE_METHOD                          DBUS_STORAGE_ADAPTOR "_close_file"
1271 #define DBUS_START_UPLOAD_FILE_METHOD                   DBUS_STORAGE_ADAPTOR "_start_upload_file"
1272 #define DBUS_START_DOWNLOAD_FILE_METHOD                 DBUS_STORAGE_ADAPTOR "_start_download_file"
1273 #define DBUS_START_DOWNLOAD_THUMBNAIL_METHOD            DBUS_STORAGE_ADAPTOR "_start_dowlnoad_thumbnail"
1274 #define DBUS_CANCEL_UPLOAD_FILE_METHOD                  DBUS_STORAGE_ADAPTOR "_cancel_upload_file"
1275 #define DBUS_CANCEL_DOWNLOAD_FILE_METHOD                DBUS_STORAGE_ADAPTOR "_cancel_download_file"
1276 #define DBUS_CANCEL_DOWNLOAD_THUMBNAIL_METHOD           DBUS_STORAGE_ADAPTOR "_cancel_download_thumbnail"
1277
1278 #define DBUS_STORAGE_FILE_PROGRESS_SIGNAL               DBUS_STORAGE_ADAPTOR "_storage_file_progress"
1279 #define DBUS_STORAGE_FILE_TRANSFER_STATE_CHANGED_SIGNAL DBUS_STORAGE_ADAPTOR "_storage_file_transfer_state_changed"
1280 #define DBUS_STORAGE_FILE_TRANSFER_COMPLETION_SIGNAL    DBUS_STORAGE_ADAPTOR "_storage_file_transfer_completion"
1281
1282 #define DBUS_PUSH_DATA_SIGNAL                           DBUS_PUSH_ADAPTOR "_push_data"
1283
1284 #define DBUS_SERVICE_ADAPTOR_SIGNAL                     DBUS_SERVICE_ADAPTOR "_service_adaptor_signal"
1285
1286 /* Extention enum define */
1287 #define SERVICE_ADAPTOR_FILE_TRANSFER_STATE_IN_PROGRESS 1
1288 #define SERVICE_ADAPTOR_FILE_TRANSFER_STATE_COMPLETED 2
1289 #define SERVICE_ADAPTOR_FILE_TRANSFER_STATE_CANCELED 3
1290 #define SERVICE_ADAPTOR_FILE_TRANSFER_STATE_FAILED 4
1291
1292
1293 ///////////////////
1294 ///////////////////               public feature
1295 ///////////////////
1296 /////////////////////////////////////////////////////////////////////////
1297 /////////////////////////////////////////////////////////////////////////
1298
1299
1300 /////////////////////////////////////////////////////////////////////////
1301 /////////////////////////////////////////////////////////////////////////
1302 ///////////////////
1303 ///////////////////               private feature
1304 ///////////////////
1305
1306 typedef enum
1307 {
1308         SERVICE_ADAPTOR_PROTOCOL_RETURN_CODE_NONE                       = 0,
1309         SERVICE_ADAPTOR_PROTOCOL_RETURN_CODE_COMMON_NO_DATA             = 101,
1310         SERVICE_ADAPTOR_PROTOCOL_RETURN_CODE_COMMON_TIMED_OUT           = 102,
1311         SERVICE_ADAPTOR_PROTOCOL_RETURN_CODE_COMMON_NOT_SUPPORTED       = 103,
1312         SERVICE_ADAPTOR_PROTOCOL_RETURN_CODE_COMMON_PERMISSION_DENIED   = 104,
1313         SERVICE_ADAPTOR_PROTOCOL_RETURN_CODE_AUTH_NOT_AUTHORIZED        = 201,
1314         SERVICE_ADAPTOR_PROTOCOL_RETURN_CODE_MESSAGE_NETWORK            = 601,
1315 } service_adaptor_protocol_return_code_e;
1316
1317 typedef enum
1318 {
1319         SERVICE_ADAPTOR_PROTOCOL_SERVICE_TYPE_AUTH              = (0x01 << 0),
1320         SERVICE_ADAPTOR_PROTOCOL_SERVICE_TYPE_STORAGE           = (0x01 << 1),
1321         SERVICE_ADAPTOR_PROTOCOL_SERVICE_TYPE_CONTACT           = (0x01 << 2),
1322         SERVICE_ADAPTOR_PROTOCOL_SERVICE_TYPE_MESSAGE           = (0x01 << 3),
1323         SERVICE_ADAPTOR_PROTOCOL_SERVICE_TYPE_SHOP              = (0x01 << 4),
1324         SERVICE_ADAPTOR_PROTOCOL_SERVICE_TYPE_PUSH              = (0x01 << 5),
1325 } service_adaptor_protocol_service_type_e;
1326
1327 ///////////////////
1328 ///////////////////               private feature
1329 ///////////////////
1330 /////////////////////////////////////////////////////////////////////////
1331 /////////////////////////////////////////////////////////////////////////
1332
1333 #endif /* __DBUS_SERVER_H__ */