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.BookQuery
itemsunref (
bool
) – ifTrue
, the new query takes ownership of the existing queries
- Returns:
A new
EBookContacts.BookQuery
- Return type:
Create a new
EBookContacts.BookQuery
which 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.BookQuery
which 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.BookQuery
which tests if the field field exists.
- classmethod field_test(field, test, value)¶
- Parameters:
field (
EBookContacts.ContactField
) – anEBookContacts.ContactField
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.BookQuery
which 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.BookQuery
representing it.
- classmethod or_(nqs, qs, unref)¶
- Parameters:
nqs (
int
) – the number of queries to ORqs (
EBookContacts.BookQuery
) – pointer to an array ofEBookContacts.BookQuery
itemsunref (
bool
) – ifTrue
, the new query takes ownership of the existing queries
- Returns:
A new
EBookContacts.BookQuery
- Return type:
Creates a new
EBookContacts.BookQuery
which 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.BookQuery
which tests if the field field exists. field should be a vCard field name, such asEBookContacts.EVC_FN
orEBookContacts.EVC_X_MSN
.
- classmethod vcard_field_test(field, test, value)¶
- Parameters:
field (
str
) – aEBookContacts.VCard
field 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.BookQuery
which tests field for value using the test test.New in version 2.22.
- copy()¶
- Returns:
A new
EBookContacts.BookQuery
identical 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.BookQuery
which 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.