4 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef _BT_SERVICE_OPP_CLIENT_H_
21 #define _BT_SERVICE_OPP_CLIENT_H_
24 #include <sys/types.h>
25 #include "bluetooth-api.h"
26 #include "bt-internal-types.h"
32 #define BT_OBEX_CLIENT_AGENT_PATH "/org/obex/client_agent"
35 char path[BT_FILE_PATH_MAX];
50 char **file_name_array;
54 DBusGProxyCall *sending_proxy;
55 bt_transfer_info_t *transfer_info;
65 int _bt_opp_client_push_files(int request_id, DBusGMethodInvocation *context,
66 bluetooth_device_address_t *remote_address,
67 char **file_path, int file_count);
69 int _bt_opp_client_cancel_push(void);
71 int _bt_opp_client_cancel_all_transfers(void);
73 int _bt_opp_client_is_sending(gboolean *sending);
75 void _bt_sending_files();
77 gboolean _bt_obex_client_progress(int transferred);
79 gboolean _bt_obex_client_started(const char *transfer_path);
81 gboolean _bt_obex_client_completed(gboolean success);
85 #endif /* __cplusplus */
86 #endif /*_BT_SERVICE_OPP_CLIENT_H_*/