EBook.Destination¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
Class Details¶
- class EBook.Destination(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod exportv(destv)¶
- Parameters:
destv ([
EBook.Destination
]) – aNone
-terminated array of pointers toEBook.Destination
- Returns:
An XML string, allocated with
GLib.malloc
.- Return type:
Exports multiple
EBook.Destination
elements to a single XML document.
- classmethod freev(destv)¶
- Parameters:
destv ([
EBook.Destination
]) – aNone
-terminated array of pointers toEBook.Destination
Unrefs the elements of destv and frees destv itself.
- classmethod get_textrepv(destv)¶
- Parameters:
destv ([
EBook.Destination
]) –None
-terminated array of pointers toEBook.Destination
- Returns:
The text representation of destv.
- Return type:
Generates a joint text representation of all the
EBook.Destination
elements in destv.
- classmethod import_(str)¶
- Parameters:
str (
str
) – an XML string- Returns:
An
EBook.Destination
, orNone
if the document was not well-formed.- Return type:
Creates an
EBook.Destination
from an XML document.
- classmethod importv(str)¶
- Parameters:
str (
str
) – an XML string- Returns:
A
None
-terminated array of pointers toEBook.Destination
elements.- Return type:
Creates an array of pointers to
EBook.Destination
elements from an XML document.
- classmethod new()¶
- Returns:
A newly created
EBook.Destination
.- Return type:
Creates a new
EBook.Destination
with blank values.
- copy()¶
- Returns:
A newly created
EBook.Destination
, identical to self.- Return type:
Creates a new
EBook.Destination
identical to self.
- empty()¶
-
Checks if self is blank.
- equal(b)¶
- Parameters:
b (
EBook.Destination
) – anEBook.Destination
- Returns:
- Return type:
Checks if self and b are equal.
- export()¶
- Returns:
An XML string, allocated with
GLib.malloc
.- Return type:
Exports a destination to an XML document.
- export_to_vcard_attribute(attr)¶
- Parameters:
attr (
EBookContacts.VCardAttribute
) – anEBookContacts.VCardAttribute
Exports the contact information from self to parameters and values in attr, suitable for an address book.
- get_address()¶
- Returns:
an encoded destination string suitable for use in an email header, or
None
if the destination was empty- Return type:
Gets the encoded name and email address, or in the case of lists, the encoded list of email addresses, from self. The returned string is suitable for use in an email header, but not for displaying to users.
- get_contact()¶
- Returns:
An
EBookContacts.Contact
, orNone
if none was set.- Return type:
Gets the contact self is pointing to, if any.
- get_contact_uid()¶
-
Gets the unique contact ID self is pointing to, if any.
- get_email()¶
- Returns:
An e-mail address, or an empty string if none was set.
- Return type:
Gets the e-mail address of self's addressee.
- get_email_num()¶
- Returns:
The e-mail index, or -1 if none was set.
- Return type:
Gets the index of the e-mail address of the contact that self is pointing to, if any.
- get_html_mail_pref()¶
-
Check if self wants to get mail formatted as HTML.
- get_name()¶
-
Gets the full name of self's addressee, or if the addressee is a contact list, the name the list was filed under. The name can be encoded in quoted printable.
- get_source_uid()¶
-
Gets the unique source ID self is pointing to, if any. The source ID specifies which address book self's contact came from.
- get_textrep(include_email)¶
- Parameters:
include_email (
bool
) – whether to include the e-mail address- Returns:
A textual representation of the destination.
- Return type:
Generates a textual representation of self, suitable for referring to the destination during user interaction. The name can be encoded in quoted printable.
- is_auto_recipient()¶
-
Checks if self is flagged as an automatic recipient, meaning it was not explicitly specified by the user. This can be used to hide it from some UI elements.
- is_evolution_list()¶
-
Checks if self is a list of addresses.
- is_ignored()¶
-
Check if self is to be ignored.
- list_get_dests()¶
- Returns:
A list of elements of type
EBook.Destination
, orNone
.- Return type:
[
EBook.Destination
] orNone
If self is a list, gets recursively list of all destinations. Everything returned from this function belongs to self and thus should not be freed.
New in version 3.2.
- list_get_root_dests()¶
- Returns:
A list of elements of type
EBook.Destination
, orNone
.- Return type:
[
EBook.Destination
] orNone
If self is a list, gets the list of EDestinations assigned directly to self. The list and its elements belong to self, and should not be freed.
New in version 3.2.
- list_show_addresses()¶
-
If self is a list, checks if the addresses in the list should be presented to the user during interaction.
- set_auto_recipient(value)¶
- Parameters:
value (
bool
) – the auto recipient flag
Sets the flag indicating if self is an automatic recipient, meaning it was not explicitly specified by the user. This can be used to hide it from some UI elements.
- set_client(client)¶
- Parameters:
client (
EBook.BookClient
) – anEBook.BookClient
Specify the source self's contact comes from. This is useful if you need to update the contact later.
New in version 3.2.
- set_contact(contact, email_num)¶
- Parameters:
contact (
EBookContacts.Contact
) – anEBookContacts.Contact
email_num (
int
) – an email index
Sets self to point to one of contact's e-mail addresses indicated by email_num.
- set_contact_uid(uid, email_num)¶
-
Sets self to point to one of the contact specified by uid's e-mail addresses indicated by email_num.
- set_email(email)¶
- Parameters:
email (
str
) – the destination’s e-mail address
Sets the e-mail address of self's addressee.
- set_html_mail_pref(flag)¶
- Parameters:
flag (
bool
) – whether the destination wants HTML mail
Specifies whether self wants to get mail formatted as HTML.
- set_ignored(ignored)¶
- Parameters:
ignored (
bool
) –True
if thisEBook.Destination
should be ignored.
Set the ignore flag on an
EBook.Destination
.
- set_name(name)¶
- Parameters:
name (
str
) – the destination’s full name
Sets the full name of self's addressee.
- set_raw(raw)¶
- Parameters:
raw (
str
) – an unparsed string
Sets self to point to the name and e-mail address resulting from parsing the supplied string. Useful for user input.
- do_changed() virtual¶
Signal Details¶
- EBook.Destination.signals.changed(destination)¶
- Signal Name:
changed
- Flags:
- Parameters:
destination (
EBook.Destination
) – The object which received the signal