EDataBook.BookCacheSearchData¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
extra |
r/w |
Any extra data associated with the vcard |
|
uid |
r/w |
The |
|
vcard |
r/w |
The vcard string |
Methods¶
class |
|
class |
|
|
Details¶
- class EDataBook.BookCacheSearchData¶
This structure is used to represent contacts returned by the
EDataBook.BookCache
from various functions such asEDataBook.BookCache.search
().The extra parameter will contain any data which was previously passed for this contact in
EDataBook.BookCache.put_contact
() or set withEDataBook.BookCache.set_contact_extra
().These should be freed with
EDataBook.BookCacheSearchData.free
().New in version 3.26.
- classmethod free(data)¶
- Parameters:
data (
object
orNone
) – anEDataBook.BookCacheSearchData
Frees the data structure, previously allocated with
EDataBook.BookCacheSearchData.new
() orEDataBook.BookCacheSearchData.copy
().New in version 3.26.
- classmethod new(uid, vcard, extra)¶
- Parameters:
- Returns:
A new
EDataBook.BookCacheSearchData
. Free it withEDataBook.BookCacheSearchData.free
() when no longer needed.- Return type:
Creates a new
EDataBook.BookCacheSearchData
prefilled with the given values.New in version 3.26.
- copy()¶
- Returns:
Copy of the given self. Free it with
EDataBook.BookCacheSearchData.free
() when no longer needed. If the self isNone
, then returnsNone
as well.- Return type:
New in version 3.26.