EDataBook.BookBackendSExp¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataBook.BookBackendSExp(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(text)¶
- Parameters:
text (
str
) – an s-expression to parse- Returns:
- Return type:
Creates a new
EDataBook.BookBackendSExp
from text.
- classmethod util_phone_compare(phone_value, lookup_value, compare_kind)¶
- Parameters:
phone_value (
str
) – a phone number to comparelookup_value (
str
) – a value to lookup for in the phone numbercompare_kind (
EDataBook.BookBackendSexpCompareKind
) – anEDataBook.BookBackendSexpCompareKind
- Returns:
whether numbers from the phone_value match the lookup_value using the given compare_kind
- Return type:
A utility function, which compares only numbers from the phone_value with lookup_value using compare_kind method.
New in version 3.50.
- lock()¶
Locks the self. Other threads cannot use it until it’s unlocked with
EDataBook.BookBackendSExp.unlock
().New in version 3.34.
- match_contact(contact)¶
- Parameters:
contact (
EBookContacts.Contact
) – anEBookContacts.Contact
- Returns:
- Return type:
Checks if contact matches self.
- match_vcard(vcard)¶
- Parameters:
vcard (
str
) – a vCard string- Returns:
- Return type:
Checks if vcard matches self.
- text()¶
- Returns:
the text expression
- Return type:
Retrieve the text expression for the given
EDataBook.BookBackendSExp
object.New in version 3.8.
- unlock()¶
Unlocks the self, previously locked by
EDataBook.BookBackendSExp.lock
().New in version 3.34.