Dazzle.FileTransfer

g Dazzle.FileTransfer Dazzle.FileTransfer GObject.Object GObject.Object GObject.Object->Dazzle.FileTransfer

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add (src, dest)

execute (io_priority, cancellable)

execute_async (io_priority, cancellable, callback, *user_data)

execute_finish (result)

get_flags ()

get_progress ()

set_flags (flags)

stat ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

flags

Dazzle.FileTransferFlags

r/w/en

The transfer flags for the operation

progress

float

r

The transfer progress, from 0 to 1

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Dazzle.FileTransfer(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Dazzle.FileTransferClass

classmethod new()
Return type:

Dazzle.FileTransfer

add(src, dest)
Parameters:
execute(io_priority, cancellable)
Parameters:
Raises:

GLib.Error

Return type:

bool

execute_async(io_priority, cancellable, callback, *user_data)
Parameters:
execute_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

get_flags()
Return type:

Dazzle.FileTransferFlags

get_progress()
Return type:

float

set_flags(flags)
Parameters:

flags (Dazzle.FileTransferFlags) –

stat()
Returns:

a Dazzle.FileTransferStat

Return type:

stat_buf: Dazzle.FileTransferStat

Gets statistics about the transfer progress.

New in version 3.28.

Property Details

Dazzle.FileTransfer.props.flags
Name:

flags

Type:

Dazzle.FileTransferFlags

Default Value:

Dazzle.FileTransferFlags.NONE

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The transfer flags for the operation

Dazzle.FileTransfer.props.progress
Name:

progress

Type:

float

Default Value:

0.0

Flags:

READABLE

The transfer progress, from 0 to 1