PapersView.JobLoad¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class PapersView.JobLoad(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A job class to load an
PapersDocument.DocumentSupports loading in different forms depending on the options being set.
- classmethod new()¶
 - Return type:
 
- get_loaded_document()¶
 - Returns:
 The loaded document, if available
- Return type:
 
New in version 46.0.
- get_password_save()¶
 - Return type:
 
- set_fd(fd, mime_type)¶
 - Parameters:
 - Raises:
 - Returns:
 Trueif the file descriptor could be set- Return type:
 
Sets fd as the file descriptor in self. If duplicating fd fails, returns
Falsewith error filled in.It is an error to call this function if uri is set for the job
New in version 46.0.
- set_load_flags(flags)¶
 - Parameters:
 flags (
PapersDocument.DocumentLoadFlags) –
- set_password_save(save)¶
 - Parameters:
 save (
Gio.PasswordSave) –
- set_uri(uri)¶
 - Parameters:
 uri (
str) – an uri representing a file
It is an error to call this function if the file descriptor is set for the job.
- take_fd(fd, mime_type)¶
 - 
Sets fd as the file descriptor in self. Note that self takes ownership of fd; you must not do anything with it afterwards.
It is an error to call this function if uri is set for the job
New in version 46.0.