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.BookIndexTypescorresponding 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.ContactFieldsconfigured to be indexed, with thier respectiveEBookContacts.BookIndexTypes.New in version 3.8.
- get_summary_fields()¶
 - Returns:
 An array of
EBookContacts.ContactFieldsn_fields long, should be freed withGLib.free() when done.- n_fields:
 A return location for the number of
EBookContacts.ContactFieldsin the returned array.
- Return type:
 (
EBookContacts.ContactField, n_fields:int)
Fetches the
EBookContacts.ContactFieldswhich are configured to be aCamel.partof 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.ContactFieldsto set indexes fortypes (
EBookContacts.BookIndexType) – The array ofEBookContacts.BookIndexTypesdefining 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.ContactFieldsin the addressbook.The same
EBookContacts.ContactFieldmay be specified multiple times to create multiple indexes with different characteristics. If anEBookContacts.BookIndexType.PREFIXindex is created it will be used forEBookContacts.BookQueryTest.BEGINS_WITHqueries. AnEBookContacts.BookIndexType.SUFFIXindex will be constructed efficiently for suffix matching and will be used forEBookContacts.BookQueryTest.ENDS_WITHqueries. Similar anEBookContacts.BookIndexType.PHONEindex will optimizeEBookContacts.BookQueryTest.EQUALS_PHONE_NUMBERsearches.The specified indexed fields must also be a
Camel.partof the summary, any indexed fields specified that are not already aCamel.partof the summary will be ignored.New in version 3.8.
- set_summary_fieldsv(fields, n_fields)¶
 - Parameters:
 fields (
EBookContacts.ContactField) – The array ofEBookContacts.ContactFieldsto set as summary fieldsn_fields (
int) – The number ofEBookContacts.ContactFieldsin fields
Sets the summary fields configured for the given addressbook.
The fields
EBookContacts.ContactField.UIDandEBookContacts.ContactField.REVare 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.ContactFieldswith the typeGObject.TYPE_STRINGorGObject.TYPE_BOOLEANare 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