ICalGLib.Attach¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ICalGLib.Attach(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This is the
ICalGLib.Attachinstance.- classmethod new_from_bytes(bytes)¶
- Parameters:
bytes (
GLib.Bytes) – TheGLib.Bytesholding the data used to create theICalGLib.Attach- Returns:
The newly created
ICalGLib.Attach- Return type:
Creates a new
ICalGLib.Attachfrom 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).Added in version 1.0.
- classmethod new_from_data(data, free_fn, *free_fn_data)¶
- Parameters:
data (
str) – The data used to create theICalGLib.Attachfree_fn (
GLib.FuncorNone) – The function used to free the data when the createICalGLib.Attachis destroyedfree_fn_data (
objectorNone) – The userdata used for the free function free_fn
- Returns:
The newly created
ICalGLib.Attach- Return type:
Creates a new
ICalGLib.Attachfrom the data.Added 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.Attachfrom the url- Return type:
Creates a new
ICalGLib.Attachfrom the url.Added in version 1.0.
- get_data()¶
- Returns:
The data component of the self.
Noneif it is built from url or there is an error.- Return type:
Gets the data, if the
ICalGLib.Attachis built from the data.Added in version 1.0.
- get_is_url()¶
- Returns:
Whether the self is built from url
- Return type:
Checks whether the
ICalGLib.Attachis built from url.Added in version 1.0.
- get_url()¶
- Returns:
The url component of the self.
Noneif it is built from data or there is an error.- Return type:
Gets the url, if the
ICalGLib.Attachis built from the url.Added in version 1.0.