EBookContacts.BookIndicesUpdater¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EBookContacts.BookIndicesUpdater(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
An abstract object to handle
EBookContacts.BookIndices
changes.New in version 3.50.
- add(uid, indices_index)¶
- Parameters:
- Returns:
whether the indices changed
- Return type:
Notifies the self that a new contact with UID uid had been added to the set and it occupies the indices_index index in the indices. In case the uid had been added previously its index is modified instead.
This function can be used only after initial call to
EBookContacts.BookIndicesUpdater.take_indices
().New in version 3.50.
- get_indices()¶
- Returns:
current indices, or
None
, when none had been set yet- Return type:
Sets the initial indices to be updated by the self. If
None
, then unsets them.New in version 3.50.
- remove(uid)¶
- Parameters:
uid (
str
) – a UID of a removed contact- Returns:
whether the indices changed
- Return type:
Notifies the self that an existing contact with UID uid had been removed from the set. Calling the function with uid unknown to the self does nothing and returns
False
.This function can be used only after initial call to
EBookContacts.BookIndicesUpdater.take_indices
().New in version 3.50.
- take_indices(indices)¶
- Parameters:
indices (
EBookContacts.BookIndices
orNone
) – anEBookContacts.BookIndices
, orNone
- Returns:
whether the indices changed
- Return type:
Sets the initial indices to be updated by the self. If
None
, then unsets them. The function always discards data previously gathered about the involved contacts, regardless whether the indices changed or not.The function assumes ownership of the indices.
New in version 3.50.