EvinceView.JobLoadFd¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
fd |
r |
||
flags |
r |
||
mime_type |
r |
||
parent |
r |
||
password |
r |
Class Details¶
- class EvinceView.JobLoadFd(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A job class to load a
EvinceDocument.Document
from a file descriptor referring to a regular file.New in version 42.0.
- classmethod new(fd, mime_type, flags)¶
- Parameters:
fd (
int
) – a file descriptormime_type (
str
) – the mime typeflags (
EvinceDocument.DocumentLoadFlags
) – flags fromEvinceDocument.DocumentLoadFlags
- Raises:
- Returns:
the new
EvinceView.JobLoadFd
, orNone
- Return type:
Creates a new
EvinceView.JobLoadFd
for fd. If duplicating fd fails, returnsNone
with error filled in.New in version 42.0.
- classmethod new_take(fd, mime_type, flags)¶
- Parameters:
fd (
int
) –mime_type (
str
) –flags (
EvinceDocument.DocumentLoadFlags
) –
- Return type:
- set_fd(fd)¶
- Parameters:
fd (
int
) – a file descriptor- Raises:
- Returns:
True
if the file descriptor could be set- Return type:
Sets fd as the file descriptor in self. If duplicating fd fails, returns
False
with error filled in.New in version 42.0.
- set_load_flags(flags)¶
- Parameters:
flags (
EvinceDocument.DocumentLoadFlags
) –