GObject.Object
                WebKit.Download
		   
| Import line: | WebKit = imports.gi.WebKit; | 
| GIR File: | WebKit-3.0.gir | 
| C documentation: | WebKitDownload | 
| Class : | Download | 
| Extends: | GObject.Object | 
| Properties | Defined By | |
|---|---|---|
| 
			
			 
				current_size : guint64 
                 read only  
                     
			 
		  
			The length of the data already downloaded  
			The length of the data already downloaded  
			 | 
		    WebKit.Download | |
| 
			
			 
				destination_uri : String 
                   
                     
			 
		  
			The URI of the save location for this download.  
			The URI of the save location for this download.  
			 | 
		    WebKit.Download | |
| 
			
			 
				network_request : WebKit.NetworkRequest 
                   
                     
			 
		  
			The WebKitNetworkRequest instance associated with the download.  
			The WebKitNetworkRequest instance associated with the download.  
			 | 
		    WebKit.Download | |
| 
			
			 
				network_response : WebKit.NetworkResponse 
                   
                     
			 
		  
			The WebKitNetworkResponse instance associated with the download.  
			The WebKitNetworkResponse instance associated with the download.  
			 | 
		    WebKit.Download | |
| 
			
			 
				parent_instance : GObject.Object 
                 read only  
                     
			 
		  
			 | 
		    WebKit.Download | |
| 
			
			 
				priv : WebKit.DownloadPrivate 
                 read only  
                     
			 
		  
			 | 
		    WebKit.Download | |
| 
			
			 
				progress : gdouble 
                 read only  
                     
			 
		  
			Determines the current progress of the download.  
			Determines the current progress of the download. Notice that,  
			although the progress changes are reported as soon as possible, the emission of the notify signal for this property is throttled, for the benefit of download managers. If you care about every update, use WebKitDownload:current-size.  | 
		    WebKit.Download | |
| 
			
			 
				status : WebKit.DownloadStatus 
                 read only  
                     
			 
		  
			Determines the current status of the download.  
			Determines the current status of the download.  
			 | 
		    WebKit.Download | |
| 
			
			 
				suggested_filename : String 
                 read only  
                     
			 
		  
			The file name suggested as default when saving  
			The file name suggested as default when saving  
			 | 
		    WebKit.Download | |
| 
			
			 
				total_size : guint64 
                 read only  
                     
			 
		  
			The total size of the file  
			The total size of the file  
			 | 
		    WebKit.Download | |
| Method / Constructor | Defined By | |
|---|---|---|
| 
                
		 
			new  WebKit.Download
				
				 (Object properties) 
			
				
			
		 
                Create a new WebKit.Download  
		 
		 
                    
			
			
			
				Create a new WebKit.Download
			
			
				                     
                
  | 
            ||
| 
                
		
                 Create a new WebKit.Download  
		 
		 
                    
			
			
			
				Create a new WebKit.Download
			
			
				                     
                
 
  | 
            ||
| 
                
		 
			cancel
				
				 () 
			
				
					 : 
					none
					
				
			
		 
                Cancels the download.  
		 
		 
		 
                    
			
				Cancels the download. Calling this will not free the                     
                WebKitDownload object, so you still need to call g_object_unref() on it, if you are the owner of a reference. Notice that cancelling the download provokes the emission of the WebKitDownload::error signal, reporting that the download was cancelled. 
  | 
            WebKit.Download | |
| 
                
		 
			get_current_size
				
				 () 
			
				
					 : 
					guint64
					
				
			
		 
                Current already downloaded size.  
		 
		 
		 
                    
			
				Current already downloaded size.
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            WebKit.Download | |
| 
                
		 
			get_destination_uri
				
				 () 
			
				
					 : 
					String
					
				
			
		 
                Obtains the URI to which the downloaded file will be written.  
		 
		 
		 
                    
			
				Obtains the URI to which the downloaded file will be written. This                     
                must have been set by the application before calling webkit_download_start(), and may be NULL. 
  | 
            WebKit.Download | |
| 
                
		 
			get_elapsed_time
				
				 () 
			
				
					 : 
					gdouble
					
				
			
		 
                Elapsed time for the download in seconds, including any fractional  
		 
		 
		 
                    part. 
			
				Elapsed time for the download in seconds, including any fractional                     
                part. If the download is finished, had an error or was cancelled this is the time between its start and the event. 
  | 
            WebKit.Download | |
| 
                
		 
			get_network_request
				
				 () 
			
				
					 : 
					WebKit.NetworkRequest
					
				
			
		 
                Retrieves the WebKitNetworkRequest object that backs the download  
		 
		 
		 
                    process. 
			
				Retrieves the WebKitNetworkRequest object that backs the download                     
                process. 
  | 
            WebKit.Download | |
| 
                
		 
			get_network_response
				
				 () 
			
				
					 : 
					WebKit.NetworkResponse
					
				
			
		 
                Retrieves the WebKitNetworkResponse object that backs the download  
		 
		 
		 
                    process. 
			
				Retrieves the WebKitNetworkResponse object that backs the download                     
                process. 
  | 
            WebKit.Download | |
| 
                
		 
			get_progress
				
				 () 
			
				
					 : 
					gdouble
					
				
			
		 
                Determines the current progress of the download.  
		 
		 
		 
                    
			
				Determines the current progress of the download.
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            WebKit.Download | |
| 
                
		 
			get_status
				
				 () 
			
				
					 : 
					WebKit.DownloadStatus
					
				
			
		 
                Obtains the current status of the download, as a  
		 
		 
		 
                    WebKitDownloadStatus. 
			
				Obtains the current status of the download, as a                     
                WebKitDownloadStatus. 
  | 
            WebKit.Download | |
| 
                
		 
			get_suggested_filename
				
				 () 
			
				
					 : 
					String
					
				
			
		 
                Retrieves the filename that was suggested by the server, or the one  
		 
		 
		 
                    derived by WebKit from the URI. 
			
				Retrieves the filename that was suggested by the server, or the one                     
                derived by WebKit from the URI. 
  | 
            WebKit.Download | |
| 
                
		 
			get_total_size
				
				 () 
			
				
					 : 
					guint64
					
				
			
		 
                Returns the expected total size of the download.  
		 
		 
		 
                    
			
				Returns the expected total size of the download. This is expected                     
                because the server may provide incorrect or missing Content-Length. Notice that this may grow over time, as it will be always the same as current_size in the cases where current size surpasses it. 
  | 
            WebKit.Download | |
| 
                
		 
			get_uri
				
				 () 
			
				
					 : 
					String
					
				
			
		 
                Convenience method to retrieve the URI from the  
		 
		 
		 
                    WebKitNetworkRequest which is being downloaded. 
			
				Convenience method to retrieve the URI from the                     
                WebKitNetworkRequest which is being downloaded. 
  | 
            WebKit.Download | |
| 
                
		 
			set_destination_uri
				
				 (String destination_uri) 
			
				
					 : 
					none
					
				
			
		 
                Defines the URI that should be used to save the downloaded file to.  
		 
		 
		 
                    
			
				Defines the URI that should be used to save the downloaded file to.
		    
				
			
			
			
			
				                     
                
 
  | 
            WebKit.Download | |
| 
                
		 
			start
				
				 () 
			
				
					 : 
					none
					
				
			
		 
                Initiates the download.  
		 
		 
		 
                    
			
				Initiates the download. Notice that you must have set the                     
                destination-uri property before calling this method. 
  | 
            WebKit.Download | |
| Event | Defined By | |
|---|---|---|
| 
                
                
	       
                 Emitted when download is interrupted either by user action or by  
		    
                    network errors, error_detail will take any value of WebKitDownloadError. 
		    
			Emitted when download is interrupted either by user action or by                     
                network errors, error_detail will take any value of WebKitDownloadError. 
 
  | 
            WebKit.Download | |