~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to addressbook/libebook/e-book-query.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 *
75
75
 * Create a new #EBookQuery which is the logical AND of the queries in #qs.
76
76
 *
77
 
 * Return value: A new #EBookQuery
 
77
 * Returns: A new #EBookQuery
78
78
 **/
79
79
EBookQuery *
80
80
e_book_query_and (gint nqs, EBookQuery **qs, gboolean unref)
90
90
 *
91
91
 * Creates a new #EBookQuery which is the logical OR of the queries in #qs.
92
92
 *
93
 
 * Return value: A new #EBookQuery
 
93
 * Returns: A new #EBookQuery
94
94
 **/
95
95
EBookQuery *
96
96
e_book_query_or (gint nqs, EBookQuery **qs, gboolean unref)
126
126
 *
127
127
 * Creates a new #EBookQuery which is the logical AND of the queries specified.
128
128
 *
129
 
 * Return value: A new #EBookQuery
 
129
 * Returns: A new #EBookQuery
130
130
 **/
131
131
EBookQuery *
132
132
e_book_query_andv (EBookQuery *q, ...)
144
144
 *
145
145
 * Creates a new #EBookQuery which is the logical OR of the queries specified.
146
146
 *
147
 
 * Return value: A new #EBookQuery
 
147
 * Returns: A new #EBookQuery
148
148
 **/
149
149
EBookQuery *
150
150
e_book_query_orv (EBookQuery *q, ...)
162
162
 *
163
163
 * Creates a new #EBookQuery which is the opposite of #q.
164
164
 *
165
 
 * Return value: the new #EBookQuery
 
165
 * Returns: the new #EBookQuery
166
166
 **/
167
167
EBookQuery *
168
168
e_book_query_not (EBookQuery *q, gboolean unref)
185
185
 *
186
186
 * Creates a new #EBookQuery which tests @field for @value using the test @test.
187
187
 *
188
 
 * Return value: the new #EBookQuery
 
188
 * Returns: the new #EBookQuery
189
189
 **/
190
190
EBookQuery *
191
191
e_book_query_field_test (EContactField field,
210
210
 *
211
211
 * Creates a new #EBookQuery which tests @field for @value using the test @test.
212
212
 *
213
 
 * Return value: the new #EBookQuery
 
213
 * Returns: the new #EBookQuery
 
214
 *
 
215
 * Since: 2.22
214
216
 **/
215
217
EBookQuery *
216
218
e_book_query_vcard_field_test (const gchar     *field,
232
234
 * @field: a #EContactField
233
235
 *
234
236
 * Creates a new #EBookQuery which tests if the field @field exists.
235
 
 * Return value: the new #EBookQuery
 
237
 * Returns: the new #EBookQuery
236
238
 **/
237
239
EBookQuery *
238
240
e_book_query_field_exists (EContactField field)
252
254
 *
253
255
 * Creates a new #EBookQuery which tests if the field @field exists. @field
254
256
 * should be a vCard field name, such as #FN or #X-MSN.
255
 
 * Return value: the new #EBookQuery
 
257
 * Returns: the new #EBookQuery
256
258
 **/
257
259
EBookQuery *
258
260
e_book_query_vcard_field_exists (const gchar *field)
272
274
 *
273
275
 * Creates a new #EBookQuery which tests if any field contains @value.
274
276
 *
275
 
 * Return value: the new #EBookQuery
 
277
 * Returns: the new #EBookQuery
276
278
 **/
277
279
EBookQuery *
278
280
e_book_query_any_field_contains (const gchar *value)
337
339
 * @q: a #EBookQuery
338
340
 *
339
341
 * Increment the reference count on @q.
340
 
 * Return value: @q
 
342
 * Returns: @q
341
343
 **/
342
344
EBookQuery *
343
345
e_book_query_ref (EBookQuery *q)
596
598
 *
597
599
 * Parse @query_string and return a new #EBookQuery representing it.
598
600
 *
599
 
 * Return value: the new #EBookQuery.
 
601
 * Returns: the new #EBookQuery.
600
602
 **/
601
603
EBookQuery*
602
604
e_book_query_from_string  (const gchar *query_string)
609
611
 
610
612
        sexp = e_sexp_new();
611
613
 
612
 
        for (i=0;i<sizeof(symbols)/sizeof(symbols[0]);i++) {
 
614
        for (i = 0; i < G_N_ELEMENTS (symbols); i++) {
613
615
                if (symbols[i].type == 1) {
614
616
                        e_sexp_add_ifunction(sexp, 0, symbols[i].name,
615
617
                                             (ESExpIFunc *)symbols[i].func, &list);
652
654
 *
653
655
 * Return the string representation of @q.
654
656
 *
655
 
 * Return value: The string form of the query. This string should be freed when
 
657
 * Returns: The string form of the query. This string should be freed when
656
658
 * finished with.
657
659
 **/
658
660
gchar *
729
731
GType
730
732
e_book_query_get_type (void)
731
733
{
732
 
        static GType type_id = 0;
733
 
 
734
 
        if (!type_id)
 
734
        static volatile gsize type_id__volatile = 0;
 
735
 
 
736
        if (g_once_init_enter (&type_id__volatile)) {
 
737
                GType type_id;
 
738
 
735
739
                type_id = g_boxed_type_register_static ("EBookQuery",
736
740
                                                        (GBoxedCopyFunc) e_book_query_copy,
737
741
                                                        (GBoxedFreeFunc) e_book_query_unref);
738
 
        return type_id;
 
742
 
 
743
                g_once_init_leave (&type_id__volatile, type_id);
 
744
        }
 
745
 
 
746
        return type_id__volatile;
739
747
}
740
748
 
741
749
/**
744
752
 *
745
753
 * Creates a copy of @q.
746
754
 *
747
 
 * Return value: A new #EBookQuery identical to @q.
 
755
 * Returns: A new #EBookQuery identical to @q.
748
756
 **/
749
757
EBookQuery*
750
758
e_book_query_copy (EBookQuery *q)