EDataBook.BookBackendSExp

g EDataBook.BookBackendSExp EDataBook.BookBackendSExp GObject.Object GObject.Object GObject.Object->EDataBook.BookBackendSExp

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (text)

class

util_phone_compare (phone_value, lookup_value, compare_kind)

lock ()

match_contact (contact)

match_vcard (vcard)

text ()

unlock ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class EDataBook.BookBackendSExp(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

EDataBook.BookBackendSExpClass

classmethod new(text)
Parameters:

text (str) – an s-expression to parse

Returns:

a new EDataBook.BookBackendSExp

Return type:

EDataBook.BookBackendSExp

Creates a new EDataBook.BookBackendSExp from text.

classmethod util_phone_compare(phone_value, lookup_value, compare_kind)
Parameters:
Returns:

whether numbers from the phone_value match the lookup_value using the given compare_kind

Return type:

bool

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) – an EBookContacts.Contact

Returns:

True if the contact matches, False otherwise

Return type:

bool

Checks if contact matches self.

match_vcard(vcard)
Parameters:

vcard (str) – a vCard string

Returns:

True if the vCard matches, False otherwise

Return type:

bool

Checks if vcard matches self.

text()
Returns:

the text expression

Return type:

str

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.