EBookContacts.BookQuery¶
Fields¶
None
Methods¶
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- class EBookContacts.BookQuery¶
 - classmethod and_(nqs, qs, unref)¶
 - Parameters:
 nqs (
int) – the number of queries to ANDqs (
EBookContacts.BookQuery) – pointer to an array ofEBookContacts.BookQueryitemsunref (
bool) – ifTrue, the new query takes ownership of the existing queries
- Returns:
 A new
EBookContacts.BookQuery- Return type:
 
Create a new
EBookContacts.BookQuerywhich is the logical AND of the queries in #qs.
- classmethod any_field_contains(value)¶
 - Parameters:
 value (
str) – a value- Returns:
 the new
EBookContacts.BookQuery- Return type:
 
Creates a new
EBookContacts.BookQuerywhich tests if any field contains value.
- classmethod field_exists(field)¶
 - Parameters:
 field (
EBookContacts.ContactField) – anEBookContacts.ContactField- Returns:
 the new
EBookContacts.BookQuery- Return type:
 
Creates a new
EBookContacts.BookQuerywhich tests if the field field exists.
- classmethod field_test(field, test, value)¶
 - Parameters:
 field (
EBookContacts.ContactField) – anEBookContacts.ContactFieldto testtest (
EBookContacts.BookQueryTest) – the test to applyvalue (
str) – the value to test for
- Returns:
 the new
EBookContacts.BookQuery- Return type:
 
Creates a new
EBookContacts.BookQuerywhich tests field for value using the test test.
- classmethod from_string(query_string)¶
 - Parameters:
 query_string (
str) – the query- Returns:
 the new
EBookContacts.BookQuery.- Return type:
 
Parse query_string and return a new
EBookContacts.BookQueryrepresenting it.
- classmethod or_(nqs, qs, unref)¶
 - Parameters:
 nqs (
int) – the number of queries to ORqs (
EBookContacts.BookQuery) – pointer to an array ofEBookContacts.BookQueryitemsunref (
bool) – ifTrue, the new query takes ownership of the existing queries
- Returns:
 A new
EBookContacts.BookQuery- Return type:
 
Creates a new
EBookContacts.BookQuerywhich is the logical OR of the queries in #qs.
- classmethod vcard_field_exists(field)¶
 - Parameters:
 field (
str) – a field name- Returns:
 the new
EBookContacts.BookQuery- Return type:
 
Creates a new
EBookContacts.BookQuerywhich tests if the field field exists. field should be a vCard field name, such asEBookContacts.EVC_FNorEBookContacts.EVC_X_MSN.
- classmethod vcard_field_test(field, test, value)¶
 - Parameters:
 field (
str) – aEBookContacts.VCardfield name to testtest (
EBookContacts.BookQueryTest) – the test to applyvalue (
str) – the value to test for
- Returns:
 the new
EBookContacts.BookQuery- Return type:
 
Creates a new
EBookContacts.BookQuerywhich tests field for value using the test test.New in version 2.22.
- copy()¶
 - Returns:
 A new
EBookContacts.BookQueryidentical to self.- Return type:
 
Creates a copy of self.
- not_(unref)¶
 - Parameters:
 unref (
bool) – ifTrue, the new query takes ownership of the existing queries- Returns:
 the new
EBookContacts.BookQuery- Return type:
 
Creates a new
EBookContacts.BookQuerywhich is the opposite of #q.
- ref()¶
 - Returns:
 self
- Return type:
 
Increment the reference count on self.
- to_string()¶
 - Returns:
 The string form of the query. This string should be freed when finished with.
- Return type:
 
Return the string representation of self.
- unref()¶
 Decrement the reference count on self. When the reference count reaches 0, self will be freed and any child queries will have
EBookContacts.BookQuery.unref() called.