EvinceView.JobLoadFd

g EvinceView.Job EvinceView.Job EvinceView.JobLoadFd EvinceView.JobLoadFd EvinceView.Job->EvinceView.JobLoadFd GObject.Object GObject.Object GObject.Object->EvinceView.Job

Subclasses:

None

Methods

Inherited:

EvinceView.Job (12), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (fd, mime_type, flags)

class

new_take (fd, mime_type, flags)

set_fd (fd)

set_load_flags (flags)

set_mime_type (mime_type)

set_password (password)

take_fd (fd)

Virtual Methods

Inherited:

EvinceView.Job (3), GObject.Object (7)

Properties

None

Signals

Inherited:

EvinceView.Job (2), GObject.Object (1)

Fields

Inherited:

EvinceView.Job (2), GObject.Object (1)

Name

Type

Access

Description

fd

int

r

flags

EvinceDocument.DocumentLoadFlags

r

mime_type

str

r

parent

EvinceView.Job

r

password

str

r

Class Details

class EvinceView.JobLoadFd(**kwargs)
Bases:

EvinceView.Job

Abstract:

No

Structure:

EvinceView.JobLoadFdClass

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:
Raises:

GLib.Error

Returns:

the new EvinceView.JobLoadFd, or None

Return type:

EvinceView.Job

Creates a new EvinceView.JobLoadFd for fd. If duplicating fd fails, returns None with error filled in.

New in version 42.0.

classmethod new_take(fd, mime_type, flags)
Parameters:
Return type:

EvinceView.Job

set_fd(fd)
Parameters:

fd (int) – a file descriptor

Raises:

GLib.Error

Returns:

True if the file descriptor could be set

Return type:

bool

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) –

set_mime_type(mime_type)
Parameters:

mime_type (str) –

set_password(password)
Parameters:

password (str) –

take_fd(fd)
Parameters:

fd (int) – a file descriptor

Sets fd as the file descriptor in self. Note that self takes ownership of fd; you must not do anything with it afterwards.

New in version 42.0.