EBookContacts.SourceBackendSummarySetup¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c/en |
The list of summary fields which are to be given indexes in the underlying database |
||
r/w/c/en |
The list of quick reference summary fields |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EBookContacts.SourceBackendSummarySetup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.8.
- get_indexed_fields()¶
- Returns:
The array of indexed
EBookContacts.ContactFields
.- types:
A return location for the set of
EBookContacts.BookIndexTypes
corresponding to each returned field, should be freed withGLib.free
() when no longer needed.- n_fields:
The number of elements in the returned arrays.
- Return type:
(
EBookContacts.ContactField
, types:EBookContacts.BookIndexType
, n_fields:int
)
Fetches the
EBookContacts.ContactFields
configured to be indexed, with thier respectiveEBookContacts.BookIndexTypes
.New in version 3.8.
- get_summary_fields()¶
- Returns:
An array of
EBookContacts.ContactFields
n_fields long, should be freed withGLib.free
() when done.- n_fields:
A return location for the number of
EBookContacts.ContactFields
in the returned array.
- Return type:
(
EBookContacts.ContactField
, n_fields:int
)
Fetches the
EBookContacts.ContactFields
which are configured to be aCamel.part
of the summary.If there are no configured summary fields, the default configuration is assumed
New in version 3.8.
- set_indexed_fieldsv(fields, types, n_fields)¶
- Parameters:
fields (
EBookContacts.ContactField
) – The array ofEBookContacts.ContactFields
to set indexes fortypes (
EBookContacts.BookIndexType
) – The array ofEBookContacts.BookIndexTypes
defining what types of indexes to createn_fields (
int
) – The number elements in the passed fields, rule_types and rules arrays.
Defines indexes for quick reference for the given given
EBookContacts.ContactFields
in the addressbook.The same
EBookContacts.ContactField
may be specified multiple times to create multiple indexes with different characteristics. If anEBookContacts.BookIndexType.PREFIX
index is created it will be used forEBookContacts.BookQueryTest.BEGINS_WITH
queries. AnEBookContacts.BookIndexType.SUFFIX
index will be constructed efficiently for suffix matching and will be used forEBookContacts.BookQueryTest.ENDS_WITH
queries. Similar anEBookContacts.BookIndexType.PHONE
index will optimizeEBookContacts.BookQueryTest.EQUALS_PHONE_NUMBER
searches.The specified indexed fields must also be a
Camel.part
of the summary, any indexed fields specified that are not already aCamel.part
of the summary will be ignored.New in version 3.8.
- set_summary_fieldsv(fields, n_fields)¶
- Parameters:
fields (
EBookContacts.ContactField
) – The array ofEBookContacts.ContactFields
to set as summary fieldsn_fields (
int
) – The number ofEBookContacts.ContactFields
in fields
Sets the summary fields configured for the given addressbook.
The fields
EBookContacts.ContactField.UID
andEBookContacts.ContactField.REV
are not optional, they will be stored in the summary regardless of the configured summary.An empty summary configuration is assumed to be the default summary configuration.
Only
EBookContacts.ContactFields
with the typeGObject.TYPE_STRING
orGObject.TYPE_BOOLEAN
are currently supported as summary fields.New in version 3.8.
Property Details¶
- EBookContacts.SourceBackendSummarySetup.props.indexed_fields¶
- Name:
indexed-fields
- Type:
- Default Value:
- Flags:
The list of summary fields which are to be given indexes in the underlying database