PapersDocument.Attachment

g GObject.Object GObject.Object PapersDocument.Attachment PapersDocument.Attachment GObject.Object->PapersDocument.Attachment

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new (name, description, mtime, ctime, size, data)

get_creation_datetime ()

get_description ()

get_mime_type ()

get_modification_datetime ()

get_name ()

open (context)

save (file)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

cdatetime

GLib.DateTime

w/co

The attachment creation date

data

int

w/co

The attachment data

description

str

w/co

The attachment description

mdatetime

GLib.DateTime

w/co

The attachment modification date

name

str

w/co

The attachment name

size

int

w/co

The attachment size

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class PapersDocument.Attachment(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

PapersDocument.AttachmentClass

classmethod error_quark()
Return type:

int

classmethod new(name, description, mtime, ctime, size, data)
Parameters:
Return type:

PapersDocument.Attachment

get_creation_datetime()
Return type:

GLib.DateTime

get_description()
Return type:

str

get_mime_type()
Return type:

str

get_modification_datetime()
Return type:

GLib.DateTime

get_name()
Return type:

str

open(context)
Parameters:

context (Gio.AppLaunchContext) –

Raises:

GLib.Error

Return type:

bool

save(file)
Parameters:

file (Gio.File) –

Raises:

GLib.Error

Return type:

bool

Property Details

PapersDocument.Attachment.props.cdatetime
Name:

cdatetime

Type:

GLib.DateTime

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The attachment creation date

PapersDocument.Attachment.props.data
Name:

data

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The attachment data

PapersDocument.Attachment.props.description
Name:

description

Type:

str

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The attachment description

PapersDocument.Attachment.props.mdatetime
Name:

mdatetime

Type:

GLib.DateTime

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The attachment modification date

PapersDocument.Attachment.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The attachment name

PapersDocument.Attachment.props.size
Name:

size

Type:

int

Default Value:

0

Flags:

WRITABLE, CONSTRUCT_ONLY

The attachment size