ewebkit2
1.11.0
Web engine based on WebKit2 for EFL
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
efl-webkit
Source
WebKit2
UIProcess
API
efl
ewk_download_job.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012 Intel Corporation. All rights reserved.
3
*
4
* Redistribution and use in source and binary forms, with or without
5
* modification, are permitted provided that the following conditions
6
* are met:
7
* 1. Redistributions of source code must retain the above copyright
8
* notice, this list of conditions and the following disclaimer.
9
* 2. Redistributions in binary form must reproduce the above copyright
10
* notice, this list of conditions and the following disclaimer in the
11
* documentation and/or other materials provided with the distribution.
12
*
13
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23
* THE POSSIBILITY OF SUCH DAMAGE.
24
*/
25
35
#ifndef ewk_download_job_h
36
#define ewk_download_job_h
37
38
#include "
ewk_url_request.h
"
39
#include "
ewk_url_response.h
"
40
#include <Eina.h>
41
42
#ifdef __cplusplus
43
extern
"C"
{
44
#endif
45
51
typedef
struct
EwkObject
Ewk_Download_Job
;
52
54
enum
Ewk_Download_Job_State
{
56
EWK_DOWNLOAD_JOB_STATE_UNKNOWN
= -1,
58
EWK_DOWNLOAD_JOB_STATE_NOT_STARTED
,
60
EWK_DOWNLOAD_JOB_STATE_DOWNLOADING
,
62
EWK_DOWNLOAD_JOB_STATE_FAILED
,
64
EWK_DOWNLOAD_JOB_STATE_CANCELLING
,
66
EWK_DOWNLOAD_JOB_STATE_CANCELLED
,
68
EWK_DOWNLOAD_JOB_STATE_FINISHED
69
};
71
typedef
enum
Ewk_Download_Job_State
Ewk_Download_Job_State
;
72
80
EAPI Ewk_Download_Job_State
ewk_download_job_state_get
(
const
Ewk_Download_Job
*download);
81
89
EAPI
Ewk_Url_Request
*
ewk_download_job_request_get
(
const
Ewk_Download_Job
*download);
90
98
EAPI
Ewk_Url_Response
*
ewk_download_job_response_get
(
const
Ewk_Download_Job
*download);
99
111
EAPI
const
char
*
ewk_download_job_destination_get
(
const
Ewk_Download_Job
*download);
112
131
EAPI Eina_Bool
ewk_download_job_destination_set
(
Ewk_Download_Job
*download,
const
char
*destination);
132
149
EAPI
const
char
*
ewk_download_job_suggested_filename_get
(
const
Ewk_Download_Job
*download);
150
162
EAPI Eina_Bool
ewk_download_job_cancel
(
Ewk_Download_Job
*download);
163
172
EAPI
double
ewk_download_job_estimated_progress_get
(
const
Ewk_Download_Job
*download);
173
184
EAPI
double
ewk_download_job_elapsed_time_get
(
const
Ewk_Download_Job
*download);
185
196
EAPI uint64_t
ewk_download_job_received_data_size_get
(
const
Ewk_Download_Job
*download);
197
198
#ifdef __cplusplus
199
}
200
#endif
201
202
#endif // ewk_download_job_h
Generated on Fri Aug 22 2014 09:33:55 for ewebkit2 by
1.8.4