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

« back to all changes in this revision

Viewing changes to addressbook/libedata-book/e-book-backend-factory.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:
15
15
 
16
16
#include "e-book-backend-factory.h"
17
17
 
 
18
G_DEFINE_TYPE (EBookBackendFactory, e_book_backend_factory, G_TYPE_OBJECT)
 
19
 
18
20
static void
19
 
e_book_backend_factory_instance_init (EBookBackendFactory *factory)
 
21
e_book_backend_factory_init (EBookBackendFactory *factory)
20
22
{
21
23
}
22
24
 
25
27
{
26
28
}
27
29
 
28
 
GType
29
 
e_book_backend_factory_get_type (void)
30
 
{
31
 
        static GType type = 0;
32
 
 
33
 
        if (! type) {
34
 
                GTypeInfo info = {
35
 
                        sizeof (EBookBackendFactoryClass),
36
 
                        NULL, /* base_class_init */
37
 
                        NULL, /* base_class_finalize */
38
 
                        (GClassInitFunc)  e_book_backend_factory_class_init,
39
 
                        NULL, /* class_finalize */
40
 
                        NULL, /* class_data */
41
 
                        sizeof (EBookBackendFactory),
42
 
                        0,    /* n_preallocs */
43
 
                        (GInstanceInitFunc) e_book_backend_factory_instance_init
44
 
                };
45
 
 
46
 
                type = g_type_register_static (G_TYPE_OBJECT, "EBookBackendFactory", &info, 0);
47
 
        }
48
 
 
49
 
        return type;
50
 
}
51
 
 
52
30
/**
53
31
 * e_book_backend_factory_get_protocol:
54
32
 * @factory: an #EBookBackendFactory
55
33
 *
56
34
 * Gets the protocol that @factory creates backends for.
57
35
 *
58
 
 * Return value: A string representing a protocol.
 
36
 * Returns: A string representing a protocol.
59
37
 **/
60
38
const gchar *
61
39
e_book_backend_factory_get_protocol (EBookBackendFactory *factory)
71
49
 *
72
50
 * Creates a new #EBookBackend with @factory's protocol.
73
51
 *
74
 
 * Return value: A new #EBookBackend.
 
52
 * Returns: A new #EBookBackend.
75
53
 **/
76
54
EBookBackend*
77
55
e_book_backend_factory_new_backend (EBookBackendFactory *factory)