2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __DBUS_SERVER_H__
18 #define __DBUS_SERVER_H__
20 #include <tzplatform_config.h>
23 * Service Adaptor D-Bus server bus name.
25 #define SERVICE_ADAPTOR_BUS_NAME "org.tizen.serviceadaptor.client"
28 * Service Adaptor D-Bus server object path.
30 #define SERVICE_ADAPTOR_OBJECT_PATH "/org/tizen/serviceadaptor/client"
33 * Service Adaptor D-Bus interface.
35 #define SERVICE_ADAPTOR_INTERFACE "org.tizen.serviceadaptor.client.interface"
38 * Service Adaptor Activation start key path
40 #define SERVICE_ADAPTOR_START_KEY_PATH tzplatform_mkpath(TZ_SYS_SHARE, "/service-adaptor/.fingerprint")
42 /////////////////////////////////////////////////////////////////////////
43 /////////////////////////////////////////////////////////////////////////
45 /////////////////// private feature
48 #define private_service_adaptor_essential_s_type_length 1
49 #define private_service_adaptor_essential_s_type \
51 "s" /* char * service_name */ \
54 #define private_service_adaptor_external_req_s_type_length 4
55 #define private_service_adaptor_external_req_s_type \
57 "s" /* char * service_name */ \
58 "i" /* int32 service_flag */ \
59 "s" /* char * api_uri */ \
60 service_adaptor_raw_data_s_type \
63 #define private_service_adaptor_plugin_s_type_length 2
64 #define private_service_adaptor_plugin_s_type \
66 "s" /* char * name */ \
67 "b" /* bool login */ \
70 #define private_service_adaptor_set_auth_s_type_length 8
71 #define private_service_adaptor_set_auth_s_type \
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 */ \
83 #define private_service_adaptor_contact_info_req_s_type_length 5
84 #define private_service_adaptor_contact_info_req_s_type \
93 #define private_service_adaptor_contact_req_s_type_length 4
94 #define private_service_adaptor_contact_req_s_type \
96 "s" /* char * service_name */ \
98 "a" private_service_adaptor_contact_info_req_s_type \
99 "u" /* uint32 cts_len */ \
102 #define private_service_adaptor_contact_info_res_s_type_length 21
103 #define private_service_adaptor_contact_info_res_s_type \
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 */ \
128 #define private_service_adaptor_contact_res_s_type_length 3
129 #define private_service_adaptor_contact_res_s_type \
132 "a" private_service_adaptor_contact_info_res_s_type \
133 "u" /* uint32 cts_len */ \
136 #define private_service_adaptor_profile_req_s_type_length 14
137 #define private_service_adaptor_profile_req_s_type \
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 */ \
155 #define private_service_adaptor_profile_res_s_type_length 4
156 #define private_service_adaptor_profile_res_s_type \
158 "s" /* char * nm */ \
159 "s" /* char * img */ \
160 "s" /* char * prsc */ \
161 "s" /* char * status */ \
164 #define private_service_adaptor_privacy_info_req_s_type_length 2
165 #define private_service_adaptor_privacy_info_req_s_type \
167 "s" /* char * cc */ \
168 "s" /* char * pn */ \
171 #define private_service_adaptor_privacy_req_s_type_length 4
172 #define private_service_adaptor_privacy_req_s_type \
174 "s" /* char * service_name */ \
175 "u" /* uint32 lvl */ \
176 "a" private_service_adaptor_privacy_info_req_s_type \
177 "u" /* uint32 cts_len */ \
180 #define private_service_adaptor_privacy_res_s_type_length 2
181 #define private_service_adaptor_privacy_res_s_type \
183 "u" /* uint32 lvl */ \
184 "u" /* uint32 prscon */ \
187 #define private_service_adaptor_presence_req_s_type_length 4
188 #define private_service_adaptor_presence_req_s_type \
190 "s" /* char * service_name */ \
191 "s" /* char * prsc */ \
192 "s" /* char * status */ \
193 "u" /* uint32 prscon */ \
196 #define private_service_adaptor_contact_profile_image_req_s_type_length 3
197 #define private_service_adaptor_contact_profile_image_req_s_type \
199 "s" /* char * service_name */ \
200 "a(iis)" /* images array */ \
201 "u" /* uint32 images length */ \
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 \
212 #define private_service_adaptor_file_path_req_s_type_length 3
213 #define private_service_adaptor_file_path_req_s_type \
215 "s" /* char * service_name */ \
216 "a(s)" /* char ** file_paths */ \
217 "u" /* uint32 file_paths_len */ \
220 #define private_service_adaptor_file_path_res_s_type_length 2
221 #define private_service_adaptor_file_path_res_s_type \
223 "a(s)" /* char ** file_paths */ \
224 "u" /* uint32 file_paths_len */ \
227 #define private_service_adaptor_file_s_type_length 1
228 #define private_service_adaptor_file_s_type \
230 "i" /* int32 file_description */ \
233 #define private_service_adaptor_file_publish_s_type_length 1
234 #define private_service_adaptor_file_publish_s_type \
236 "s" /* char * publish_url */ \
239 #define private_service_adaptor_file_transfer_req_s_type_length 3
240 #define private_service_adaptor_file_transfer_req_s_type \
242 "s" /* char * service_name */ \
243 "s" /* char * server_path */ \
244 "s" /* char * download_path */ \
247 #define private_service_adaptor_file_status_req_s_type_length 2
248 #define private_service_adaptor_file_status_req_s_type \
250 "s" /* char * service_name */ \
251 "i" /* int32 file_description */ \
254 #define private_service_adaptor_privilege_check_req_s_type_length 2
255 #define private_service_adaptor_privilege_check_req_s_type \
257 "s" /* char * service_name */ \
258 "s" /* char * privilege_name */ \
261 #define private_service_adaptor_file_status_res_s_type_length 3
262 #define private_service_adaptor_file_status_res_s_type \
264 "x" /* int64 total_size */ \
265 "x" /* int64 transferred_size */ \
266 "x" /* int64 status */ \
269 #define private_service_adaptor_did_violation_users_s_type_length 2
270 #define private_service_adaptor_did_violation_users_s_type \
272 "x" /* int64 usera */ \
273 "x" /* int64 userb */ \
276 #define private_service_adaptor_wrong_receiver_s_type_length 12
277 #define private_service_adaptor_wrong_receiver_s_type \
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 */ \
293 #define private_service_adaptor_chat_msg_s_type_length 4
294 #define private_service_adaptor_chat_msg_s_type \
296 "x" /* int64 msg_id */ \
297 "i" /* int msg_type */ \
298 "s" /* char * chatmsg */ \
299 "i" /* int32 message_ttl */ \
302 #define private_service_adaptor_processed_msg_s_type_length 2
303 #define private_service_adaptor_processed_msg_s_type \
305 "x" /* int64 msg_id */ \
306 "x" /* int64 sent_time */ \
309 #define private_service_adaptor_delivery_ack_s_type_length 3
310 #define private_service_adaptor_delivery_ack_s_type \
312 "x" /* int64 user_id */ \
313 "x" /* int64 msg_id */ \
314 "t" /* int64 timestamp */ \
317 #define private_service_adaptor_read_ack_s_type_length 3
318 #define private_service_adaptor_read_ack_s_type \
320 "x" /* int64 user_id */ \
321 "x" /* int64 msg_id */ \
322 "t" /* int64 timestamp */ \
325 #define private_service_adaptor_ordered_chat_member_s_type_length 3
326 #define private_service_adaptor_ordered_chat_member_s_type \
328 "x" /* int64 user_id */ \
329 "b" /* bool available */ \
330 "s" /* char * name */ \
333 #define private_service_adaptor_inbox_message_s_type_length 9
334 #define private_service_adaptor_inbox_message_s_type \
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 */ \
347 #define private_service_adaptor_end_chat_s_type_length 2
348 #define private_service_adaptor_end_chat_s_type \
350 "x" /* int64 chatroom_id */ \
351 "b" /* boolean deny_invitation */ \
354 #define private_service_adaptor_phone_number_s_type_length 2
355 #define private_service_adaptor_phone_number_s_type \
357 "s" /* char * phonenumber */ \
358 "s" /* char * ccc */ \
361 #define private_service_adaptor_chat_id_s_type_length 2
362 #define private_service_adaptor_chat_id_s_type \
364 "x" /* int64 chatid */ \
365 "s" /* char * msisdn */ \
368 #define private_service_adaptor_create_chatroom_req_s_type_length 6
369 #define private_service_adaptor_create_chatroom_req_s_type \
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 */ \
379 #define private_service_adaptor_create_chatroom_res_s_type_length 4
380 #define private_service_adaptor_create_chatroom_res_s_type \
382 "x" /* int64 request_id */ \
383 "x" /* int64 chatroom_id */ \
384 "i" /* int32 default_message_ttl */ \
385 private_service_adaptor_wrong_receiver_s_type \
388 #define private_service_adaptor_change_chatroom_meta_req_s_type_length 5
389 #define private_service_adaptor_change_chatroom_meta_req_s_type \
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 */ \
398 #define private_service_adaptor_change_chatroom_meta_res_s_type_length 2
399 #define private_service_adaptor_change_chatroom_meta_res_s_type \
401 "x" /* int64 request_id */ \
402 "x" /* int64 chatroom_id */ \
405 #define private_service_adaptor_chat_req_s_type_length 5
406 #define private_service_adaptor_chat_req_s_type \
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 */ \
415 #define private_service_adaptor_chat_res_s_type_length 4
416 #define private_service_adaptor_chat_res_s_type \
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 */ \
424 #define private_service_adaptor_allow_chat_req_s_type_length 10
425 #define private_service_adaptor_allow_chat_req_s_type \
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 */ \
439 #define private_service_adaptor_allow_chat_res_s_type_length 12
440 #define private_service_adaptor_allow_chat_res_s_type \
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 */ \
456 #define private_service_adaptor_all_unread_message_req_s_type_length 3
457 #define private_service_adaptor_all_unread_message_req_s_type \
459 "s" /* char * service_name */ \
460 "x" /* int64 request_id */ \
461 "i" /* int max_count */ \
464 #define private_service_adaptor_all_unread_message_res_s_type_length 1
465 #define private_service_adaptor_all_unread_message_res_s_type \
467 "x" /* int64 request_id */ \
470 #define private_service_adaptor_forward_online_message_req_s_type_length 5
471 #define private_service_adaptor_forward_online_message_req_s_type \
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 */ \
480 #define private_service_adaptor_forward_online_message_res_s_type_length 4
481 #define private_service_adaptor_forward_online_message_res_s_type \
483 "s" /* char * service_name */ \
484 "x" /* int64 request_id */ \
485 "x" /* int64 chatroom_id */ \
486 "b" /* bool mark_as_read */ \
489 #define private_service_adaptor_forward_unread_message_req_s_type_length 4
490 #define private_service_adaptor_forward_unread_message_req_s_type \
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 */ \
498 #define private_service_adaptor_forward_unread_message_res_s_type_length 4
499 #define private_service_adaptor_forward_unread_message_res_s_type \
501 "s" /* char * service_name */ \
502 "x" /* int64 request_id */ \
503 "s" /* char * next_pagination_key */ \
504 "i" /* int max_count */ \
507 #define private_service_adaptor_read_message_req_s_type_length 4
508 #define private_service_adaptor_read_message_req_s_type \
510 "s" /* char * service_name */ \
511 "x" /* int64 request_id */ \
512 "x" /* int64 chatroom_id */ \
513 private_service_adaptor_inbox_message_s_type \
516 #define private_service_adaptor_read_message_res_s_type_length 2
517 #define private_service_adaptor_read_message_res_s_type \
519 "x" /* int64 request_id */ \
520 "x" /* int64 chatroom_id */ \
523 #define private_service_adaptor_invite_chat_req_s_type_length 5
524 #define private_service_adaptor_invite_chat_req_s_type \
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 */ \
533 #define private_service_adaptor_invite_chat_res_s_type_length 4
534 #define private_service_adaptor_invite_chat_res_s_type \
536 "x" /* int64 request_id */ \
537 "x" /* int64 chatroom_id */ \
538 "x" /* int64 sent_time */ \
539 private_service_adaptor_wrong_receiver_s_type \
542 #define private_service_adaptor_end_chat_req_s_type_length 4
543 #define private_service_adaptor_end_chat_req_s_type \
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 */ \
551 #define private_service_adaptor_end_chat_res_s_type_length 1
552 #define private_service_adaptor_end_chat_res_s_type \
554 "x" /* int64 request_id */ \
557 #define private_service_adaptor_unseal_message_req_s_type_length 6
558 #define private_service_adaptor_unseal_message_req_s_type \
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 */ \
568 #define private_service_adaptor_unseal_message_res_s_type_length 2
569 #define private_service_adaptor_unseal_message_res_s_type \
571 "x" /* int64 request_id */ \
572 "x" /* int64 chatroom_id */ \
575 #define private_service_adaptor_save_call_log_req_s_type_length 8
576 #define private_service_adaptor_save_call_log_req_s_type \
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 */ \
588 #define private_service_adaptor_save_call_log_res_s_type_length 1
589 #define private_service_adaptor_save_call_log_res_s_type \
591 "x" /* int64 request_id */ \
594 #define private_service_adaptor_current_time_req_s_type_length 2
595 #define private_service_adaptor_current_time_req_s_type \
597 "s" /* char * service_name */ \
598 "x" /* int64 request_id */ \
601 #define private_service_adaptor_current_time_res_s_type_length 2
602 #define private_service_adaptor_current_time_res_s_type \
604 "x" /* int64 request_id */ \
605 "x" /* int64 current_time_millis */ \
608 #define private_service_adaptor_get_connection_policy_req_s_type_length 1
609 #define private_service_adaptor_get_connection_policy_req_s_type \
611 "s" /* char * service_name */ \
614 #define private_service_adaptor_set_connection_policy_req_s_type_length 2
615 #define private_service_adaptor_set_connection_policy_req_s_type \
617 "s" /* char * service_name */ \
618 "i" /* int32 connection_policy */ \
621 #define private_service_adaptor_connection_policy_res_s_type_length 1
622 #define private_service_adaptor_connection_policy_res_s_type \
624 "i" /* int32 connection_policy */ \
627 #define private_service_adaptor_channel_disconnected_res_s_type_length 1
628 #define private_service_adaptor_channel_disconnected_res_s_type \
630 "s" /* char * service_name */ \
633 #define private_service_adaptor_chat_id_list_req_s_type_length 3
634 #define private_service_adaptor_chat_id_list_req_s_type \
636 "s" /* char * service_name */ \
637 "a" private_service_adaptor_phone_number_s_type \
638 "u" /* uint32 phone_number_len */ \
641 #define private_service_adaptor_chat_id_list_res_s_type_length 2
642 #define private_service_adaptor_chat_id_list_res_s_type \
644 "a" private_service_adaptor_chat_id_s_type \
645 "u" /* uint32 chat_ids_len */ \
648 #define private_service_adaptor_msisdn_list_req_s_type_length 3
649 #define private_service_adaptor_msisdn_list_req_s_type \
651 "s" /* char * service_name */ \
652 "a(x)" /* int64 * chat_ids */ \
653 "u" /* uint32 chat_ids_len */ \
656 #define private_service_adaptor_msisdn_list_res_s_type_length 2
657 #define private_service_adaptor_msisdn_list_res_s_type \
659 "a" private_service_adaptor_chat_id_s_type \
660 "u" /* uint32 msisdns_len */ \
663 #define private_service_adaptor_shop_info_s_type_length 9
664 #define private_service_adaptor_shop_info_s_type \
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 */ \
677 #define private_service_adaptor_shop_item_s_type_length 17
678 #define private_service_adaptor_shop_item_s_type \
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 */ \
699 #define private_service_adaptor_shop_req_s_type_length 2
700 #define private_service_adaptor_shop_req_s_type \
702 "s" /* char * service_name */ \
703 private_service_adaptor_shop_info_s_type \
706 #define private_service_adaptor_shop_res_s_type_length 2
707 #define private_service_adaptor_shop_res_s_type \
709 "a" private_service_adaptor_shop_item_s_type \
710 "u" /* uint32 items_len */ \
713 #define private_service_adaptor_file_progress_s_type_length 3
714 #define private_service_adaptor_file_progress_s_type \
716 "i" /* int32 file_description */ \
717 "t" /* uint64 progress_size */ \
718 "t" /* uint64 total_size */ \
721 #define private_service_adaptor_file_transfer_completion_s_type_length 2
722 #define private_service_adaptor_file_transfer_completion_s_type \
724 "i" /* int32 file_description */ \
725 "s" /* char * publish_url */ \
728 #define private_service_adaptor_push_data_s_type_length 4
729 #define private_service_adaptor_push_data_s_type \
731 "u" /* uint32 service_id */ \
732 "s" /* char * data */ \
733 "s" /* char * msg */ \
734 "x" /* int64 time_stamp */ \
737 #define private_service_adaptor_push_register_req_s_type_length 1
738 #define private_service_adaptor_push_register_req_s_type \
740 "s" /* char *service_file_name */ \
743 #define private_service_adaptor_push_deregister_req_s_type_length 1
744 #define private_service_adaptor_push_deregister_req_s_type \
746 "s" /* char *service_file_name */ \
750 /////////////////// private feature
752 /////////////////////////////////////////////////////////////////////////
753 /////////////////////////////////////////////////////////////////////////
755 /////////////////////////////////////////////////////////////////////////
756 /////////////////////////////////////////////////////////////////////////
758 /////////////////// public feature
762 #define service_adaptor_essential_s_type_length 1
763 #define service_adaptor_essential_s_type \
765 "s" /* char * service_name */ \
768 #define service_adaptor_plugin_s_type_length 2
769 #define service_adaptor_plugin_s_type \
771 "s" /* char * plugin_uri */ \
772 "i" /* int32_t installed_mask */ \
775 #define service_adaptor_is_auth_req_s_type_length 2
776 #define service_adaptor_is_auth_req_s_type \
778 "s" /* char * plugin_uri */ \
779 service_adaptor_raw_data_s_type \
782 #define service_adaptor_join_req_s_type_length 2
783 #define service_adaptor_join_req_s_type \
785 "s" /* char * plugin_uri */ \
786 service_adaptor_raw_data_s_type \
789 #define service_adaptor_set_auth_s_type_length 9
790 #define service_adaptor_set_auth_s_type \
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 */ \
803 #define service_adaptor_raw_data_s_type \
804 "a(y)" /* unsigned char * raw_data*/ \
806 #define service_adaptor_file_path_req_s_type_length 3
807 #define service_adaptor_file_path_req_s_type \
809 "s" /* char * service_name */ \
810 "a(s)" /* char ** file_paths */ \
811 "u" /* uint32 file_paths_len */ \
814 #define service_adaptor_file_path_res_s_type_length 2
815 #define service_adaptor_file_path_res_s_type \
817 "a(s)" /* char ** file_paths */ \
818 "u" /* uint32 file_paths_len */ \
821 #define service_adaptor_file_s_type_length 1
822 #define service_adaptor_file_s_type \
824 "i" /* int32 file_description */ \
827 #define service_adaptor_content_meta_s_type_length 18
828 #define service_adaptor_content_meta_s_type \
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 */ \
850 #define service_adaptor_cloud_meta_s_type_length 4
851 #define service_adaptor_cloud_meta_s_type \
853 "s" /* char * service_name */ \
854 "t" /* uint64 usage_byte */ \
855 "t" /* uint64 quota_byte */ \
856 "s" /* char * extra_cloud_meta */ \
859 #define service_adaptor_file_info_s_type_length 11
860 #define service_adaptor_file_info_s_type \
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 */ \
875 #define service_adaptor_file_publish_s_type_length 1
876 #define service_adaptor_file_publish_s_type \
878 "s" /* char * publish_url */ \
881 #define service_adaptor_file_transfer_req_s_type_length 3
882 #define service_adaptor_file_transfer_req_s_type \
884 "s" /* char * service_name */ \
885 "s" /* char * server_path */ \
886 "s" /* char * download_path */ \
889 #define service_adaptor_download_thumbnail_req_s_type_length 4
890 #define service_adaptor_download_thumbnail_req_s_type \
892 "s" /* char * service_name */ \
893 "s" /* char * server_path */ \
894 "s" /* char * download_path */ \
895 "i" /* int32 thumbnail_size */ \
898 #define service_adaptor_file_status_req_s_type_length 2
899 #define service_adaptor_file_status_req_s_type \
901 "s" /* char * service_name */ \
902 "i" /* int32 file_description */ \
905 #define service_adaptor_file_status_res_s_type_length 3
906 #define service_adaptor_file_status_res_s_type \
908 "x" /* int64 total_size */ \
909 "x" /* int64 transferred_size */ \
910 "x" /* int64 status */ \
912 #define service_adaptor_get_root_folder_path_req_s_type_length 1
913 #define service_adaptor_get_root_folder_path_req_s_type \
915 "s" /* char * service_name */ \
917 #define service_adaptor_get_root_folder_path_res_s_type_length 1
918 #define service_adaptor_get_root_folder_path_res_s_type \
920 "s" /* char * root_folder_path */ \
922 #define service_adaptor_make_directory_req_s_type_length 2
923 #define service_adaptor_make_directory_req_s_type \
925 "s" /* char * service_name */ \
926 "s" /* char * folder_path */ \
928 #define service_adaptor_remove_file_req_s_type_length 2
929 #define service_adaptor_remove_file_req_s_type \
931 "s" /* char * service_name */ \
932 "s" /* char * file_path */ \
934 #define service_adaptor_remove_directory_req_s_type_length 2
935 #define service_adaptor_remove_directory_req_s_type \
937 "s" /* char * service_name */ \
938 "s" /* char * folder_path */ \
940 #define service_adaptor_move_file_req_s_type_length 3
941 #define service_adaptor_move_file_req_s_type \
943 "s" /* char * service_name */ \
944 "s" /* char * src_file_path */ \
945 "s" /* char * dst_file_path */ \
947 #define service_adaptor_move_directory_req_s_type_length 3
948 #define service_adaptor_move_directory_req_s_type \
950 "s" /* char * service_name */ \
951 "s" /* char * src_folder_path */ \
952 "s" /* char * dst_folder_path */ \
954 #define service_adaptor_get_file_list_req_s_type_length 2
955 #define service_adaptor_get_file_list_req_s_type \
957 "s" /* char * service_name */ \
958 "s" /* char * parent_path */ \
960 #define service_adaptor_open_upload_file_req_s_type_length 3
961 #define service_adaptor_open_upload_file_req_s_type \
963 "s" /* char * service_name */ \
964 "s" /* char * local_path */ \
965 "s" /* char * upload_path */ \
967 #define service_adaptor_open_download_file_req_s_type_length 3
968 #define service_adaptor_open_download_file_req_s_type \
970 "s" /* char * service_name */ \
971 "s" /* char * storage_path */ \
972 "s" /* char * local_path */ \
974 #define service_adaptor_open_download_thumbnail_req_s_type_length 4
975 #define service_adaptor_open_download_thumbnail_req_s_type \
977 "s" /* char * service_name */ \
978 "s" /* char * storage_path */ \
979 "s" /* char * local_path */ \
980 "i" /* int32_t thumbnail_size */ \
982 #define service_adaptor_close_file_req_s_type_length 2
983 #define service_adaptor_close_file_req_s_type \
985 "s" /* char * service_name */ \
986 service_adaptor_file_descriptor_s_type \
989 #define service_adaptor_start_upload_file_req_s_type_length 5
990 #define service_adaptor_start_upload_file_req_s_type \
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 */ \
998 #define service_adaptor_start_download_file_req_s_type_length 5
999 #define service_adaptor_start_download_file_req_s_type \
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 */ \
1007 #define service_adaptor_start_download_thumbnail_req_s_type_length 6
1008 #define service_adaptor_start_download_thumbnail_req_s_type \
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 */ \
1018 #define service_adaptor_cancel_file_task_req_s_type_length 2
1019 #define service_adaptor_cancel_file_task_req_s_type \
1021 "s" /* char * service_name */ \
1022 service_adaptor_file_descriptor_s_type \
1025 #define service_adaptor_file_descriptor_s_type_length 1
1026 #define service_adaptor_file_descriptor_s_type \
1028 "x" /* int64_t file_uid */ \
1031 #define service_adaptor_get_file_list_res_s_type_length 2
1032 #define service_adaptor_get_file_list_res_s_type \
1034 "a" service_adaptor_file_info_s_type \
1035 "u" /* uint32 file_info_len */ \
1038 #define service_adaptor_file_progress_s_type_length 3
1039 #define service_adaptor_file_progress_s_type \
1041 service_adaptor_file_descriptor_s_type \
1042 "t" /* uint64 progress_size */ \
1043 "t" /* uint64 total_size */ \
1046 #define service_adaptor_file_transfer_state_changed_s_type_length 2
1047 #define service_adaptor_file_transfer_state_changed_s_type \
1049 service_adaptor_file_descriptor_s_type \
1050 "i" /* int32_t state */ \
1053 #define service_adaptor_push_data_s_type_length 4
1054 #define service_adaptor_push_data_s_type \
1056 "u" /* uint32 service_id */ \
1057 "s" /* char * data */ \
1058 "s" /* char * msg */ \
1059 "x" /* int64 time_stamp */ \
1063 /////////////////// public feature
1065 /////////////////////////////////////////////////////////////////////////
1066 /////////////////////////////////////////////////////////////////////////
1069 /////////////////////////////////////////////////////////////////////////
1070 /////////////////////////////////////////////////////////////////////////
1072 /////////////////// private feature
1076 * array of structures
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
1092 /////////////////// private feature
1094 /////////////////////////////////////////////////////////////////////////
1095 /////////////////////////////////////////////////////////////////////////
1097 /////////////////////////////////////////////////////////////////////////
1098 /////////////////////////////////////////////////////////////////////////
1100 /////////////////// public feature
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
1108 /////////////////// public feature
1110 /////////////////////////////////////////////////////////////////////////
1111 /////////////////////////////////////////////////////////////////////////
1113 /////////////////////////////////////////////////////////////////////////
1114 /////////////////////////////////////////////////////////////////////////
1116 /////////////////// common
1121 * append error code to the type
1123 #define MAKE_RETURN_TYPE(x) "(" x "ts)"
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
1140 /////////////////// common
1142 /////////////////////////////////////////////////////////////////////////
1143 /////////////////////////////////////////////////////////////////////////
1145 /////////////////////////////////////////////////////////////////////////
1146 /////////////////////////////////////////////////////////////////////////
1148 /////////////////// private feature
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"
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"
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"
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"
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"
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"
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"
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"
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"
1231 #define PRIVATE_DBUS_SERVICE_ADAPTOR_SIGNAL DBUS_SERVICE_ADAPTOR "_private" "_service_adaptor_signal"
1235 /////////////////// private feature
1237 /////////////////////////////////////////////////////////////////////////
1238 /////////////////////////////////////////////////////////////////////////
1240 /////////////////////////////////////////////////////////////////////////
1241 /////////////////////////////////////////////////////////////////////////
1243 /////////////////// public feature
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"
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"
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"
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"
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"
1282 #define DBUS_PUSH_DATA_SIGNAL DBUS_PUSH_ADAPTOR "_push_data"
1284 #define DBUS_SERVICE_ADAPTOR_SIGNAL DBUS_SERVICE_ADAPTOR "_service_adaptor_signal"
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
1294 /////////////////// public feature
1296 /////////////////////////////////////////////////////////////////////////
1297 /////////////////////////////////////////////////////////////////////////
1300 /////////////////////////////////////////////////////////////////////////
1301 /////////////////////////////////////////////////////////////////////////
1303 /////////////////// private feature
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;
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;
1328 /////////////////// private feature
1330 /////////////////////////////////////////////////////////////////////////
1331 /////////////////////////////////////////////////////////////////////////
1333 #endif /* __DBUS_SERVER_H__ */