ICalGLib.Attach

g GObject.Object GObject.Object ICalGLib.Object ICalGLib.Object GObject.Object->ICalGLib.Object ICalGLib.Attach ICalGLib.Attach ICalGLib.Object->ICalGLib.Attach

Subclasses:

None

Methods

Inherited:

ICalGLib.Object (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new_from_bytes (bytes)

class

new_from_data (data, free_fn, *free_fn_data)

class

new_from_url (url)

get_data ()

get_is_url ()

get_url ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

ICalGLib.Object (5)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class ICalGLib.Attach(**kwargs)
Bases:

ICalGLib.Object

Abstract:

No

Structure:

ICalGLib.AttachClass

This is the ICalGLib.Attach instance.

classmethod new_from_bytes(bytes)
Parameters:

bytes (GLib.Bytes) – The GLib.Bytes holding the data used to create the ICalGLib.Attach

Returns:

The newly created ICalGLib.Attach

Return type:

ICalGLib.Attach

Creates a new ICalGLib.Attach from the data in bytes. Takes a reference of bytes, increase the reference before calling this function if you with to use it afterward. The stored bytes should be already encoded with used encoding (like base64).

New in version 1.0.

classmethod new_from_data(data, free_fn, *free_fn_data)
Parameters:
Returns:

The newly created ICalGLib.Attach

Return type:

ICalGLib.Attach

Creates a new ICalGLib.Attach from the data.

New in version 1.0.

classmethod new_from_url(url)
Parameters:

url (str) – The url from which the object is created

Returns:

The newly created ICalGLib.Attach from the url

Return type:

ICalGLib.Attach

Creates a new ICalGLib.Attach from the url.

New in version 1.0.

get_data()
Returns:

The data component of the self. None if it is built from url or there is an error.

Return type:

str or None

Gets the data, if the ICalGLib.Attach is built from the data.

New in version 1.0.

get_is_url()
Returns:

Whether the self is built from url

Return type:

bool

Checks whether the ICalGLib.Attach is built from url.

New in version 1.0.

get_url()
Returns:

The url component of the self. None if it is built from data or there is an error.

Return type:

str or None

Gets the url, if the ICalGLib.Attach is built from the url.

New in version 1.0.