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.
18 #ifndef __TIZEN_WEB_URL_DOWNLOAD_PRIVATE_H__
19 #define __TIZEN_WEB_URL_DOWNLOAD_PRIVATE_H__
22 #ifndef ENABLE_DOWNLOAD_PROVIDER
23 #include <download-agent-interface.h>
31 #ifndef ENABLE_DOWNLOAD_PROVIDER
32 typedef da_client_cb_t *url_download_agent_h;
38 struct url_download_cb_s {
39 url_download_started_cb started;
40 void *started_user_data;
42 url_download_paused_cb paused;
43 void *paused_user_data;
45 url_download_completed_cb completed;
46 void *completed_user_data;
48 url_download_stopped_cb stopped;
49 void *stopped_user_data;
51 url_download_progress_cb progress;
52 void *progress_user_data;
55 struct url_download_s {
56 #ifndef ENABLE_DOWNLOAD_PROVIDER
57 url_download_agent_h agent;
61 uint enable_notification;
64 struct url_download_cb_s callback;
65 url_download_state_e state;
74 pthread_t callback_thread_pid;
81 #endif /* __TIZEN_WEB_URL_DOWNLOAD_PRIVATE_H__ */